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"
|
|
|
|
"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"
|
|
|
|
"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 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,
|
|
|
|
NewQuestionRepo,
|
|
|
|
NewAnswerRepo,
|
|
|
|
NewActivityRepo,
|
|
|
|
activity.NewVoteRepo,
|
|
|
|
activity.NewFollowRepo,
|
|
|
|
activity.NewAnswerActivityRepo,
|
|
|
|
activity.NewQuestionActivityRepo,
|
|
|
|
activity.NewUserActiveActivityRepo,
|
|
|
|
tag.NewTagRepo,
|
|
|
|
tag.NewTagListRepo,
|
|
|
|
collection.NewCollectionRepo,
|
|
|
|
collection.NewCollectionGroupRepo,
|
|
|
|
auth.NewAuthRepo,
|
|
|
|
revision.NewRevisionRepo,
|
|
|
|
NewSearchRepo,
|
|
|
|
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,
|
|
|
|
)
|