Skip to content

Commit

Permalink
fixed:插件api增加空方法模板调整。
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelmaxQm committed Jul 27, 2024
1 parent 2645dcd commit c97b60b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/resource/function/api.go.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c97b60b

Please sign in to comment.