Skip to content

Commit 9d58390

Browse files
wall-jswall-js
andauthored
fix(bug): [api.go.tpl]自动化代码swag路径冲突 (#1732)
Co-authored-by: wall-js <[email protected]>
1 parent db4c7a8 commit 9d58390

File tree

1 file changed

+1
-1
lines changed
  • server/resource/autocode_template/server

1 file changed

+1
-1
lines changed

server/resource/autocode_template/server/api.go.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ func ({{.Abbreviation}}Api *{{.StructName}}Api) Get{{.StructName}}DataSource(c *
192192
// @Produce application/json
193193
// @Param data query {{.Package}}Req.{{.StructName}}Search true "分页获取{{.Description}}列表"
194194
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
195-
// @Router /{{.Abbreviation}}/get{{.StructName}}List [get]
195+
// @Router /{{.Abbreviation}}/get{{.StructName}}Public [get]
196196
func ({{.Abbreviation}}Api *{{.StructName}}Api) Get{{.StructName}}Public(c *gin.Context) {
197197
// 此接口不需要鉴权
198198
// 示例为返回了一个固定的消息接口,一般本接口用于C端服务,需要自己实现业务逻辑

0 commit comments

Comments
 (0)