分类管理
This commit is contained in:
parent
55f9615c5b
commit
a1a62b3ab7
|
@ -149,7 +149,7 @@ type CategoryListRequest struct {
|
||||||
// @Produce json
|
// @Produce json
|
||||||
// @Param request body CategoryListRequest true "分类列表请求模型"
|
// @Param request body CategoryListRequest true "分类列表请求模型"
|
||||||
// @Success 200 {array} models.CategoryModel
|
// @Success 200 {array} models.CategoryModel
|
||||||
// @Router /api/v1/category/list/ [get]
|
// @Router /api/v1/category/list [get]
|
||||||
func CategoryList(c *gin.Context) {
|
func CategoryList(c *gin.Context) {
|
||||||
req := new(CategoryListRequest)
|
req := new(CategoryListRequest)
|
||||||
_ = c.ShouldBindJSON(req)
|
_ = c.ShouldBindJSON(req)
|
||||||
|
|
|
@ -110,7 +110,7 @@ const docTemplate = `{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/api/v1/category/list/": {
|
"/api/v1/category/list": {
|
||||||
"get": {
|
"get": {
|
||||||
"produces": [
|
"produces": [
|
||||||
"application/json"
|
"application/json"
|
||||||
|
|
|
@ -102,7 +102,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/api/v1/category/list/": {
|
"/api/v1/category/list": {
|
||||||
"get": {
|
"get": {
|
||||||
"produces": [
|
"produces": [
|
||||||
"application/json"
|
"application/json"
|
||||||
|
|
|
@ -1133,7 +1133,7 @@ paths:
|
||||||
summary: 隐藏或展示分类
|
summary: 隐藏或展示分类
|
||||||
tags:
|
tags:
|
||||||
- 商品分类
|
- 商品分类
|
||||||
/api/v1/category/list/:
|
/api/v1/category/list:
|
||||||
get:
|
get:
|
||||||
parameters:
|
parameters:
|
||||||
- description: 分类列表请求模型
|
- description: 分类列表请求模型
|
||||||
|
|
Loading…
Reference in New Issue
Block a user