Documentation
¶
Index ¶
- func GetAnswerPermission(ctx context.Context, userID string, creatorUserID string, ...) (actions []*schema.PermissionMemberAction)
- func GetCommentPermission(ctx context.Context, userID string, creatorUserID string, ...) (actions []*schema.PermissionMemberAction)
- func GetQuestionPermission(ctx context.Context, userID string, creatorUserID string, ...) (actions []*schema.PermissionMemberAction)
- func GetTagPermission(ctx context.Context, canEdit, canDelete bool) (actions []*schema.PermissionMemberAction)
- func GetTagSynonymPermission(ctx context.Context, canEdit bool) (actions []*schema.PermissionMemberAction)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAnswerPermission ¶
func GetAnswerPermission(ctx context.Context, userID string, creatorUserID string, canEdit, canDelete bool) ( actions []*schema.PermissionMemberAction)
GetAnswerPermission get answer permission
func GetCommentPermission ¶
func GetCommentPermission(ctx context.Context, userID string, creatorUserID string, canEdit, canDelete bool) ( actions []*schema.PermissionMemberAction)
GetCommentPermission get comment permission
func GetQuestionPermission ¶
func GetQuestionPermission(ctx context.Context, userID string, creatorUserID string, canEdit, canDelete, canClose bool) ( actions []*schema.PermissionMemberAction)
GetQuestionPermission get question permission
func GetTagPermission ¶
func GetTagPermission(ctx context.Context, canEdit, canDelete bool) ( actions []*schema.PermissionMemberAction)
GetTagPermission get tag permission
func GetTagSynonymPermission ¶ added in v0.5.0
func GetTagSynonymPermission(ctx context.Context, canEdit bool) ( actions []*schema.PermissionMemberAction)
GetTagSynonymPermission get tag synonym permission
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.