Documentation ¶
Index ¶
- Variables
- type UserType
- func (UserType) Descriptor() protoreflect.EnumDescriptor
- func (x UserType) Enum() *UserType
- func (UserType) EnumDescriptor() ([]byte, []int)deprecated
- func (t UserType) Equal(target UserType) bool
- func (t UserType) IsIn(targets ...UserType) bool
- func (t UserType) MarshalJSON() ([]byte, error)
- func (x UserType) Number() protoreflect.EnumNumber
- func (x UserType) String() string
- func (UserType) Type() protoreflect.EnumType
- func (t *UserType) UnmarshalJSON(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UserType_name = map[int32]string{ 0: "SUB", 5: "ORG_ADMIN", 6: "AUDIT_ADMIN", 7: "PERM_ADMIN", 8: "DOMAIN_ADMIN", 10: "PRIMARY", 15: "SUPPER", } UserType_value = map[string]int32{ "SUB": 0, "ORG_ADMIN": 5, "AUDIT_ADMIN": 6, "PERM_ADMIN": 7, "DOMAIN_ADMIN": 8, "PRIMARY": 10, "SUPPER": 15, } )
Enum value maps for UserType.
View Source
var File_apps_user_pb_types_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type UserType ¶
type UserType int32
为了防止越权, 用户可以调整的权限范围只有10已下的权限
const ( // 子账号, 无用户中心后台管理权限 UserType_SUB UserType = 0 // 组织管理严, 管理该域的组织结构 UserType_ORG_ADMIN UserType = 5 // 审计管理员, 可以查看用户中心相关配置, 相当于用户中心只读权限 UserType_AUDIT_ADMIN UserType = 6 // 权限管理员, 管理用户的授权策略, 比如空间管理,资源访问策略的配置 UserType_PERM_ADMIN UserType = 7 // 域管理员, 有该域的所有管理权限, 协作主账号进行管理 UserType_DOMAIN_ADMIN UserType = 8 // 主账号, 具有本域的所有权限 UserType_PRIMARY UserType = 10 // 超级管理员, 系统管理员, 万能的人, 不受权限系统约束 UserType_SUPPER UserType = 15 )
func ParseUserTypeFromString ¶
ParseUserTypeFromString Parse UserType from string
func (UserType) Descriptor ¶
func (UserType) Descriptor() protoreflect.EnumDescriptor
func (UserType) EnumDescriptor
deprecated
func (UserType) Number ¶
func (x UserType) Number() protoreflect.EnumNumber
func (UserType) Type ¶
func (UserType) Type() protoreflect.EnumType
func (*UserType) UnmarshalJSON ¶
UnmarshalJSON todo
Click to show internal directories.
Click to hide internal directories.