package radio import ( "github.com/gin-gonic/gin" ) type CategoryRouter struct{} func (r *CategoryRouter) InitCategoryRouter(Router *gin.RouterGroup) { categoryRouter := Router.Group("/radio/category") { categoryRouter.POST("page", categoryApi.GetCategoryPage) categoryRouter.GET("tree", categoryApi.GetCategoryTree) categoryRouter.GET("list", categoryApi.GetCategoryList) categoryRouter.GET("detail", categoryApi.GetCategoryDetail) categoryRouter.POST("save", categoryApi.SaveCategory) categoryRouter.POST("update", categoryApi.UpdateCategory) categoryRouter.POST("delete", categoryApi.DeleteCategory) } }