github.com/infraboard/keyauth@v0.8.1/apps/user/request.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/request.proto 6 7 package user 8 9 import ( 10 types "github.com/infraboard/keyauth/apps/user/types" 11 types1 "github.com/infraboard/keyauth/common/types" 12 request "github.com/infraboard/mcube/http/request" 13 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 14 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 15 reflect "reflect" 16 sync "sync" 17 ) 18 19 const ( 20 // Verify that this generated code is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 22 // Verify that runtime/protoimpl is sufficiently up-to-date. 23 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 24 ) 25 26 // Profile todo 27 type Profile struct { 28 state protoimpl.MessageState 29 sizeCache protoimpl.SizeCache 30 unknownFields protoimpl.UnknownFields 31 32 // 用户真实姓名 33 // @gotags: bson:"real_name" json:"real_name" validate:"lte=10" 34 RealName string `protobuf:"bytes,1,opt,name=real_name,json=realName,proto3" json:"real_name" bson:"real_name" validate:"lte=10"` 35 // 用户昵称, 用于在界面进行展示 36 // @gotags: bson:"nick_name" json:"nick_name" validate:"lte=30" 37 NickName string `protobuf:"bytes,2,opt,name=nick_name,json=nickName,proto3" json:"nick_name" bson:"nick_name" validate:"lte=30"` 38 // 手机号码, 用户可以通过手机进行注册和密码找回, 还可以通过手机号进行登录 39 // @gotags: bson:"phone" json:"phone" validate:"lte=30" 40 Phone string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone" bson:"phone" validate:"lte=30"` 41 // 邮箱, 用户可以通过邮箱进行注册和照明密码 42 // @gotags: bson:"email" json:"email" validate:"lte=30" 43 Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email" bson:"email" validate:"lte=30"` 44 // 用户住址 45 // @gotags: bson:"address" json:"address" validate:"lte=120" 46 Address string `protobuf:"bytes,5,opt,name=address,proto3" json:"address" bson:"address" validate:"lte=120"` 47 // 性别 48 // @gotags: bson:"gender" json:"gender" validate:"lte=10" 49 Gender Gender `protobuf:"varint,6,opt,name=gender,proto3,enum=infraboard.keyauth.user.Gender" json:"gender" bson:"gender" validate:"lte=10"` 50 // 头像 51 // @gotags: bson:"avatar" json:"avatar" validate:"lte=300" 52 Avatar string `protobuf:"bytes,7,opt,name=avatar,proto3" json:"avatar" bson:"avatar" validate:"lte=300"` 53 // 用户使用的语言 54 // @gotags: bson:"language" json:"language" validate:"lte=40" 55 Language string `protobuf:"bytes,8,opt,name=language,proto3" json:"language" bson:"language" validate:"lte=40"` 56 // 用户所在的城市 57 // @gotags: bson:"city" json:"city" validate:"lte=40" 58 City string `protobuf:"bytes,9,opt,name=city,proto3" json:"city" bson:"city" validate:"lte=40"` 59 // 用户所在的省 60 // @gotags: bson:"province" json:"province" validate:"lte=40" 61 Province string `protobuf:"bytes,10,opt,name=province,proto3" json:"province" bson:"province" validate:"lte=40"` 62 } 63 64 func (x *Profile) Reset() { 65 *x = Profile{} 66 if protoimpl.UnsafeEnabled { 67 mi := &file_apps_user_pb_request_proto_msgTypes[0] 68 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 69 ms.StoreMessageInfo(mi) 70 } 71 } 72 73 func (x *Profile) String() string { 74 return protoimpl.X.MessageStringOf(x) 75 } 76 77 func (*Profile) ProtoMessage() {} 78 79 func (x *Profile) ProtoReflect() protoreflect.Message { 80 mi := &file_apps_user_pb_request_proto_msgTypes[0] 81 if protoimpl.UnsafeEnabled && x != nil { 82 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 83 if ms.LoadMessageInfo() == nil { 84 ms.StoreMessageInfo(mi) 85 } 86 return ms 87 } 88 return mi.MessageOf(x) 89 } 90 91 // Deprecated: Use Profile.ProtoReflect.Descriptor instead. 92 func (*Profile) Descriptor() ([]byte, []int) { 93 return file_apps_user_pb_request_proto_rawDescGZIP(), []int{0} 94 } 95 96 func (x *Profile) GetRealName() string { 97 if x != nil { 98 return x.RealName 99 } 100 return "" 101 } 102 103 func (x *Profile) GetNickName() string { 104 if x != nil { 105 return x.NickName 106 } 107 return "" 108 } 109 110 func (x *Profile) GetPhone() string { 111 if x != nil { 112 return x.Phone 113 } 114 return "" 115 } 116 117 func (x *Profile) GetEmail() string { 118 if x != nil { 119 return x.Email 120 } 121 return "" 122 } 123 124 func (x *Profile) GetAddress() string { 125 if x != nil { 126 return x.Address 127 } 128 return "" 129 } 130 131 func (x *Profile) GetGender() Gender { 132 if x != nil { 133 return x.Gender 134 } 135 return Gender_UNKNOWN 136 } 137 138 func (x *Profile) GetAvatar() string { 139 if x != nil { 140 return x.Avatar 141 } 142 return "" 143 } 144 145 func (x *Profile) GetLanguage() string { 146 if x != nil { 147 return x.Language 148 } 149 return "" 150 } 151 152 func (x *Profile) GetCity() string { 153 if x != nil { 154 return x.City 155 } 156 return "" 157 } 158 159 func (x *Profile) GetProvince() string { 160 if x != nil { 161 return x.Province 162 } 163 return "" 164 } 165 166 // CreateAccountRequest 创建用户请求 167 type CreateAccountRequest struct { 168 state protoimpl.MessageState 169 sizeCache protoimpl.SizeCache 170 unknownFields protoimpl.UnknownFields 171 172 // 域信息 173 // @gotags: json:"domain" validate:"required" 174 Domain string `protobuf:"bytes,9,opt,name=domain,proto3" json:"domain" validate:"required"` 175 // 创建方式 176 // @gotags: json:"create_type" 177 CreateType CreateType `protobuf:"varint,1,opt,name=create_type,json=createType,proto3,enum=infraboard.keyauth.user.CreateType" json:"create_type"` 178 // 用户类型 179 // @gotags: json:"user_type" 180 UserType types.UserType `protobuf:"varint,2,opt,name=user_type,json=userType,proto3,enum=infraboard.keyauth.user.UserType" json:"user_type"` 181 // 用户所属部门 182 // @gotags: json:"department_id" validate:"lte=200" 183 DepartmentId string `protobuf:"bytes,3,opt,name=department_id,json=departmentId,proto3" json:"department_id" validate:"lte=200"` 184 // 用户账号名称 185 // @gotags: json:"account" validate:"required,lte=60" 186 Account string `protobuf:"bytes,4,opt,name=account,proto3" json:"account" validate:"required,lte=60"` 187 // 用户多久未登录时(天), 冻结改用户, 防止僵尸用户的账号被利用' 188 // @gotags: json:"expires_days" 189 ExpiresDays int32 `protobuf:"varint,5,opt,name=expires_days,json=expiresDays,proto3" json:"expires_days"` 190 // 用户描述 191 // @gotags: json:"description" 192 Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description"` 193 // 数据 194 // @gotags: json:"profile" 195 Profile *Profile `protobuf:"bytes,7,opt,name=profile,proto3" json:"profile"` 196 // 密码相关信息 197 // @gotags: json:"password" validate:"required,lte=80" 198 Password string `protobuf:"bytes,8,opt,name=password,proto3" json:"password" validate:"required,lte=80"` 199 } 200 201 func (x *CreateAccountRequest) Reset() { 202 *x = CreateAccountRequest{} 203 if protoimpl.UnsafeEnabled { 204 mi := &file_apps_user_pb_request_proto_msgTypes[1] 205 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 206 ms.StoreMessageInfo(mi) 207 } 208 } 209 210 func (x *CreateAccountRequest) String() string { 211 return protoimpl.X.MessageStringOf(x) 212 } 213 214 func (*CreateAccountRequest) ProtoMessage() {} 215 216 func (x *CreateAccountRequest) ProtoReflect() protoreflect.Message { 217 mi := &file_apps_user_pb_request_proto_msgTypes[1] 218 if protoimpl.UnsafeEnabled && x != nil { 219 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 220 if ms.LoadMessageInfo() == nil { 221 ms.StoreMessageInfo(mi) 222 } 223 return ms 224 } 225 return mi.MessageOf(x) 226 } 227 228 // Deprecated: Use CreateAccountRequest.ProtoReflect.Descriptor instead. 229 func (*CreateAccountRequest) Descriptor() ([]byte, []int) { 230 return file_apps_user_pb_request_proto_rawDescGZIP(), []int{1} 231 } 232 233 func (x *CreateAccountRequest) GetDomain() string { 234 if x != nil { 235 return x.Domain 236 } 237 return "" 238 } 239 240 func (x *CreateAccountRequest) GetCreateType() CreateType { 241 if x != nil { 242 return x.CreateType 243 } 244 return CreateType_USER_REGISTRY 245 } 246 247 func (x *CreateAccountRequest) GetUserType() types.UserType { 248 if x != nil { 249 return x.UserType 250 } 251 return types.UserType(0) 252 } 253 254 func (x *CreateAccountRequest) GetDepartmentId() string { 255 if x != nil { 256 return x.DepartmentId 257 } 258 return "" 259 } 260 261 func (x *CreateAccountRequest) GetAccount() string { 262 if x != nil { 263 return x.Account 264 } 265 return "" 266 } 267 268 func (x *CreateAccountRequest) GetExpiresDays() int32 { 269 if x != nil { 270 return x.ExpiresDays 271 } 272 return 0 273 } 274 275 func (x *CreateAccountRequest) GetDescription() string { 276 if x != nil { 277 return x.Description 278 } 279 return "" 280 } 281 282 func (x *CreateAccountRequest) GetProfile() *Profile { 283 if x != nil { 284 return x.Profile 285 } 286 return nil 287 } 288 289 func (x *CreateAccountRequest) GetPassword() string { 290 if x != nil { 291 return x.Password 292 } 293 return "" 294 } 295 296 // DescribeAccountRequest 查询用户详情请求 297 type DescribeAccountRequest struct { 298 state protoimpl.MessageState 299 sizeCache protoimpl.SizeCache 300 unknownFields protoimpl.UnknownFields 301 302 // 用户账号名称 303 // @gotags: json:"account" validate:"required,lte=60" 304 Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account" validate:"required,lte=60"` 305 } 306 307 func (x *DescribeAccountRequest) Reset() { 308 *x = DescribeAccountRequest{} 309 if protoimpl.UnsafeEnabled { 310 mi := &file_apps_user_pb_request_proto_msgTypes[2] 311 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 312 ms.StoreMessageInfo(mi) 313 } 314 } 315 316 func (x *DescribeAccountRequest) String() string { 317 return protoimpl.X.MessageStringOf(x) 318 } 319 320 func (*DescribeAccountRequest) ProtoMessage() {} 321 322 func (x *DescribeAccountRequest) ProtoReflect() protoreflect.Message { 323 mi := &file_apps_user_pb_request_proto_msgTypes[2] 324 if protoimpl.UnsafeEnabled && x != nil { 325 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 326 if ms.LoadMessageInfo() == nil { 327 ms.StoreMessageInfo(mi) 328 } 329 return ms 330 } 331 return mi.MessageOf(x) 332 } 333 334 // Deprecated: Use DescribeAccountRequest.ProtoReflect.Descriptor instead. 335 func (*DescribeAccountRequest) Descriptor() ([]byte, []int) { 336 return file_apps_user_pb_request_proto_rawDescGZIP(), []int{2} 337 } 338 339 func (x *DescribeAccountRequest) GetAccount() string { 340 if x != nil { 341 return x.Account 342 } 343 return "" 344 } 345 346 // QueryAccountRequest 获取子账号列表 347 type QueryAccountRequest struct { 348 state protoimpl.MessageState 349 sizeCache protoimpl.SizeCache 350 unknownFields protoimpl.UnknownFields 351 352 // @gotags: json:"page" 353 Page *request.PageRequest `protobuf:"bytes,1,opt,name=page,proto3" json:"page"` 354 // @gotags: json:"accounts" 355 Accounts []string `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts"` 356 // @gotags: json:"user_type" 357 UserType types.UserType `protobuf:"varint,3,opt,name=user_type,json=userType,proto3,enum=infraboard.keyauth.user.UserType" json:"user_type"` 358 // @gotags: json:"namespace_id" 359 NamespaceId string `protobuf:"bytes,4,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id"` 360 // @gotags: json:"with_department" 361 WithDepartment bool `protobuf:"varint,5,opt,name=with_department,json=withDepartment,proto3" json:"with_department"` 362 // @gotags: json:"department_id" 363 DepartmentId string `protobuf:"bytes,6,opt,name=department_id,json=departmentId,proto3" json:"department_id"` 364 // @gotags: json:"with_all_sub" 365 WithAllSub bool `protobuf:"varint,7,opt,name=with_all_sub,json=withAllSub,proto3" json:"with_all_sub"` 366 // @gotags: json:"skip_items" 367 SkipItems bool `protobuf:"varint,8,opt,name=skip_items,json=skipItems,proto3" json:"skip_items"` 368 // @gotags: json:"keywords" 369 Keywords string `protobuf:"bytes,9,opt,name=keywords,proto3" json:"keywords"` 370 // @gotags: json:"domain" 371 Domain string `protobuf:"bytes,10,opt,name=domain,proto3" json:"domain"` 372 } 373 374 func (x *QueryAccountRequest) Reset() { 375 *x = QueryAccountRequest{} 376 if protoimpl.UnsafeEnabled { 377 mi := &file_apps_user_pb_request_proto_msgTypes[3] 378 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 379 ms.StoreMessageInfo(mi) 380 } 381 } 382 383 func (x *QueryAccountRequest) String() string { 384 return protoimpl.X.MessageStringOf(x) 385 } 386 387 func (*QueryAccountRequest) ProtoMessage() {} 388 389 func (x *QueryAccountRequest) ProtoReflect() protoreflect.Message { 390 mi := &file_apps_user_pb_request_proto_msgTypes[3] 391 if protoimpl.UnsafeEnabled && x != nil { 392 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 393 if ms.LoadMessageInfo() == nil { 394 ms.StoreMessageInfo(mi) 395 } 396 return ms 397 } 398 return mi.MessageOf(x) 399 } 400 401 // Deprecated: Use QueryAccountRequest.ProtoReflect.Descriptor instead. 402 func (*QueryAccountRequest) Descriptor() ([]byte, []int) { 403 return file_apps_user_pb_request_proto_rawDescGZIP(), []int{3} 404 } 405 406 func (x *QueryAccountRequest) GetPage() *request.PageRequest { 407 if x != nil { 408 return x.Page 409 } 410 return nil 411 } 412 413 func (x *QueryAccountRequest) GetAccounts() []string { 414 if x != nil { 415 return x.Accounts 416 } 417 return nil 418 } 419 420 func (x *QueryAccountRequest) GetUserType() types.UserType { 421 if x != nil { 422 return x.UserType 423 } 424 return types.UserType(0) 425 } 426 427 func (x *QueryAccountRequest) GetNamespaceId() string { 428 if x != nil { 429 return x.NamespaceId 430 } 431 return "" 432 } 433 434 func (x *QueryAccountRequest) GetWithDepartment() bool { 435 if x != nil { 436 return x.WithDepartment 437 } 438 return false 439 } 440 441 func (x *QueryAccountRequest) GetDepartmentId() string { 442 if x != nil { 443 return x.DepartmentId 444 } 445 return "" 446 } 447 448 func (x *QueryAccountRequest) GetWithAllSub() bool { 449 if x != nil { 450 return x.WithAllSub 451 } 452 return false 453 } 454 455 func (x *QueryAccountRequest) GetSkipItems() bool { 456 if x != nil { 457 return x.SkipItems 458 } 459 return false 460 } 461 462 func (x *QueryAccountRequest) GetKeywords() string { 463 if x != nil { 464 return x.Keywords 465 } 466 return "" 467 } 468 469 func (x *QueryAccountRequest) GetDomain() string { 470 if x != nil { 471 return x.Domain 472 } 473 return "" 474 } 475 476 // UpdateAccountRequest todo 477 type UpdateAccountRequest struct { 478 state protoimpl.MessageState 479 sizeCache protoimpl.SizeCache 480 unknownFields protoimpl.UnknownFields 481 482 // 更新模式 483 // @gotags: json:"update_mode" 484 UpdateMode types1.UpdateMode `protobuf:"varint,1,opt,name=update_mode,json=updateMode,proto3,enum=infraboard.keyauth.types.UpdateMode" json:"update_mode"` 485 // 用户账号名称 486 // @gotags: json:"account" validate:"required,lte=120" 487 Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account" validate:"required,lte=120"` 488 // 用户所属部门 489 // @gotags: json:"department_id" 490 DepartmentId string `protobuf:"bytes,3,opt,name=department_id,json=departmentId,proto3" json:"department_id"` 491 // profile 账号profile 492 // @gotags: json:"profile" 493 Profile *Profile `protobuf:"bytes,4,opt,name=profile,proto3" json:"profile"` 494 } 495 496 func (x *UpdateAccountRequest) Reset() { 497 *x = UpdateAccountRequest{} 498 if protoimpl.UnsafeEnabled { 499 mi := &file_apps_user_pb_request_proto_msgTypes[4] 500 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 501 ms.StoreMessageInfo(mi) 502 } 503 } 504 505 func (x *UpdateAccountRequest) String() string { 506 return protoimpl.X.MessageStringOf(x) 507 } 508 509 func (*UpdateAccountRequest) ProtoMessage() {} 510 511 func (x *UpdateAccountRequest) ProtoReflect() protoreflect.Message { 512 mi := &file_apps_user_pb_request_proto_msgTypes[4] 513 if protoimpl.UnsafeEnabled && x != nil { 514 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 515 if ms.LoadMessageInfo() == nil { 516 ms.StoreMessageInfo(mi) 517 } 518 return ms 519 } 520 return mi.MessageOf(x) 521 } 522 523 // Deprecated: Use UpdateAccountRequest.ProtoReflect.Descriptor instead. 524 func (*UpdateAccountRequest) Descriptor() ([]byte, []int) { 525 return file_apps_user_pb_request_proto_rawDescGZIP(), []int{4} 526 } 527 528 func (x *UpdateAccountRequest) GetUpdateMode() types1.UpdateMode { 529 if x != nil { 530 return x.UpdateMode 531 } 532 return types1.UpdateMode(0) 533 } 534 535 func (x *UpdateAccountRequest) GetAccount() string { 536 if x != nil { 537 return x.Account 538 } 539 return "" 540 } 541 542 func (x *UpdateAccountRequest) GetDepartmentId() string { 543 if x != nil { 544 return x.DepartmentId 545 } 546 return "" 547 } 548 549 func (x *UpdateAccountRequest) GetProfile() *Profile { 550 if x != nil { 551 return x.Profile 552 } 553 return nil 554 } 555 556 // UpdatePasswordRequest todo 557 type UpdatePasswordRequest struct { 558 state protoimpl.MessageState 559 sizeCache protoimpl.SizeCache 560 unknownFields protoimpl.UnknownFields 561 562 // @gotags: json:"account" 563 Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account"` 564 // @gotags: json:"old_pass" 565 OldPass string `protobuf:"bytes,2,opt,name=old_pass,json=oldPass,proto3" json:"old_pass"` 566 // @gotags: json:"new_pass" 567 NewPass string `protobuf:"bytes,3,opt,name=new_pass,json=newPass,proto3" json:"new_pass"` 568 // @gotags: json:"is_reset" 569 IsReset bool `protobuf:"varint,4,opt,name=is_reset,json=isReset,proto3" json:"is_reset"` 570 } 571 572 func (x *UpdatePasswordRequest) Reset() { 573 *x = UpdatePasswordRequest{} 574 if protoimpl.UnsafeEnabled { 575 mi := &file_apps_user_pb_request_proto_msgTypes[5] 576 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 577 ms.StoreMessageInfo(mi) 578 } 579 } 580 581 func (x *UpdatePasswordRequest) String() string { 582 return protoimpl.X.MessageStringOf(x) 583 } 584 585 func (*UpdatePasswordRequest) ProtoMessage() {} 586 587 func (x *UpdatePasswordRequest) ProtoReflect() protoreflect.Message { 588 mi := &file_apps_user_pb_request_proto_msgTypes[5] 589 if protoimpl.UnsafeEnabled && x != nil { 590 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 591 if ms.LoadMessageInfo() == nil { 592 ms.StoreMessageInfo(mi) 593 } 594 return ms 595 } 596 return mi.MessageOf(x) 597 } 598 599 // Deprecated: Use UpdatePasswordRequest.ProtoReflect.Descriptor instead. 600 func (*UpdatePasswordRequest) Descriptor() ([]byte, []int) { 601 return file_apps_user_pb_request_proto_rawDescGZIP(), []int{5} 602 } 603 604 func (x *UpdatePasswordRequest) GetAccount() string { 605 if x != nil { 606 return x.Account 607 } 608 return "" 609 } 610 611 func (x *UpdatePasswordRequest) GetOldPass() string { 612 if x != nil { 613 return x.OldPass 614 } 615 return "" 616 } 617 618 func (x *UpdatePasswordRequest) GetNewPass() string { 619 if x != nil { 620 return x.NewPass 621 } 622 return "" 623 } 624 625 func (x *UpdatePasswordRequest) GetIsReset() bool { 626 if x != nil { 627 return x.IsReset 628 } 629 return false 630 } 631 632 // GeneratePasswordRequest todo 633 type GeneratePasswordRequest struct { 634 state protoimpl.MessageState 635 sizeCache protoimpl.SizeCache 636 unknownFields protoimpl.UnknownFields 637 638 // @gotags: json:"length" 639 Length int32 `protobuf:"varint,1,opt,name=length,proto3" json:"length"` 640 // @gotags: json:"domain" 641 Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain"` 642 } 643 644 func (x *GeneratePasswordRequest) Reset() { 645 *x = GeneratePasswordRequest{} 646 if protoimpl.UnsafeEnabled { 647 mi := &file_apps_user_pb_request_proto_msgTypes[6] 648 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 649 ms.StoreMessageInfo(mi) 650 } 651 } 652 653 func (x *GeneratePasswordRequest) String() string { 654 return protoimpl.X.MessageStringOf(x) 655 } 656 657 func (*GeneratePasswordRequest) ProtoMessage() {} 658 659 func (x *GeneratePasswordRequest) ProtoReflect() protoreflect.Message { 660 mi := &file_apps_user_pb_request_proto_msgTypes[6] 661 if protoimpl.UnsafeEnabled && x != nil { 662 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 663 if ms.LoadMessageInfo() == nil { 664 ms.StoreMessageInfo(mi) 665 } 666 return ms 667 } 668 return mi.MessageOf(x) 669 } 670 671 // Deprecated: Use GeneratePasswordRequest.ProtoReflect.Descriptor instead. 672 func (*GeneratePasswordRequest) Descriptor() ([]byte, []int) { 673 return file_apps_user_pb_request_proto_rawDescGZIP(), []int{6} 674 } 675 676 func (x *GeneratePasswordRequest) GetLength() int32 { 677 if x != nil { 678 return x.Length 679 } 680 return 0 681 } 682 683 func (x *GeneratePasswordRequest) GetDomain() string { 684 if x != nil { 685 return x.Domain 686 } 687 return "" 688 } 689 690 // GeneratePasswordResponse todo 691 type GeneratePasswordResponse struct { 692 state protoimpl.MessageState 693 sizeCache protoimpl.SizeCache 694 unknownFields protoimpl.UnknownFields 695 696 // @gotags: json:"password" 697 Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password"` 698 } 699 700 func (x *GeneratePasswordResponse) Reset() { 701 *x = GeneratePasswordResponse{} 702 if protoimpl.UnsafeEnabled { 703 mi := &file_apps_user_pb_request_proto_msgTypes[7] 704 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 705 ms.StoreMessageInfo(mi) 706 } 707 } 708 709 func (x *GeneratePasswordResponse) String() string { 710 return protoimpl.X.MessageStringOf(x) 711 } 712 713 func (*GeneratePasswordResponse) ProtoMessage() {} 714 715 func (x *GeneratePasswordResponse) ProtoReflect() protoreflect.Message { 716 mi := &file_apps_user_pb_request_proto_msgTypes[7] 717 if protoimpl.UnsafeEnabled && x != nil { 718 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 719 if ms.LoadMessageInfo() == nil { 720 ms.StoreMessageInfo(mi) 721 } 722 return ms 723 } 724 return mi.MessageOf(x) 725 } 726 727 // Deprecated: Use GeneratePasswordResponse.ProtoReflect.Descriptor instead. 728 func (*GeneratePasswordResponse) Descriptor() ([]byte, []int) { 729 return file_apps_user_pb_request_proto_rawDescGZIP(), []int{7} 730 } 731 732 func (x *GeneratePasswordResponse) GetPassword() string { 733 if x != nil { 734 return x.Password 735 } 736 return "" 737 } 738 739 // BlockAccountRequest 冻结用户 740 type BlockAccountRequest struct { 741 state protoimpl.MessageState 742 sizeCache protoimpl.SizeCache 743 unknownFields protoimpl.UnknownFields 744 745 // @gotags: json:"account" 746 Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account"` 747 // @gotags: json:"reason" 748 Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason"` 749 } 750 751 func (x *BlockAccountRequest) Reset() { 752 *x = BlockAccountRequest{} 753 if protoimpl.UnsafeEnabled { 754 mi := &file_apps_user_pb_request_proto_msgTypes[8] 755 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 756 ms.StoreMessageInfo(mi) 757 } 758 } 759 760 func (x *BlockAccountRequest) String() string { 761 return protoimpl.X.MessageStringOf(x) 762 } 763 764 func (*BlockAccountRequest) ProtoMessage() {} 765 766 func (x *BlockAccountRequest) ProtoReflect() protoreflect.Message { 767 mi := &file_apps_user_pb_request_proto_msgTypes[8] 768 if protoimpl.UnsafeEnabled && x != nil { 769 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 770 if ms.LoadMessageInfo() == nil { 771 ms.StoreMessageInfo(mi) 772 } 773 return ms 774 } 775 return mi.MessageOf(x) 776 } 777 778 // Deprecated: Use BlockAccountRequest.ProtoReflect.Descriptor instead. 779 func (*BlockAccountRequest) Descriptor() ([]byte, []int) { 780 return file_apps_user_pb_request_proto_rawDescGZIP(), []int{8} 781 } 782 783 func (x *BlockAccountRequest) GetAccount() string { 784 if x != nil { 785 return x.Account 786 } 787 return "" 788 } 789 790 func (x *BlockAccountRequest) GetReason() string { 791 if x != nil { 792 return x.Reason 793 } 794 return "" 795 } 796 797 // UnBlockAccountRequest 解冻用户 798 type UnBlockAccountRequest struct { 799 state protoimpl.MessageState 800 sizeCache protoimpl.SizeCache 801 unknownFields protoimpl.UnknownFields 802 803 // @gotags: json:"account" 804 Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account"` 805 } 806 807 func (x *UnBlockAccountRequest) Reset() { 808 *x = UnBlockAccountRequest{} 809 if protoimpl.UnsafeEnabled { 810 mi := &file_apps_user_pb_request_proto_msgTypes[9] 811 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 812 ms.StoreMessageInfo(mi) 813 } 814 } 815 816 func (x *UnBlockAccountRequest) String() string { 817 return protoimpl.X.MessageStringOf(x) 818 } 819 820 func (*UnBlockAccountRequest) ProtoMessage() {} 821 822 func (x *UnBlockAccountRequest) ProtoReflect() protoreflect.Message { 823 mi := &file_apps_user_pb_request_proto_msgTypes[9] 824 if protoimpl.UnsafeEnabled && x != nil { 825 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 826 if ms.LoadMessageInfo() == nil { 827 ms.StoreMessageInfo(mi) 828 } 829 return ms 830 } 831 return mi.MessageOf(x) 832 } 833 834 // Deprecated: Use UnBlockAccountRequest.ProtoReflect.Descriptor instead. 835 func (*UnBlockAccountRequest) Descriptor() ([]byte, []int) { 836 return file_apps_user_pb_request_proto_rawDescGZIP(), []int{9} 837 } 838 839 func (x *UnBlockAccountRequest) GetAccount() string { 840 if x != nil { 841 return x.Account 842 } 843 return "" 844 } 845 846 // DeleteAccountRequest 删除账户 847 type DeleteAccountRequest struct { 848 state protoimpl.MessageState 849 sizeCache protoimpl.SizeCache 850 unknownFields protoimpl.UnknownFields 851 852 // @gotags: json:"account" 853 Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account"` 854 } 855 856 func (x *DeleteAccountRequest) Reset() { 857 *x = DeleteAccountRequest{} 858 if protoimpl.UnsafeEnabled { 859 mi := &file_apps_user_pb_request_proto_msgTypes[10] 860 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 861 ms.StoreMessageInfo(mi) 862 } 863 } 864 865 func (x *DeleteAccountRequest) String() string { 866 return protoimpl.X.MessageStringOf(x) 867 } 868 869 func (*DeleteAccountRequest) ProtoMessage() {} 870 871 func (x *DeleteAccountRequest) ProtoReflect() protoreflect.Message { 872 mi := &file_apps_user_pb_request_proto_msgTypes[10] 873 if protoimpl.UnsafeEnabled && x != nil { 874 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 875 if ms.LoadMessageInfo() == nil { 876 ms.StoreMessageInfo(mi) 877 } 878 return ms 879 } 880 return mi.MessageOf(x) 881 } 882 883 // Deprecated: Use DeleteAccountRequest.ProtoReflect.Descriptor instead. 884 func (*DeleteAccountRequest) Descriptor() ([]byte, []int) { 885 return file_apps_user_pb_request_proto_rawDescGZIP(), []int{10} 886 } 887 888 func (x *DeleteAccountRequest) GetAccount() string { 889 if x != nil { 890 return x.Account 891 } 892 return "" 893 } 894 895 var File_apps_user_pb_request_proto protoreflect.FileDescriptor 896 897 var file_apps_user_pb_request_proto_rawDesc = []byte{ 898 0x0a, 0x1a, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x70, 0x62, 0x2f, 0x72, 899 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x69, 0x6e, 900 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 901 0x2e, 0x75, 0x73, 0x65, 0x72, 0x1a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 902 0x6d, 0x2f, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2f, 0x6d, 0x63, 0x75, 903 0x62, 0x65, 0x2f, 0x70, 0x62, 0x2f, 0x70, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x61, 0x67, 0x65, 0x2e, 904 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x75, 0x73, 0x65, 0x72, 905 0x2f, 0x70, 0x62, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 906 0x61, 0x70, 0x70, 0x73, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x70, 0x62, 0x2f, 0x74, 0x79, 0x70, 907 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 908 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 909 0x74, 0x6f, 0x22, 0xa6, 0x02, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x1b, 910 0x0a, 0x09, 0x72, 0x65, 0x61, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 911 0x09, 0x52, 0x08, 0x72, 0x65, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 912 0x69, 0x63, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 913 0x6e, 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 914 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x14, 915 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 916 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 917 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x37, 918 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 919 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 920 0x75, 0x74, 0x68, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 921 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 922 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x12, 923 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 924 0x09, 0x52, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 925 0x69, 0x74, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x74, 0x79, 0x12, 926 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 927 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x22, 0x90, 0x03, 0x0a, 0x14, 928 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 929 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x09, 930 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x44, 0x0a, 0x0b, 931 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 932 0x0e, 0x32, 0x23, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 933 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x43, 0x72, 0x65, 0x61, 934 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x79, 935 0x70, 0x65, 0x12, 0x3e, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 936 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 937 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 938 0x55, 0x73, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x54, 0x79, 939 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x65, 0x70, 0x61, 0x72, 0x74, 0x6d, 0x65, 0x6e, 0x74, 940 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x65, 0x70, 0x61, 0x72, 941 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 942 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 943 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x64, 0x61, 0x79, 944 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 945 0x44, 0x61, 0x79, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 946 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 947 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3a, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 948 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 949 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x75, 0x73, 0x65, 950 0x72, 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 951 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x08, 952 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x32, 953 0x0a, 0x16, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 954 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 955 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 956 0x6e, 0x74, 0x22, 0x8f, 0x03, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x63, 0x6f, 957 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x04, 0x70, 0x61, 958 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 959 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6d, 0x63, 0x75, 0x62, 0x65, 0x2e, 0x70, 0x61, 0x67, 0x65, 960 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x04, 0x70, 0x61, 961 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x02, 962 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x3e, 963 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 964 0x0e, 0x32, 0x21, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 965 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65, 0x72, 966 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x21, 967 0x0a, 0x0c, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 968 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 969 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x77, 0x69, 0x74, 0x68, 0x5f, 0x64, 0x65, 0x70, 0x61, 0x72, 0x74, 970 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x77, 0x69, 0x74, 0x68, 971 0x44, 0x65, 0x70, 0x61, 0x72, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x65, 972 0x70, 0x61, 0x72, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 973 0x09, 0x52, 0x0c, 0x64, 0x65, 0x70, 0x61, 0x72, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 974 0x20, 0x0a, 0x0c, 0x77, 0x69, 0x74, 0x68, 0x5f, 0x61, 0x6c, 0x6c, 0x5f, 0x73, 0x75, 0x62, 0x18, 975 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x77, 0x69, 0x74, 0x68, 0x41, 0x6c, 0x6c, 0x53, 0x75, 976 0x62, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 977 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x73, 0x6b, 0x69, 0x70, 0x49, 0x74, 0x65, 0x6d, 0x73, 978 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x09, 0x20, 0x01, 979 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x16, 0x0a, 0x06, 980 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 981 0x6d, 0x61, 0x69, 0x6e, 0x22, 0xd8, 0x01, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 982 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x45, 0x0a, 983 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 984 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 985 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x55, 0x70, 986 0x64, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 987 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 988 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x23, 989 0x0a, 0x0d, 0x64, 0x65, 0x70, 0x61, 0x72, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 990 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x65, 0x70, 0x61, 0x72, 0x74, 0x6d, 0x65, 0x6e, 991 0x74, 0x49, 0x64, 0x12, 0x3a, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x04, 992 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 993 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x50, 994 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x22, 995 0x82, 0x01, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 996 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 997 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 998 0x75, 0x6e, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x6c, 0x64, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x18, 999 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x6c, 0x64, 0x50, 0x61, 0x73, 0x73, 0x12, 0x19, 1000 0x0a, 0x08, 0x6e, 0x65, 0x77, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 1001 0x52, 0x07, 0x6e, 0x65, 0x77, 0x50, 0x61, 0x73, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x73, 0x5f, 1002 0x72, 0x65, 0x73, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x69, 0x73, 0x52, 1003 0x65, 0x73, 0x65, 0x74, 0x22, 0x49, 0x0a, 0x17, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 1004 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 1005 0x16, 0x0a, 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 1006 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 1007 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 1008 0x36, 0x0a, 0x18, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 1009 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 1010 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 1011 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x47, 0x0a, 0x13, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 1012 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 1013 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 1014 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 1015 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 1016 0x22, 0x31, 0x0a, 0x15, 0x55, 0x6e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x41, 0x63, 0x63, 0x6f, 0x75, 1017 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 1018 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 1019 0x75, 0x6e, 0x74, 0x22, 0x30, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x63, 0x63, 1020 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 1021 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 1022 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x29, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 1023 0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2f, 0x6b, 1024 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x75, 0x73, 0x65, 0x72, 1025 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 1026 } 1027 1028 var ( 1029 file_apps_user_pb_request_proto_rawDescOnce sync.Once 1030 file_apps_user_pb_request_proto_rawDescData = file_apps_user_pb_request_proto_rawDesc 1031 ) 1032 1033 func file_apps_user_pb_request_proto_rawDescGZIP() []byte { 1034 file_apps_user_pb_request_proto_rawDescOnce.Do(func() { 1035 file_apps_user_pb_request_proto_rawDescData = protoimpl.X.CompressGZIP(file_apps_user_pb_request_proto_rawDescData) 1036 }) 1037 return file_apps_user_pb_request_proto_rawDescData 1038 } 1039 1040 var file_apps_user_pb_request_proto_msgTypes = make([]protoimpl.MessageInfo, 11) 1041 var file_apps_user_pb_request_proto_goTypes = []interface{}{ 1042 (*Profile)(nil), // 0: infraboard.keyauth.user.Profile 1043 (*CreateAccountRequest)(nil), // 1: infraboard.keyauth.user.CreateAccountRequest 1044 (*DescribeAccountRequest)(nil), // 2: infraboard.keyauth.user.DescribeAccountRequest 1045 (*QueryAccountRequest)(nil), // 3: infraboard.keyauth.user.QueryAccountRequest 1046 (*UpdateAccountRequest)(nil), // 4: infraboard.keyauth.user.UpdateAccountRequest 1047 (*UpdatePasswordRequest)(nil), // 5: infraboard.keyauth.user.UpdatePasswordRequest 1048 (*GeneratePasswordRequest)(nil), // 6: infraboard.keyauth.user.GeneratePasswordRequest 1049 (*GeneratePasswordResponse)(nil), // 7: infraboard.keyauth.user.GeneratePasswordResponse 1050 (*BlockAccountRequest)(nil), // 8: infraboard.keyauth.user.BlockAccountRequest 1051 (*UnBlockAccountRequest)(nil), // 9: infraboard.keyauth.user.UnBlockAccountRequest 1052 (*DeleteAccountRequest)(nil), // 10: infraboard.keyauth.user.DeleteAccountRequest 1053 (Gender)(0), // 11: infraboard.keyauth.user.Gender 1054 (CreateType)(0), // 12: infraboard.keyauth.user.CreateType 1055 (types.UserType)(0), // 13: infraboard.keyauth.user.UserType 1056 (*request.PageRequest)(nil), // 14: infraboard.mcube.page.PageRequest 1057 (types1.UpdateMode)(0), // 15: infraboard.keyauth.types.UpdateMode 1058 } 1059 var file_apps_user_pb_request_proto_depIdxs = []int32{ 1060 11, // 0: infraboard.keyauth.user.Profile.gender:type_name -> infraboard.keyauth.user.Gender 1061 12, // 1: infraboard.keyauth.user.CreateAccountRequest.create_type:type_name -> infraboard.keyauth.user.CreateType 1062 13, // 2: infraboard.keyauth.user.CreateAccountRequest.user_type:type_name -> infraboard.keyauth.user.UserType 1063 0, // 3: infraboard.keyauth.user.CreateAccountRequest.profile:type_name -> infraboard.keyauth.user.Profile 1064 14, // 4: infraboard.keyauth.user.QueryAccountRequest.page:type_name -> infraboard.mcube.page.PageRequest 1065 13, // 5: infraboard.keyauth.user.QueryAccountRequest.user_type:type_name -> infraboard.keyauth.user.UserType 1066 15, // 6: infraboard.keyauth.user.UpdateAccountRequest.update_mode:type_name -> infraboard.keyauth.types.UpdateMode 1067 0, // 7: infraboard.keyauth.user.UpdateAccountRequest.profile:type_name -> infraboard.keyauth.user.Profile 1068 8, // [8:8] is the sub-list for method output_type 1069 8, // [8:8] is the sub-list for method input_type 1070 8, // [8:8] is the sub-list for extension type_name 1071 8, // [8:8] is the sub-list for extension extendee 1072 0, // [0:8] is the sub-list for field type_name 1073 } 1074 1075 func init() { file_apps_user_pb_request_proto_init() } 1076 func file_apps_user_pb_request_proto_init() { 1077 if File_apps_user_pb_request_proto != nil { 1078 return 1079 } 1080 file_apps_user_pb_enum_proto_init() 1081 if !protoimpl.UnsafeEnabled { 1082 file_apps_user_pb_request_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 1083 switch v := v.(*Profile); i { 1084 case 0: 1085 return &v.state 1086 case 1: 1087 return &v.sizeCache 1088 case 2: 1089 return &v.unknownFields 1090 default: 1091 return nil 1092 } 1093 } 1094 file_apps_user_pb_request_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 1095 switch v := v.(*CreateAccountRequest); i { 1096 case 0: 1097 return &v.state 1098 case 1: 1099 return &v.sizeCache 1100 case 2: 1101 return &v.unknownFields 1102 default: 1103 return nil 1104 } 1105 } 1106 file_apps_user_pb_request_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 1107 switch v := v.(*DescribeAccountRequest); i { 1108 case 0: 1109 return &v.state 1110 case 1: 1111 return &v.sizeCache 1112 case 2: 1113 return &v.unknownFields 1114 default: 1115 return nil 1116 } 1117 } 1118 file_apps_user_pb_request_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 1119 switch v := v.(*QueryAccountRequest); i { 1120 case 0: 1121 return &v.state 1122 case 1: 1123 return &v.sizeCache 1124 case 2: 1125 return &v.unknownFields 1126 default: 1127 return nil 1128 } 1129 } 1130 file_apps_user_pb_request_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 1131 switch v := v.(*UpdateAccountRequest); i { 1132 case 0: 1133 return &v.state 1134 case 1: 1135 return &v.sizeCache 1136 case 2: 1137 return &v.unknownFields 1138 default: 1139 return nil 1140 } 1141 } 1142 file_apps_user_pb_request_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 1143 switch v := v.(*UpdatePasswordRequest); i { 1144 case 0: 1145 return &v.state 1146 case 1: 1147 return &v.sizeCache 1148 case 2: 1149 return &v.unknownFields 1150 default: 1151 return nil 1152 } 1153 } 1154 file_apps_user_pb_request_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 1155 switch v := v.(*GeneratePasswordRequest); i { 1156 case 0: 1157 return &v.state 1158 case 1: 1159 return &v.sizeCache 1160 case 2: 1161 return &v.unknownFields 1162 default: 1163 return nil 1164 } 1165 } 1166 file_apps_user_pb_request_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 1167 switch v := v.(*GeneratePasswordResponse); i { 1168 case 0: 1169 return &v.state 1170 case 1: 1171 return &v.sizeCache 1172 case 2: 1173 return &v.unknownFields 1174 default: 1175 return nil 1176 } 1177 } 1178 file_apps_user_pb_request_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 1179 switch v := v.(*BlockAccountRequest); i { 1180 case 0: 1181 return &v.state 1182 case 1: 1183 return &v.sizeCache 1184 case 2: 1185 return &v.unknownFields 1186 default: 1187 return nil 1188 } 1189 } 1190 file_apps_user_pb_request_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { 1191 switch v := v.(*UnBlockAccountRequest); i { 1192 case 0: 1193 return &v.state 1194 case 1: 1195 return &v.sizeCache 1196 case 2: 1197 return &v.unknownFields 1198 default: 1199 return nil 1200 } 1201 } 1202 file_apps_user_pb_request_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { 1203 switch v := v.(*DeleteAccountRequest); i { 1204 case 0: 1205 return &v.state 1206 case 1: 1207 return &v.sizeCache 1208 case 2: 1209 return &v.unknownFields 1210 default: 1211 return nil 1212 } 1213 } 1214 } 1215 type x struct{} 1216 out := protoimpl.TypeBuilder{ 1217 File: protoimpl.DescBuilder{ 1218 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1219 RawDescriptor: file_apps_user_pb_request_proto_rawDesc, 1220 NumEnums: 0, 1221 NumMessages: 11, 1222 NumExtensions: 0, 1223 NumServices: 0, 1224 }, 1225 GoTypes: file_apps_user_pb_request_proto_goTypes, 1226 DependencyIndexes: file_apps_user_pb_request_proto_depIdxs, 1227 MessageInfos: file_apps_user_pb_request_proto_msgTypes, 1228 }.Build() 1229 File_apps_user_pb_request_proto = out.File 1230 file_apps_user_pb_request_proto_rawDesc = nil 1231 file_apps_user_pb_request_proto_goTypes = nil 1232 file_apps_user_pb_request_proto_depIdxs = nil 1233 }