⚡分类接口完成
This commit is contained in:
@@ -47,5 +47,11 @@ func userAPI(r *gin.RouterGroup) {
|
||||
// @description: 导航分类API
|
||||
// @param r
|
||||
func navTypeAPI(r *gin.RouterGroup) {
|
||||
|
||||
navType := r.Group("/nav-type")
|
||||
navType.Use(middleware.Authorization())
|
||||
{
|
||||
navType.GET("/list", admin.NavigationTypeAPI().List) // 分类列表
|
||||
navType.POST("/save", admin.NavigationTypeAPI().Save) // 新增/编辑分类
|
||||
navType.DELETE("/:id", admin.NavigationTypeAPI().Delete) // 删除分类
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user