完善logic.tpl的错误

This commit is contained in:
eson
2023-06-07 18:30:58 +08:00
parent 996874a253
commit dc73ff1679
10 changed files with 111 additions and 11 deletions

View File

@@ -21,5 +21,5 @@ func New{{.logic}}(ctx context.Context, svcCtx *svc.ServiceContext) *{{.logic}}
func (l *{{.logic}}) {{.function}}({{.request}}) (resp *types.Response) {
// Set重新返回, resp可以空指针调用 resp.SetStatus(basic.CodeOK, data)
{{.returnString}} resp
{{.returnString}} resp.SetStatus(basic.CodeOK)
}