init: radio init commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user