This commit is contained in:
kevin
2020-09-03 10:15:14 +08:00
parent 1e85f74fd8
commit d1129e3974
6 changed files with 15 additions and 15 deletions

View File

@@ -20,16 +20,16 @@ import (
)
type {{.logic}} struct {
logx.Logger
ctx context.Context
svcCtx *svc.ServiceContext
logx.Logger
}
func New{{.logic}}(ctx context.Context, svcCtx *svc.ServiceContext) {{.logic}} {
return {{.logic}}{
Logger: logx.WithContext(ctx),
ctx: ctx,
svcCtx: svcCtx,
Logger: logx.WithContext(ctx),
}
}