Skip to content

Commit 2645dcd

Browse files
committed
fixed:插件api增加空方法模板调整。
1 parent 6debb09 commit 2645dcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/resource/function/api.go.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
// @Produce application/json
77
// @Param data query request.{{.StructName}}Search true "分页获取{{.Description}}列表"
88
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
9-
// @Router /{{.Abbreviation}}/{{.FuncName}} [{{.Method}}]
10-
func (a *{{.Abbreviation}}) {{.Router}}(c *gin.Context) {
9+
// @Router /{{.Abbreviation}}/{{.Router}} [{{.Method}}]
10+
func (a *{{.Abbreviation}}) {{.FuncName}}(c *gin.Context) {
1111
// 请添加自己的业务逻辑
1212
err := service{{ .StructName }}.{{.FuncName}}()
1313
if err != nil {

0 commit comments

Comments
 (0)