Skip to content

Commit

Permalink
query 注释后面跟随的应该是请求字段类型
Browse files Browse the repository at this point in the history
  • Loading branch information
huiyifyj committed Dec 18, 2024
1 parent c0554ce commit 5004672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/resource/package/server/api/api.go.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func ({{.Abbreviation}}Api *{{.StructName}}Api) Update{{.StructName}}(c *gin.Con
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query {{.PrimaryField.FieldJson}} true "用id查询{{.Description}}"
// @Param data query {{.PrimaryField.FieldType}} true "用id查询{{.Description}}"
// @Success 200 {object} response.Response{data={{.Package}}.{{.StructName}},msg=string} "查询成功"
// @Router /{{.Abbreviation}}/find{{.StructName}} [get]
func ({{.Abbreviation}}Api *{{.StructName}}Api) Find{{.StructName}}(c *gin.Context) {
Expand Down

0 comments on commit 5004672

Please sign in to comment.