Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUserRankRepo ¶
func NewUserRankRepo(data *data.Data, configRepo config.ConfigRepo) rank.UserRankRepo
NewUserRankRepo new repository
Types ¶
type UserRankRepo ¶
type UserRankRepo struct {
// contains filtered or unexported fields
}
UserRankRepo user rank repository
func (*UserRankRepo) TriggerUserRank ¶
func (ur *UserRankRepo) TriggerUserRank(ctx context.Context, session *xorm.Session, userID string, deltaRank int, activityType int, ) (isReachStandard bool, err error)
TriggerUserRank trigger user rank change session is need provider, it means this action must be success or failure if outer action is failed then this action is need rollback
Click to show internal directories.
Click to hide internal directories.