2022-09-27 17:59:05 +08:00
|
|
|
package repo
|
|
|
|
|
|
|
|
import (
|
2022-10-24 16:51:05 +08:00
|
|
|
"github.com/answerdev/answer/internal/base/data"
|
|
|
|
"github.com/answerdev/answer/internal/repo/activity"
|
|
|
|
"github.com/answerdev/answer/internal/repo/activity_common"
|
2022-10-27 15:40:11 +08:00
|
|
|
"github.com/answerdev/answer/internal/repo/answer"
|
2022-10-24 16:51:05 +08:00
|
|
|
"github.com/answerdev/answer/internal/repo/auth"
|
|
|
|
"github.com/answerdev/answer/internal/repo/captcha"
|
|
|
|
"github.com/answerdev/answer/internal/repo/collection"
|
|
|
|
"github.com/answerdev/answer/internal/repo/comment"
|
|
|
|
"github.com/answerdev/answer/internal/repo/common"
|
|
|
|
"github.com/answerdev/answer/internal/repo/config"
|
|
|
|
"github.com/answerdev/answer/internal/repo/export"
|
|
|
|
"github.com/answerdev/answer/internal/repo/meta"
|
|
|
|
"github.com/answerdev/answer/internal/repo/notification"
|
2022-10-27 15:40:11 +08:00
|
|
|
"github.com/answerdev/answer/internal/repo/question"
|
2022-10-24 16:51:05 +08:00
|
|
|
"github.com/answerdev/answer/internal/repo/rank"
|
|
|
|
"github.com/answerdev/answer/internal/repo/reason"
|
|
|
|
"github.com/answerdev/answer/internal/repo/report"
|
|
|
|
"github.com/answerdev/answer/internal/repo/revision"
|
2022-10-27 15:40:11 +08:00
|
|
|
"github.com/answerdev/answer/internal/repo/search_common"
|
2022-10-27 11:23:16 +08:00
|
|
|
"github.com/answerdev/answer/internal/repo/site_info"
|
2022-10-24 16:51:05 +08:00
|
|
|
"github.com/answerdev/answer/internal/repo/tag"
|
|
|
|
"github.com/answerdev/answer/internal/repo/unique"
|
|
|
|
"github.com/answerdev/answer/internal/repo/user"
|
2022-09-27 17:59:05 +08:00
|
|
|
"github.com/google/wire"
|
|
|
|
)
|
|
|
|
|
|
|
|
// ProviderSetRepo is data providers.
|
|
|
|
var ProviderSetRepo = wire.NewSet(
|
|
|
|
common.NewCommonRepo,
|
|
|
|
data.NewData,
|
|
|
|
data.NewDB,
|
|
|
|
data.NewCache,
|
|
|
|
comment.NewCommentRepo,
|
|
|
|
comment.NewCommentCommonRepo,
|
|
|
|
captcha.NewCaptchaRepo,
|
|
|
|
unique.NewUniqueIDRepo,
|
|
|
|
report.NewReportRepo,
|
|
|
|
activity_common.NewFollowRepo,
|
|
|
|
activity_common.NewVoteRepo,
|
|
|
|
config.NewConfigRepo,
|
|
|
|
user.NewUserRepo,
|
|
|
|
user.NewUserBackyardRepo,
|
|
|
|
rank.NewUserRankRepo,
|
2022-10-27 15:40:11 +08:00
|
|
|
question.NewQuestionRepo,
|
|
|
|
answer.NewAnswerRepo,
|
|
|
|
activity_common.NewActivityRepo,
|
2022-09-27 17:59:05 +08:00
|
|
|
activity.NewVoteRepo,
|
|
|
|
activity.NewFollowRepo,
|
|
|
|
activity.NewAnswerActivityRepo,
|
|
|
|
activity.NewQuestionActivityRepo,
|
|
|
|
activity.NewUserActiveActivityRepo,
|
|
|
|
tag.NewTagRepo,
|
2022-10-27 19:21:49 +08:00
|
|
|
tag.NewTagRelRepo,
|
2022-09-27 17:59:05 +08:00
|
|
|
collection.NewCollectionRepo,
|
|
|
|
collection.NewCollectionGroupRepo,
|
|
|
|
auth.NewAuthRepo,
|
|
|
|
revision.NewRevisionRepo,
|
2022-10-27 15:40:11 +08:00
|
|
|
search_common.NewSearchRepo,
|
2022-09-27 17:59:05 +08:00
|
|
|
meta.NewMetaRepo,
|
|
|
|
export.NewEmailRepo,
|
|
|
|
reason.NewReasonRepo,
|
2022-10-27 11:23:16 +08:00
|
|
|
site_info.NewSiteInfo,
|
2022-09-27 17:59:05 +08:00
|
|
|
notification.NewNotificationRepo,
|
|
|
|
)
|