answer/internal/repo/provider.go

81 lines
2.7 KiB
Go

package repo
import (
"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/answer"
"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/config"
"github.com/answerdev/answer/internal/repo/export"
"github.com/answerdev/answer/internal/repo/limit"
"github.com/answerdev/answer/internal/repo/meta"
"github.com/answerdev/answer/internal/repo/notification"
"github.com/answerdev/answer/internal/repo/plugin_config"
"github.com/answerdev/answer/internal/repo/question"
"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"
"github.com/answerdev/answer/internal/repo/role"
"github.com/answerdev/answer/internal/repo/search_common"
"github.com/answerdev/answer/internal/repo/site_info"
"github.com/answerdev/answer/internal/repo/tag"
"github.com/answerdev/answer/internal/repo/tag_common"
"github.com/answerdev/answer/internal/repo/unique"
"github.com/answerdev/answer/internal/repo/user"
"github.com/answerdev/answer/internal/repo/user_external_login"
"github.com/answerdev/answer/internal/repo/user_notification_config"
"github.com/google/wire"
)
// ProviderSetRepo is data providers.
var ProviderSetRepo = wire.NewSet(
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.NewUserAdminRepo,
rank.NewUserRankRepo,
question.NewQuestionRepo,
answer.NewAnswerRepo,
activity_common.NewActivityRepo,
activity.NewVoteRepo,
activity.NewFollowRepo,
activity.NewAnswerActivityRepo,
activity.NewUserActiveActivityRepo,
activity.NewActivityRepo,
tag.NewTagRepo,
tag_common.NewTagCommonRepo,
tag.NewTagRelRepo,
collection.NewCollectionRepo,
collection.NewCollectionGroupRepo,
auth.NewAuthRepo,
revision.NewRevisionRepo,
search_common.NewSearchRepo,
meta.NewMetaRepo,
export.NewEmailRepo,
reason.NewReasonRepo,
site_info.NewSiteInfo,
notification.NewNotificationRepo,
role.NewRoleRepo,
role.NewUserRoleRelRepo,
role.NewRolePowerRelRepo,
role.NewPowerRepo,
user_external_login.NewUserExternalLoginRepo,
plugin_config.NewPluginConfigRepo,
user_notification_config.NewUserNotificationConfigRepo,
limit.NewRateLimitRepo,
)