Files
sundynix-radio-be/router/radio/category_router.go
T
2026-03-03 17:09:37 +08:00

21 lines
628 B
Go

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)
}
}