Documentation ¶
Index ¶
Constants ¶
View Source
const ( QuestionAddRank = "rank.question.add" QuestionEditRank = "rank.question.edit" QuestionDeleteRank = "rank.question.delete" QuestionVoteUpRank = "rank.question.vote_up" QuestionVoteDownRank = "rank.question.vote_down" AnswerAddRank = "rank.answer.add" AnswerEditRank = "rank.answer.edit" AnswerDeleteRank = "rank.answer.delete" AnswerAcceptRank = "rank.answer.accept" AnswerVoteUpRank = "rank.answer.vote_up" AnswerVoteDownRank = "rank.answer.vote_down" CommentAddRank = "rank.comment.add" CommentEditRank = "rank.comment.edit" CommentDeleteRank = "rank.comment.delete" ReportAddRank = "rank.report.add" TagAddRank = "rank.tag.add" TagEditRank = "rank.tag.edit" TagDeleteRank = "rank.tag.delete" TagSynonymRank = "rank.tag.synonym" LinkUrlLimitRank = "rank.link.url_limit" VoteDetailRank = "rank.vote.detail" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RankService ¶
type RankService struct {
// contains filtered or unexported fields
}
RankService rank service
func NewRankService ¶
func NewRankService( userCommon *usercommon.UserCommon, userRankRepo UserRankRepo, objectInfoService *object_info.ObjService, configRepo config.ConfigRepo) *RankService
NewRankService new rank service
func (*RankService) CheckRankPermission ¶
func (rs *RankService) CheckRankPermission(ctx context.Context, userID string, action string) (can bool, err error)
CheckRankPermission check whether the user reputation meets the permission
func (*RankService) GetRankPersonalWithPage ¶
func (rs *RankService) GetRankPersonalWithPage(ctx context.Context, req *schema.GetRankPersonalWithPageReq) ( pageModel *pager.PageModel, err error)
GetRankPersonalWithPage get personal comment list page
type UserRankRepo ¶
Click to show internal directories.
Click to hide internal directories.