You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
458 B
Smarty
26 lines
458 B
Smarty
package {{.pkgName}}
|
|
|
|
import (
|
|
{{.imports}}
|
|
)
|
|
|
|
type {{.logic}} struct {
|
|
logx.Logger
|
|
ctx context.Context
|
|
svcCtx *svc.ServiceContext
|
|
}
|
|
|
|
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}}
|
|
}
|