Skip to content

Commit

Permalink
模板文件文档注释修改 (#1973)
Browse files Browse the repository at this point in the history
* 模板文件文档注释修改

* 补充模板相关修改
  • Loading branch information
huiyifyj authored Dec 30, 2024
1 parent d19e446 commit 21237f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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.FieldType}} true "用id查询{{.Description}}"
// @Param {{.PrimaryField.FieldJson}} 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
2 changes: 1 addition & 1 deletion server/resource/plugin/server/api/api.go.template
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func (a *{{.Abbreviation}}) Update{{.StructName}}(c *gin.Context) {
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.{{.StructName}} true "用id查询{{.Description}}"
// @Param {{.PrimaryField.FieldJson}} query {{.PrimaryField.FieldType}} true "用id查询{{.Description}}"
// @Success 200 {object} response.Response{data=model.{{.StructName}},msg=string} "查询成功"
// @Router /{{.Abbreviation}}/find{{.StructName}} [get]
func (a *{{.Abbreviation}}) Find{{.StructName}}(c *gin.Context) {
Expand Down

0 comments on commit 21237f8

Please sign in to comment.