add qygl23t7
This commit is contained in:
@@ -29,6 +29,7 @@ import (
|
||||
"tyapi-server/internal/infrastructure/external/ocr"
|
||||
"tyapi-server/internal/infrastructure/external/sms"
|
||||
"tyapi-server/internal/infrastructure/external/storage"
|
||||
"tyapi-server/internal/infrastructure/external/tianyancha"
|
||||
"tyapi-server/internal/infrastructure/external/westdex"
|
||||
"tyapi-server/internal/infrastructure/external/yushan"
|
||||
"tyapi-server/internal/infrastructure/http/handlers"
|
||||
@@ -305,6 +306,14 @@ func NewContainer() *Container {
|
||||
cfg.Yushan.AcctID,
|
||||
)
|
||||
},
|
||||
// TianYanChaService - 天眼查服务
|
||||
func(cfg *config.Config) *tianyancha.TianYanChaService {
|
||||
return tianyancha.NewTianYanChaService(
|
||||
cfg.TianYanCha.BaseURL, // 天眼查API基础URL
|
||||
cfg.TianYanCha.APIKey,
|
||||
30*time.Second, // 默认超时时间
|
||||
)
|
||||
},
|
||||
sharedhttp.NewGinRouter,
|
||||
),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user