add qygl23t7

This commit is contained in:
2025-07-30 00:51:22 +08:00
parent 83530c0f9b
commit 723c418a1b
38 changed files with 999 additions and 785 deletions

View File

@@ -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,
),