Skip to content

Commit c97b60b

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: server/resource/function/api.go.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func (a *{{.Abbreviation}}) {{.FuncName}}(c *gin.Context) {
3030
// @Router /{{.Abbreviation}}/{{.Router}} [{{.Method}}]
3131
func ({{.Abbreviation}}Api *{{.StructName}}Api){{.FuncName}}(c *gin.Context) {
3232
// 请添加自己的业务逻辑
33-
if err := {{.Abbreviation}}Service.{{.FuncName}}()
33+
err := {{.Abbreviation}}Service.{{.FuncName}}()
3434
if err != nil {
3535
global.GVA_LOG.Error("失败!", zap.Error(err))
3636
response.FailWithMessage("失败", c)

0 commit comments

Comments
 (0)