github.com/infraboard/keyauth@v0.8.1/apps/user/types/types.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.27.1 4 // protoc v3.19.1 5 // source: apps/user/pb/types.proto 6 7 package types 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 15 16 const ( 17 // Verify that this generated code is sufficiently up-to-date. 18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 // Verify that runtime/protoimpl is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 ) 22 23 // 为了防止越权, 用户可以调整的权限范围只有10已下的权限 24 type UserType int32 25 26 const ( 27 // 子账号, 无用户中心后台管理权限 28 UserType_SUB UserType = 0 29 // 组织管理严, 管理该域的组织结构 30 UserType_ORG_ADMIN UserType = 5 31 // 审计管理员, 可以查看用户中心相关配置, 相当于用户中心只读权限 32 UserType_AUDIT_ADMIN UserType = 6 33 // 权限管理员, 管理用户的授权策略, 比如空间管理,资源访问策略的配置 34 UserType_PERM_ADMIN UserType = 7 35 // 域管理员, 有该域的所有管理权限, 协作主账号进行管理 36 UserType_DOMAIN_ADMIN UserType = 8 37 // 主账号, 具有本域的所有权限 38 UserType_PRIMARY UserType = 10 39 // 超级管理员, 系统管理员, 万能的人, 不受权限系统约束 40 UserType_SUPPER UserType = 15 41 ) 42 43 // Enum value maps for UserType. 44 var ( 45 UserType_name = map[int32]string{ 46 0: "SUB", 47 5: "ORG_ADMIN", 48 6: "AUDIT_ADMIN", 49 7: "PERM_ADMIN", 50 8: "DOMAIN_ADMIN", 51 10: "PRIMARY", 52 15: "SUPPER", 53 } 54 UserType_value = map[string]int32{ 55 "SUB": 0, 56 "ORG_ADMIN": 5, 57 "AUDIT_ADMIN": 6, 58 "PERM_ADMIN": 7, 59 "DOMAIN_ADMIN": 8, 60 "PRIMARY": 10, 61 "SUPPER": 15, 62 } 63 ) 64 65 func (x UserType) Enum() *UserType { 66 p := new(UserType) 67 *p = x 68 return p 69 } 70 71 func (x UserType) String() string { 72 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 73 } 74 75 func (UserType) Descriptor() protoreflect.EnumDescriptor { 76 return file_apps_user_pb_types_proto_enumTypes[0].Descriptor() 77 } 78 79 func (UserType) Type() protoreflect.EnumType { 80 return &file_apps_user_pb_types_proto_enumTypes[0] 81 } 82 83 func (x UserType) Number() protoreflect.EnumNumber { 84 return protoreflect.EnumNumber(x) 85 } 86 87 // Deprecated: Use UserType.Descriptor instead. 88 func (UserType) EnumDescriptor() ([]byte, []int) { 89 return file_apps_user_pb_types_proto_rawDescGZIP(), []int{0} 90 } 91 92 var File_apps_user_pb_types_proto protoreflect.FileDescriptor 93 94 var file_apps_user_pb_types_proto_rawDesc = []byte{ 95 0x0a, 0x18, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x70, 0x62, 0x2f, 0x74, 96 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x69, 0x6e, 0x66, 0x72, 97 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x75, 98 0x73, 0x65, 0x72, 0x2a, 0x6e, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 99 0x07, 0x0a, 0x03, 0x53, 0x55, 0x42, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x4f, 0x52, 0x47, 0x5f, 100 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x10, 0x05, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x55, 0x44, 0x49, 0x54, 101 0x5f, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x10, 0x06, 0x12, 0x0e, 0x0a, 0x0a, 0x50, 0x45, 0x52, 0x4d, 102 0x5f, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x10, 0x07, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x4f, 0x4d, 0x41, 103 0x49, 0x4e, 0x5f, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x10, 0x08, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x52, 104 0x49, 0x4d, 0x41, 0x52, 0x59, 0x10, 0x0a, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x55, 0x50, 0x50, 0x45, 105 0x52, 0x10, 0x0f, 0x42, 0x2f, 0x5a, 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 106 0x6d, 0x2f, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2f, 0x6b, 0x65, 0x79, 107 0x61, 0x75, 0x74, 0x68, 0x2f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x74, 108 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 109 } 110 111 var ( 112 file_apps_user_pb_types_proto_rawDescOnce sync.Once 113 file_apps_user_pb_types_proto_rawDescData = file_apps_user_pb_types_proto_rawDesc 114 ) 115 116 func file_apps_user_pb_types_proto_rawDescGZIP() []byte { 117 file_apps_user_pb_types_proto_rawDescOnce.Do(func() { 118 file_apps_user_pb_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_apps_user_pb_types_proto_rawDescData) 119 }) 120 return file_apps_user_pb_types_proto_rawDescData 121 } 122 123 var file_apps_user_pb_types_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 124 var file_apps_user_pb_types_proto_goTypes = []interface{}{ 125 (UserType)(0), // 0: infraboard.keyauth.user.UserType 126 } 127 var file_apps_user_pb_types_proto_depIdxs = []int32{ 128 0, // [0:0] is the sub-list for method output_type 129 0, // [0:0] is the sub-list for method input_type 130 0, // [0:0] is the sub-list for extension type_name 131 0, // [0:0] is the sub-list for extension extendee 132 0, // [0:0] is the sub-list for field type_name 133 } 134 135 func init() { file_apps_user_pb_types_proto_init() } 136 func file_apps_user_pb_types_proto_init() { 137 if File_apps_user_pb_types_proto != nil { 138 return 139 } 140 type x struct{} 141 out := protoimpl.TypeBuilder{ 142 File: protoimpl.DescBuilder{ 143 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 144 RawDescriptor: file_apps_user_pb_types_proto_rawDesc, 145 NumEnums: 1, 146 NumMessages: 0, 147 NumExtensions: 0, 148 NumServices: 0, 149 }, 150 GoTypes: file_apps_user_pb_types_proto_goTypes, 151 DependencyIndexes: file_apps_user_pb_types_proto_depIdxs, 152 EnumInfos: file_apps_user_pb_types_proto_enumTypes, 153 }.Build() 154 File_apps_user_pb_types_proto = out.File 155 file_apps_user_pb_types_proto_rawDesc = nil 156 file_apps_user_pb_types_proto_goTypes = nil 157 file_apps_user_pb_types_proto_depIdxs = nil 158 }