feat: 小程序首页banner管理

This commit is contained in:
Blizzard
2026-04-27 11:26:01 +08:00
parent c5aa1c6f2c
commit 37b9055994
10 changed files with 241 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
package plant
import (
"github.com/gin-gonic/gin"
)
type BannerRouter struct{}
func (c *BannerRouter) InitBannerRouter(Router *gin.RouterGroup) {
bannerRouter := Router.Group("plantBanner")
{
bannerRouter.POST("create", bannerApi.Create)
bannerRouter.POST("delete", bannerApi.Delete)
bannerRouter.POST("update", bannerApi.Update)
bannerRouter.POST("list", bannerApi.GetList)
bannerRouter.GET("activeList", bannerApi.GetActiveList)
}
}
+2
View File
@@ -15,6 +15,7 @@ type RouterGroup struct {
CallbackRouter
ExchangeRouter
AiChatRouter
BannerRouter
}
// 初始化路由
@@ -31,4 +32,5 @@ var (
callbackApi = v1.ApiGroupApp.PlantApiGroup.CallbackApi
exchangeApi = v1.ApiGroupApp.PlantApiGroup.ExchangeApi
aiChatApi = v1.ApiGroupApp.PlantApiGroup.AiChatApi
bannerApi = v1.ApiGroupApp.PlantApiGroup.BannerApi
)