github.com/infraboard/keyauth@v0.8.1/apps/domain/domain.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/domain/pb/domain.proto 6 7 package domain 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 type Domain struct { 24 state protoimpl.MessageState 25 sizeCache protoimpl.SizeCache 26 unknownFields protoimpl.UnknownFields 27 28 // 公司或者组织名称 29 // @gotags: bson:"_id" json:"name" 30 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" bson:"_id"` 31 // 创建时间 32 // @gotags: bson:"create_at" json:"create_at" 33 CreateAt int64 `protobuf:"varint,2,opt,name=create_at,json=createAt,proto3" json:"create_at" bson:"create_at"` 34 // 更新时间 35 // @gotags: bson:"update_at" json:"update_at" 36 UpdateAt int64 `protobuf:"varint,3,opt,name=update_at,json=updateAt,proto3" json:"update_at" bson:"update_at"` 37 // 域拥有者 38 // @gotags: bson:"owner" json:"owner" 39 Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner" bson:"owner"` 40 // 域状态, 是否需要冻结该域, 冻结时, 该域下面所有用户禁止登录 41 // @gotags: bson:"enabled" json:"enabled" 42 Enabled bool `protobuf:"varint,5,opt,name=enabled,proto3" json:"enabled" bson:"enabled"` 43 // CreateDomainRequest 具体属性 44 // @gotags: bson:"profile" json:"profile" 45 Profile *DomainProfile `protobuf:"bytes,6,opt,name=profile,proto3" json:"profile" bson:"profile"` 46 // SecuritySetting 域安全设置 47 // @gotags: bson:"security_setting" json:"security_setting" 48 SecuritySetting *SecuritySetting `protobuf:"bytes,7,opt,name=security_setting,json=securitySetting,proto3" json:"security_setting" bson:"security_setting"` 49 } 50 51 func (x *Domain) Reset() { 52 *x = Domain{} 53 if protoimpl.UnsafeEnabled { 54 mi := &file_apps_domain_pb_domain_proto_msgTypes[0] 55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 56 ms.StoreMessageInfo(mi) 57 } 58 } 59 60 func (x *Domain) String() string { 61 return protoimpl.X.MessageStringOf(x) 62 } 63 64 func (*Domain) ProtoMessage() {} 65 66 func (x *Domain) ProtoReflect() protoreflect.Message { 67 mi := &file_apps_domain_pb_domain_proto_msgTypes[0] 68 if protoimpl.UnsafeEnabled && x != nil { 69 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 70 if ms.LoadMessageInfo() == nil { 71 ms.StoreMessageInfo(mi) 72 } 73 return ms 74 } 75 return mi.MessageOf(x) 76 } 77 78 // Deprecated: Use Domain.ProtoReflect.Descriptor instead. 79 func (*Domain) Descriptor() ([]byte, []int) { 80 return file_apps_domain_pb_domain_proto_rawDescGZIP(), []int{0} 81 } 82 83 func (x *Domain) GetName() string { 84 if x != nil { 85 return x.Name 86 } 87 return "" 88 } 89 90 func (x *Domain) GetCreateAt() int64 { 91 if x != nil { 92 return x.CreateAt 93 } 94 return 0 95 } 96 97 func (x *Domain) GetUpdateAt() int64 { 98 if x != nil { 99 return x.UpdateAt 100 } 101 return 0 102 } 103 104 func (x *Domain) GetOwner() string { 105 if x != nil { 106 return x.Owner 107 } 108 return "" 109 } 110 111 func (x *Domain) GetEnabled() bool { 112 if x != nil { 113 return x.Enabled 114 } 115 return false 116 } 117 118 func (x *Domain) GetProfile() *DomainProfile { 119 if x != nil { 120 return x.Profile 121 } 122 return nil 123 } 124 125 func (x *Domain) GetSecuritySetting() *SecuritySetting { 126 if x != nil { 127 return x.SecuritySetting 128 } 129 return nil 130 } 131 132 type Set struct { 133 state protoimpl.MessageState 134 sizeCache protoimpl.SizeCache 135 unknownFields protoimpl.UnknownFields 136 137 // @gotags: bson:"total" json:"total" 138 Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total" bson:"total"` 139 // @gotags: bson:"items" json:"items" 140 Items []*Domain `protobuf:"bytes,2,rep,name=items,proto3" json:"items" bson:"items"` 141 } 142 143 func (x *Set) Reset() { 144 *x = Set{} 145 if protoimpl.UnsafeEnabled { 146 mi := &file_apps_domain_pb_domain_proto_msgTypes[1] 147 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 148 ms.StoreMessageInfo(mi) 149 } 150 } 151 152 func (x *Set) String() string { 153 return protoimpl.X.MessageStringOf(x) 154 } 155 156 func (*Set) ProtoMessage() {} 157 158 func (x *Set) ProtoReflect() protoreflect.Message { 159 mi := &file_apps_domain_pb_domain_proto_msgTypes[1] 160 if protoimpl.UnsafeEnabled && x != nil { 161 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 162 if ms.LoadMessageInfo() == nil { 163 ms.StoreMessageInfo(mi) 164 } 165 return ms 166 } 167 return mi.MessageOf(x) 168 } 169 170 // Deprecated: Use Set.ProtoReflect.Descriptor instead. 171 func (*Set) Descriptor() ([]byte, []int) { 172 return file_apps_domain_pb_domain_proto_rawDescGZIP(), []int{1} 173 } 174 175 func (x *Set) GetTotal() int64 { 176 if x != nil { 177 return x.Total 178 } 179 return 0 180 } 181 182 func (x *Set) GetItems() []*Domain { 183 if x != nil { 184 return x.Items 185 } 186 return nil 187 } 188 189 var File_apps_domain_pb_domain_proto protoreflect.FileDescriptor 190 191 var file_apps_domain_pb_domain_proto_rawDesc = []byte{ 192 0x0a, 0x1b, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x70, 0x62, 193 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x69, 194 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 195 0x68, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x1a, 0x1c, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x64, 196 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x70, 0x62, 0x2f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 197 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa1, 0x02, 0x0a, 0x06, 0x44, 0x6f, 0x6d, 0x61, 0x69, 198 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 199 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 200 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 201 0x41, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x61, 0x74, 0x18, 202 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x74, 0x12, 203 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 204 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 205 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 206 0x42, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 207 0x32, 0x28, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 208 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x44, 0x6f, 0x6d, 209 0x61, 0x69, 0x6e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x66, 210 0x69, 0x6c, 0x65, 0x12, 0x55, 0x0a, 0x10, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 211 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 212 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 213 0x74, 0x68, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 214 0x74, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x0f, 0x73, 0x65, 0x63, 0x75, 0x72, 215 0x69, 0x74, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x54, 0x0a, 0x03, 0x53, 0x65, 216 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 217 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x37, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 218 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 219 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 220 0x69, 0x6e, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 221 0x42, 0x2b, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x69, 222 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2f, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 223 0x68, 0x2f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x62, 0x06, 0x70, 224 0x72, 0x6f, 0x74, 0x6f, 0x33, 225 } 226 227 var ( 228 file_apps_domain_pb_domain_proto_rawDescOnce sync.Once 229 file_apps_domain_pb_domain_proto_rawDescData = file_apps_domain_pb_domain_proto_rawDesc 230 ) 231 232 func file_apps_domain_pb_domain_proto_rawDescGZIP() []byte { 233 file_apps_domain_pb_domain_proto_rawDescOnce.Do(func() { 234 file_apps_domain_pb_domain_proto_rawDescData = protoimpl.X.CompressGZIP(file_apps_domain_pb_domain_proto_rawDescData) 235 }) 236 return file_apps_domain_pb_domain_proto_rawDescData 237 } 238 239 var file_apps_domain_pb_domain_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 240 var file_apps_domain_pb_domain_proto_goTypes = []interface{}{ 241 (*Domain)(nil), // 0: infraboard.keyauth.domain.Domain 242 (*Set)(nil), // 1: infraboard.keyauth.domain.Set 243 (*DomainProfile)(nil), // 2: infraboard.keyauth.domain.DomainProfile 244 (*SecuritySetting)(nil), // 3: infraboard.keyauth.domain.SecuritySetting 245 } 246 var file_apps_domain_pb_domain_proto_depIdxs = []int32{ 247 2, // 0: infraboard.keyauth.domain.Domain.profile:type_name -> infraboard.keyauth.domain.DomainProfile 248 3, // 1: infraboard.keyauth.domain.Domain.security_setting:type_name -> infraboard.keyauth.domain.SecuritySetting 249 0, // 2: infraboard.keyauth.domain.Set.items:type_name -> infraboard.keyauth.domain.Domain 250 3, // [3:3] is the sub-list for method output_type 251 3, // [3:3] is the sub-list for method input_type 252 3, // [3:3] is the sub-list for extension type_name 253 3, // [3:3] is the sub-list for extension extendee 254 0, // [0:3] is the sub-list for field type_name 255 } 256 257 func init() { file_apps_domain_pb_domain_proto_init() } 258 func file_apps_domain_pb_domain_proto_init() { 259 if File_apps_domain_pb_domain_proto != nil { 260 return 261 } 262 file_apps_domain_pb_request_proto_init() 263 if !protoimpl.UnsafeEnabled { 264 file_apps_domain_pb_domain_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 265 switch v := v.(*Domain); i { 266 case 0: 267 return &v.state 268 case 1: 269 return &v.sizeCache 270 case 2: 271 return &v.unknownFields 272 default: 273 return nil 274 } 275 } 276 file_apps_domain_pb_domain_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 277 switch v := v.(*Set); i { 278 case 0: 279 return &v.state 280 case 1: 281 return &v.sizeCache 282 case 2: 283 return &v.unknownFields 284 default: 285 return nil 286 } 287 } 288 } 289 type x struct{} 290 out := protoimpl.TypeBuilder{ 291 File: protoimpl.DescBuilder{ 292 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 293 RawDescriptor: file_apps_domain_pb_domain_proto_rawDesc, 294 NumEnums: 0, 295 NumMessages: 2, 296 NumExtensions: 0, 297 NumServices: 0, 298 }, 299 GoTypes: file_apps_domain_pb_domain_proto_goTypes, 300 DependencyIndexes: file_apps_domain_pb_domain_proto_depIdxs, 301 MessageInfos: file_apps_domain_pb_domain_proto_msgTypes, 302 }.Build() 303 File_apps_domain_pb_domain_proto = out.File 304 file_apps_domain_pb_domain_proto_rawDesc = nil 305 file_apps_domain_pb_domain_proto_goTypes = nil 306 file_apps_domain_pb_domain_proto_depIdxs = nil 307 }