answer/internal/service/permission/permission_name.go

39 lines
1.6 KiB
Go

package permission
const (
AdminAccess = "admin.access"
QuestionAdd = "question.add"
QuestionEdit = "question.edit"
QuestionEditWithoutReview = "question.edit_without_review"
QuestionDelete = "question.delete"
QuestionClose = "question.close"
QuestionReopen = "question.reopen"
QuestionVoteUp = "question.vote_up"
QuestionVoteDown = "question.vote_down"
AnswerAdd = "answer.add"
AnswerEdit = "answer.edit"
AnswerEditWithoutReview = "answer.edit_without_review"
AnswerDelete = "answer.delete"
AnswerAccept = "answer.accept"
AnswerVoteUp = "answer.vote_up"
AnswerVoteDown = "answer.vote_down"
CommentAdd = "comment.add"
CommentEdit = "comment.edit"
CommentDelete = "comment.delete"
CommentVoteUp = "comment.vote_up"
CommentVoteDown = "comment.vote_down"
ReportAdd = "report.add"
TagAdd = "tag.add"
TagEdit = "tag.edit"
TagEditSlugName = "tag.edit_slug_name"
TagEditWithoutReview = "tag.edit_without_review"
TagDelete = "tag.delete"
TagSynonym = "tag.synonym"
LinkUrlLimit = "link.url_limit"
VoteDetail = "vote.detail"
AnswerAudit = "answer.audit"
QuestionAudit = "question.audit"
TagAudit = "tag.audit"
TagUseReservedTag = "tag.use_reserved_tag"
)