We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6debb09 commit 2645dcdCopy full SHA for 2645dcd
server/resource/function/api.go.tpl
@@ -6,8 +6,8 @@
6
// @Produce application/json
7
// @Param data query request.{{.StructName}}Search true "分页获取{{.Description}}列表"
8
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
9
-// @Router /{{.Abbreviation}}/{{.FuncName}} [{{.Method}}]
10
-func (a *{{.Abbreviation}}) {{.Router}}(c *gin.Context) {
+// @Router /{{.Abbreviation}}/{{.Router}} [{{.Method}}]
+func (a *{{.Abbreviation}}) {{.FuncName}}(c *gin.Context) {
11
// 请添加自己的业务逻辑
12
err := service{{ .StructName }}.{{.FuncName}}()
13
if err != nil {
0 commit comments