|
@@ -22,13 +22,15 @@ import (
|
|
|
)
|
|
|
|
|
|
type {{.logicName}} struct {
|
|
|
- ctx context.Context
|
|
|
+ ctx context.Context
|
|
|
+ svcCtx *svc.ServiceContext
|
|
|
logx.Logger
|
|
|
}
|
|
|
|
|
|
func New{{.logicName}}(ctx context.Context,svcCtx *svc.ServiceContext) *{{.logicName}} {
|
|
|
return &{{.logicName}}{
|
|
|
ctx: ctx,
|
|
|
+ svcCtx: svcCtx,
|
|
|
Logger: logx.WithContext(ctx),
|
|
|
}
|
|
|
}
|