File tree Expand file tree Collapse file tree 4 files changed +18
-0
lines changed
Expand file tree Collapse file tree 4 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 11// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
22// This file was generated by swaggo/swag at
3+ << << << < Updated upstream
34// 2021-06-20 16:22:58.944567 +0800 CST m=+0.063645120
5+ == == == =
6+ // 2021-06-20 16:53:32.405848 +0800 CST m=+0.051690642
7+ >> >> >> > Stashed changes
48
59package docs
610
@@ -88,6 +92,9 @@ var doc = `{
8892 }
8993 },
9094 "post": {
95+ "consumes": [
96+ "application/json"
97+ ],
9198 "produces": [
9299 "application/json"
93100 ],
Original file line number Diff line number Diff line change 7070 }
7171 },
7272 "post" : {
73+ "consumes" : [
74+ " application/json"
75+ ],
7376 "produces" : [
7477 " application/json"
7578 ],
Original file line number Diff line number Diff line change @@ -136,6 +136,8 @@ paths:
136136 $ref : ' #/definitions/errcode.Error'
137137 summary : 获取多个标签
138138 post :
139+ consumes :
140+ - application/json
139141 parameters :
140142 - description : 请求体
141143 in : body
Original file line number Diff line number Diff line change @@ -62,8 +62,13 @@ func (t Tag) List(c *gin.Context) {
6262 return
6363}
6464
65+ // Create
6566// @Summary 新增标签
6667// @Produce json
68+ << << << < Updated upstream
69+ == == == =
70+ // @accept json
71+ >> >> >> > Stashed changes
6772// @Param data body service.CreateTagRequest true "请求体"
6873// @Success 200 {object} model.Tag "成功"
6974// @Failure 400 {object} errcode.Error "请求错误"
@@ -94,6 +99,7 @@ func (t Tag) Create(c *gin.Context) {
9499// Update tag update
95100// @Summary 更新标签
96101// @Produce json
102+ // @accept json
97103// @Param id path int true "标签 ID"
98104// @Param data body service.UpdateTagRequest true "请求体"
99105// @Success 200 {object} model.Tag "成功"
You can’t perform that action at this time.
0 commit comments