20 lines
571 B
Go
20 lines
571 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.POST("list", categoryApi.GetCategoryList)
|
|
categoryRouter.GET("detail", categoryApi.GetCategoryDetail)
|
|
categoryRouter.POST("save", categoryApi.SaveCategory)
|
|
categoryRouter.POST("update", categoryApi.UpdateCategory)
|
|
categoryRouter.POST("delete", categoryApi.DeleteCategory)
|
|
}
|
|
}
|