修改domain包
This commit is contained in:
@@ -6,10 +6,10 @@ import (
|
||||
|
||||
"git.huangwc.com/pig/pig-farm-controller/internal/app/dto"
|
||||
domain_notify "git.huangwc.com/pig/pig-farm-controller/internal/domain/notify"
|
||||
"git.huangwc.com/pig/pig-farm-controller/internal/domain/token"
|
||||
"git.huangwc.com/pig/pig-farm-controller/internal/infra/logs"
|
||||
"git.huangwc.com/pig/pig-farm-controller/internal/infra/models"
|
||||
"git.huangwc.com/pig/pig-farm-controller/internal/infra/repository"
|
||||
"git.huangwc.com/pig/pig-farm-controller/internal/infra/utils/token"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
@@ -23,24 +23,24 @@ type UserService interface {
|
||||
|
||||
// userService 实现了 UserService 接口
|
||||
type userService struct {
|
||||
ctx context.Context
|
||||
userRepo repository.UserRepository
|
||||
tokenService token.Service
|
||||
notifyService domain_notify.Service
|
||||
ctx context.Context
|
||||
userRepo repository.UserRepository
|
||||
tokenGenerator token.Generator
|
||||
notifyService domain_notify.Service
|
||||
}
|
||||
|
||||
// NewUserService 创建并返回一个新的 UserService 实例
|
||||
func NewUserService(
|
||||
ctx context.Context,
|
||||
userRepo repository.UserRepository,
|
||||
tokenService token.Service,
|
||||
tokenGenerator token.Generator,
|
||||
notifyService domain_notify.Service,
|
||||
) UserService {
|
||||
return &userService{
|
||||
ctx: ctx,
|
||||
userRepo: userRepo,
|
||||
tokenService: tokenService,
|
||||
notifyService: notifyService,
|
||||
ctx: ctx,
|
||||
userRepo: userRepo,
|
||||
tokenGenerator: tokenGenerator,
|
||||
notifyService: notifyService,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user