分类接口完成

This commit is contained in:
coward
2024-10-24 16:55:31 +08:00
parent f66fef2ce0
commit 980c81af11
5 changed files with 151 additions and 15 deletions

View File

@@ -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) // 删除分类
}
}