Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(CreateInitControllersFn, NewController, NewService, NewRepository, )
Functions ¶
This section is empty.
Types ¶
type Controller ¶
func NewController ¶
func NewController(logger *zap.Logger, s Service) Controller
type InitRanklistGroupFn ¶
type InitRanklistGroupFn func(r *gin.RouterGroup)
func CreateInitControllersFn ¶
func CreateInitControllersFn(pc Controller) InitRanklistGroupFn
type Repository ¶
type Repository interface { CreateRankList() (p *models.RankList, err error) CreateRankListModel(id uint64) (*models.RankListModel, error) CreateRankListRecord(rl *models.RankList, account *models.Account, key string, value interface{}) (*models.RankListRecord, error) GetRankList(id uint64) (*models.RankList, error) GetRankListsByProblem(problem *models.Problem) ([]*models.RankList, error) }
func NewRepository ¶
func NewRepository(logger *zap.Logger, db *gorm.DB) Repository
Click to show internal directories.
Click to hide internal directories.