feat: 小程序首页banner管理
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user