f
This commit is contained in:
@@ -17,6 +17,7 @@ import (
|
||||
"tyapi-server/internal/infrastructure/external/westdex"
|
||||
"tyapi-server/internal/infrastructure/external/xingwei"
|
||||
"tyapi-server/internal/infrastructure/external/yushan"
|
||||
"tyapi-server/internal/infrastructure/external/yuyuecha"
|
||||
"tyapi-server/internal/infrastructure/external/zhicha"
|
||||
"tyapi-server/internal/shared/interfaces"
|
||||
)
|
||||
@@ -46,6 +47,7 @@ type ProcessorDependencies struct {
|
||||
HuiboService *huibo.HuiboService
|
||||
NuoerService *nuoer.NuoerService
|
||||
HaiyuapiService *haiyuapi.HaiyuapiService
|
||||
YuyuechaService *yuyuecha.YuyuechaService
|
||||
Validator interfaces.RequestValidator
|
||||
CombService CombServiceInterface // Changed to interface to break import cycle
|
||||
Options *commands.ApiCallOptions // 添加Options支持
|
||||
@@ -76,6 +78,7 @@ func NewProcessorDependencies(
|
||||
huiboService *huibo.HuiboService,
|
||||
nuoerService *nuoer.NuoerService,
|
||||
haiyuapiService *haiyuapi.HaiyuapiService,
|
||||
yuyuechaService *yuyuecha.YuyuechaService,
|
||||
validator interfaces.RequestValidator,
|
||||
combService CombServiceInterface, // Changed to interface
|
||||
reportRepo repositories.ReportRepository,
|
||||
@@ -96,6 +99,7 @@ func NewProcessorDependencies(
|
||||
HuiboService: huiboService,
|
||||
NuoerService: nuoerService,
|
||||
HaiyuapiService: haiyuapiService,
|
||||
YuyuechaService: yuyuechaService,
|
||||
Validator: validator,
|
||||
CombService: combService,
|
||||
Options: nil, // 初始化为nil,在调用时设置
|
||||
|
||||
Reference in New Issue
Block a user