Affected by GO-2023-1774
and 5 other vulnerabilities
GO-2023-1774 : Answer Missing Authorization vulnerability in github.com/answerdev/answer
GO-2023-1995 : Answer has Race Condition within a Thread in github.com/answerdev/answer
GO-2023-1996 : Answer Insufficient Session Expiration vulnerability in github.com/answerdev/answer
GO-2023-1997 : Answer Missing Authorization vulnerability in github.com/answerdev/answer
GO-2023-2001 : Answer has Weak Password Requirements in github.com/answerdev/answer
GO-2023-2051 : Answer Missing Authentication for Critical Function in github.com/answerdev/answer
Discover Packages
github.com/answerdev/answer
internal
repo
rank
package
Version:
v1.0.8
Opens a new window with list of versions in this module.
Published: Apr 11, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func NewUserRankRepo(data *data.Data, configRepo config.ConfigRepo) rank.UserRankRepo
type UserRankRepo
func (ur *UserRankRepo) TriggerUserRank(ctx context.Context, session *xorm.Session, userID string, deltaRank int, ...) (isReachStandard bool, err error)
func (ur *UserRankRepo) UserRankPage(ctx context.Context, userID string, page, pageSize int) (rankPage []*entity.Activity, total int64, err error)
NewUserRankRepo new repository
type UserRankRepo struct {
}
UserRankRepo user rank repository
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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.