proto/goutils/proto_build/tpls/logic_fusen_handler.tpl
huangsimin@fusen.cn c0cbff775f 最新版本
2023-11-27 17:36:02 +08:00

17 lines
456 B
Smarty

package {{.PackageName}}
import (
"fusen-basic/basic"
"{{.ProjectName}}/gen/go/service"
)
func (l *{{.StructName}}) {{.MethodName}}Logic(req {{.ParamReq}}, userinfo *basic.UserInfo) (resp *basic.Response[{{.MethodResponse}}]) {
return resp.Set(basic.CodeOK)
}
// 自定义验证校验方法 VaildUserInfoHandler
// func (h *{{.MethodName}}Handler) VaildUserInfoHandler(ctx context.Context) *basic.UserInfo {
// return basic.ValidUserInfo(ctx)
// }