This commit is contained in:
Mrx
2026-05-23 16:13:30 +08:00
parent effe82ce65
commit e2aab6af71
11 changed files with 695 additions and 9 deletions

View File

@@ -82,6 +82,7 @@ type ServiceContext struct {
ExampleModel model.ExampleModel
GlobalNotificationsModel model.GlobalNotificationsModel
AuthorizationDocumentModel model.AuthorizationDocumentModel
InquiryRecordModel model.InquiryRecordModel
// 第三方服务
TianyuanapiCallLogService *service.TianyuanapiCallLogService
@@ -172,6 +173,7 @@ func NewServiceContext(c config.Config) *ServiceContext {
exampleModel := model.NewExampleModel(db, cacheConf)
globalNotificationsModel := model.NewGlobalNotificationsModel(db, cacheConf)
authorizationDocumentModel := model.NewAuthorizationDocumentModel(db, cacheConf)
inquiryRecordModel := model.NewInquiryRecordModel(db, cacheConf)
tianyuanapiCallLogModel := model.NewTianyuanapiCallLogModel(db, cacheConf)
// ============================== 第三方服务初始化 ==============================
@@ -297,6 +299,7 @@ func NewServiceContext(c config.Config) *ServiceContext {
ExampleModel: exampleModel,
GlobalNotificationsModel: globalNotificationsModel,
AuthorizationDocumentModel: authorizationDocumentModel,
InquiryRecordModel: inquiryRecordModel,
// 第三方服务
TianyuanapiCallLogService: tianyuanapiCallLogService,