Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AnyOne = Special.Target("any", "所有人") All = Special.Target("all", "所有人") TeamMember = Special.Target("team_member", "团队成员") TeamMaster = Special.Target("team_master", "团队负责人") ProjectMember = Special.Target("project_member", "系统成员") ProjectMaster = Special.Target("project_master", "系统负责人") )
Functions ¶
func CompleteLabels ¶
Types ¶
type PermitType ¶
type PermitType int
const ( Invalid PermitType = iota Role // Special 专属 Special // UserGroup 用户组 UserGroup // User 用户 User )
func Parse ¶
func Parse(v string) PermitType
func (PermitType) KeyOf ¶
func (p PermitType) KeyOf(v string) string
func (PermitType) MarshalJSON ¶
func (p PermitType) MarshalJSON() ([]byte, error)
func (PermitType) Name ¶
func (p PermitType) Name() string
func (PermitType) Tag ¶
func (p PermitType) Tag() string
Click to show internal directories.
Click to hide internal directories.