| 1234567891011121314151617181920212223242526272829 |
- // Code scaffolded by goctl. Safe to edit.
- // goctl {{.version}}
- package {{.pkgName}}
- import (
- {{.imports}}
- )
- type {{.logic}} struct {
- logx.Logger
- ctx context.Context
- svcCtx *svc.ServiceContext
- }
- {{if .hasDoc}}{{.doc}}{{end}}
- func New{{.logic}}(ctx context.Context, svcCtx *svc.ServiceContext) *{{.logic}} {
- return &{{.logic}}{
- Logger: logx.WithContext(ctx),
- ctx: ctx,
- svcCtx: svcCtx,
- }
- }
- func (l *{{.logic}}) {{.function}}({{.request}}) {{.responseType}} {
- // todo: add your logic here and delete this line
- {{.returnString}}
- }
|