File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ func ({{.Abbreviation}}Api *{{.StructName}}Api) Update{{.StructName}}(c *gin.Con
130130// @Security ApiKeyAuth
131131// @Accept application/json
132132// @Produce application/json
133- // @Param data query { {.PrimaryField.FieldType} } true "用id查询{ {.Description} }"
133+ // @Param { {.PrimaryField.FieldJson } } query { {.PrimaryField.FieldType} } true "用id查询{ {.Description} }"
134134// @Success 200 { object} response.Response{ data= {{.Package} }.{ {.StructName} },msg=string} "查询成功"
135135// @Router /{ {.Abbreviation} }/find{ {.StructName} } [get]
136136func ({ {.Abbreviation} }Api *{ {.StructName} }Api) Find{ {.StructName} }(c *gin.Context) {
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ func (a *{{.Abbreviation}}) Update{{.StructName}}(c *gin.Context) {
130130// @Security ApiKeyAuth
131131// @Accept application/json
132132// @Produce application/json
133- // @Param data query model. {{.StructName }} true "用id查询{{.Description}}"
133+ // @Param {{.PrimaryField.FieldJson}} query {{.PrimaryField.FieldType }} true "用id查询{{.Description}}"
134134// @Success 200 {object} response.Response{data=model.{{.StructName}},msg=string} "查询成功"
135135// @Router /{{.Abbreviation}}/find{{.StructName}} [get]
136136func (a *{{.Abbreviation}}) Find{{.StructName}}(c *gin.Context) {
You can’t perform that action at this time.
0 commit comments