diff --git a/server/resource/function/api.go.tpl b/server/resource/function/api.go.tpl index 8d2d113bfd..c788a9fa18 100644 --- a/server/resource/function/api.go.tpl +++ b/server/resource/function/api.go.tpl @@ -30,7 +30,7 @@ func (a *{{.Abbreviation}}) {{.FuncName}}(c *gin.Context) { // @Router /{{.Abbreviation}}/{{.Router}} [{{.Method}}] func ({{.Abbreviation}}Api *{{.StructName}}Api){{.FuncName}}(c *gin.Context) { // 请添加自己的业务逻辑 - if err := {{.Abbreviation}}Service.{{.FuncName}}() + err := {{.Abbreviation}}Service.{{.FuncName}}() if err != nil { global.GVA_LOG.Error("失败!", zap.Error(err)) response.FailWithMessage("失败", c)