fadd
This commit is contained in:
@@ -42,6 +42,7 @@ type ServiceContext struct {
|
||||
QueryCleanupLogModel model.QueryCleanupLogModel
|
||||
QueryCleanupDetailModel model.QueryCleanupDetailModel
|
||||
QueryCleanupConfigModel model.QueryCleanupConfigModel
|
||||
QueryUserRecordModel model.QueryUserRecordModel
|
||||
|
||||
// 代理相关模型
|
||||
AgentModel model.AgentModel
|
||||
@@ -132,6 +133,7 @@ func NewServiceContext(c config.Config) *ServiceContext {
|
||||
queryCleanupLogModel := model.NewQueryCleanupLogModel(db, cacheConf)
|
||||
queryCleanupDetailModel := model.NewQueryCleanupDetailModel(db, cacheConf)
|
||||
queryCleanupConfigModel := model.NewQueryCleanupConfigModel(db, cacheConf)
|
||||
queryUserRecordModel := model.NewQueryUserRecordModel(db, cacheConf)
|
||||
|
||||
// ============================== 代理相关模型 ==============================
|
||||
agentModel := model.NewAgentModel(db, cacheConf)
|
||||
@@ -244,6 +246,7 @@ func NewServiceContext(c config.Config) *ServiceContext {
|
||||
QueryCleanupLogModel: queryCleanupLogModel,
|
||||
QueryCleanupDetailModel: queryCleanupDetailModel,
|
||||
QueryCleanupConfigModel: queryCleanupConfigModel,
|
||||
QueryUserRecordModel: queryUserRecordModel,
|
||||
|
||||
// 代理相关模型
|
||||
AgentModel: agentModel,
|
||||
|
||||
Reference in New Issue
Block a user