error_reason.pb.go 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.34.2
  4. // protoc v4.25.3
  5. // source: user/v2/error_reason.proto
  6. package v2
  7. import (
  8. _ "github.com/go-kratos/kratos/v2/errors"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type ErrorReason int32
  21. const (
  22. // 用户账号或密码不正确
  23. // 参考:https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses
  24. ErrorReason_USER_INCORRECT_ACCOUNT_OR_PASSWORD ErrorReason = 0
  25. // 手机号已被使用
  26. ErrorReason_USER_PHONE_NUMBER_HAS_BEEN_USED ErrorReason = 1
  27. // 验证码已被使用
  28. ErrorReason_USER_INCORRECT_CAPTCHA ErrorReason = 2
  29. // 通讯录没有成员
  30. ErrorReason_CONTACTS_NO_PERSON ErrorReason = 3
  31. // 通讯录未初始化
  32. ErrorReason_CONTACTS_NOT_INITIALIZED ErrorReason = 4
  33. // 通讯录中已存在该成员
  34. ErrorReason_CONTACTS_PERSON_ALREADY_EXISTS ErrorReason = 5
  35. )
  36. // Enum value maps for ErrorReason.
  37. var (
  38. ErrorReason_name = map[int32]string{
  39. 0: "USER_INCORRECT_ACCOUNT_OR_PASSWORD",
  40. 1: "USER_PHONE_NUMBER_HAS_BEEN_USED",
  41. 2: "USER_INCORRECT_CAPTCHA",
  42. 3: "CONTACTS_NO_PERSON",
  43. 4: "CONTACTS_NOT_INITIALIZED",
  44. 5: "CONTACTS_PERSON_ALREADY_EXISTS",
  45. }
  46. ErrorReason_value = map[string]int32{
  47. "USER_INCORRECT_ACCOUNT_OR_PASSWORD": 0,
  48. "USER_PHONE_NUMBER_HAS_BEEN_USED": 1,
  49. "USER_INCORRECT_CAPTCHA": 2,
  50. "CONTACTS_NO_PERSON": 3,
  51. "CONTACTS_NOT_INITIALIZED": 4,
  52. "CONTACTS_PERSON_ALREADY_EXISTS": 5,
  53. }
  54. )
  55. func (x ErrorReason) Enum() *ErrorReason {
  56. p := new(ErrorReason)
  57. *p = x
  58. return p
  59. }
  60. func (x ErrorReason) String() string {
  61. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  62. }
  63. func (ErrorReason) Descriptor() protoreflect.EnumDescriptor {
  64. return file_user_v2_error_reason_proto_enumTypes[0].Descriptor()
  65. }
  66. func (ErrorReason) Type() protoreflect.EnumType {
  67. return &file_user_v2_error_reason_proto_enumTypes[0]
  68. }
  69. func (x ErrorReason) Number() protoreflect.EnumNumber {
  70. return protoreflect.EnumNumber(x)
  71. }
  72. // Deprecated: Use ErrorReason.Descriptor instead.
  73. func (ErrorReason) EnumDescriptor() ([]byte, []int) {
  74. return file_user_v2_error_reason_proto_rawDescGZIP(), []int{0}
  75. }
  76. var File_user_v2_error_reason_proto protoreflect.FileDescriptor
  77. var file_user_v2_error_reason_proto_rawDesc = []byte{
  78. 0x0a, 0x1a, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f,
  79. 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x61, 0x70,
  80. 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x1a, 0x13, 0x65, 0x72, 0x72, 0x6f, 0x72,
  81. 0x73, 0x2f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2a, 0xfa,
  82. 0x01, 0x0a, 0x0b, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x2c,
  83. 0x0a, 0x22, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x49, 0x4e, 0x43, 0x4f, 0x52, 0x52, 0x45, 0x43, 0x54,
  84. 0x5f, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x4f, 0x52, 0x5f, 0x50, 0x41, 0x53, 0x53,
  85. 0x57, 0x4f, 0x52, 0x44, 0x10, 0x00, 0x1a, 0x04, 0xa8, 0x45, 0x91, 0x03, 0x12, 0x29, 0x0a, 0x1f,
  86. 0x55, 0x53, 0x45, 0x52, 0x5f, 0x50, 0x48, 0x4f, 0x4e, 0x45, 0x5f, 0x4e, 0x55, 0x4d, 0x42, 0x45,
  87. 0x52, 0x5f, 0x48, 0x41, 0x53, 0x5f, 0x42, 0x45, 0x45, 0x4e, 0x5f, 0x55, 0x53, 0x45, 0x44, 0x10,
  88. 0x01, 0x1a, 0x04, 0xa8, 0x45, 0x90, 0x03, 0x12, 0x20, 0x0a, 0x16, 0x55, 0x53, 0x45, 0x52, 0x5f,
  89. 0x49, 0x4e, 0x43, 0x4f, 0x52, 0x52, 0x45, 0x43, 0x54, 0x5f, 0x43, 0x41, 0x50, 0x54, 0x43, 0x48,
  90. 0x41, 0x10, 0x02, 0x1a, 0x04, 0xa8, 0x45, 0x90, 0x03, 0x12, 0x1c, 0x0a, 0x12, 0x43, 0x4f, 0x4e,
  91. 0x54, 0x41, 0x43, 0x54, 0x53, 0x5f, 0x4e, 0x4f, 0x5f, 0x50, 0x45, 0x52, 0x53, 0x4f, 0x4e, 0x10,
  92. 0x03, 0x1a, 0x04, 0xa8, 0x45, 0x90, 0x03, 0x12, 0x22, 0x0a, 0x18, 0x43, 0x4f, 0x4e, 0x54, 0x41,
  93. 0x43, 0x54, 0x53, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x49, 0x4e, 0x49, 0x54, 0x49, 0x41, 0x4c, 0x49,
  94. 0x5a, 0x45, 0x44, 0x10, 0x04, 0x1a, 0x04, 0xa8, 0x45, 0x90, 0x03, 0x12, 0x28, 0x0a, 0x1e, 0x43,
  95. 0x4f, 0x4e, 0x54, 0x41, 0x43, 0x54, 0x53, 0x5f, 0x50, 0x45, 0x52, 0x53, 0x4f, 0x4e, 0x5f, 0x41,
  96. 0x4c, 0x52, 0x45, 0x41, 0x44, 0x59, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x53, 0x10, 0x05, 0x1a,
  97. 0x04, 0xa8, 0x45, 0x90, 0x03, 0x1a, 0x04, 0xa0, 0x45, 0xf4, 0x03, 0x42, 0x30, 0x0a, 0x0b, 0x61,
  98. 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x50, 0x01, 0x5a, 0x1f, 0x73, 0x69,
  99. 0x6b, 0x65, 0x79, 0x2f, 0x77, 0x33, 0x30, 0x33, 0x61, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x61,
  100. 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x76, 0x32, 0x3b, 0x76, 0x32, 0x62, 0x06, 0x70,
  101. 0x72, 0x6f, 0x74, 0x6f, 0x33,
  102. }
  103. var (
  104. file_user_v2_error_reason_proto_rawDescOnce sync.Once
  105. file_user_v2_error_reason_proto_rawDescData = file_user_v2_error_reason_proto_rawDesc
  106. )
  107. func file_user_v2_error_reason_proto_rawDescGZIP() []byte {
  108. file_user_v2_error_reason_proto_rawDescOnce.Do(func() {
  109. file_user_v2_error_reason_proto_rawDescData = protoimpl.X.CompressGZIP(file_user_v2_error_reason_proto_rawDescData)
  110. })
  111. return file_user_v2_error_reason_proto_rawDescData
  112. }
  113. var file_user_v2_error_reason_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  114. var file_user_v2_error_reason_proto_goTypes = []any{
  115. (ErrorReason)(0), // 0: api.user.v2.ErrorReason
  116. }
  117. var file_user_v2_error_reason_proto_depIdxs = []int32{
  118. 0, // [0:0] is the sub-list for method output_type
  119. 0, // [0:0] is the sub-list for method input_type
  120. 0, // [0:0] is the sub-list for extension type_name
  121. 0, // [0:0] is the sub-list for extension extendee
  122. 0, // [0:0] is the sub-list for field type_name
  123. }
  124. func init() { file_user_v2_error_reason_proto_init() }
  125. func file_user_v2_error_reason_proto_init() {
  126. if File_user_v2_error_reason_proto != nil {
  127. return
  128. }
  129. type x struct{}
  130. out := protoimpl.TypeBuilder{
  131. File: protoimpl.DescBuilder{
  132. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  133. RawDescriptor: file_user_v2_error_reason_proto_rawDesc,
  134. NumEnums: 1,
  135. NumMessages: 0,
  136. NumExtensions: 0,
  137. NumServices: 0,
  138. },
  139. GoTypes: file_user_v2_error_reason_proto_goTypes,
  140. DependencyIndexes: file_user_v2_error_reason_proto_depIdxs,
  141. EnumInfos: file_user_v2_error_reason_proto_enumTypes,
  142. }.Build()
  143. File_user_v2_error_reason_proto = out.File
  144. file_user_v2_error_reason_proto_rawDesc = nil
  145. file_user_v2_error_reason_proto_goTypes = nil
  146. file_user_v2_error_reason_proto_depIdxs = nil
  147. }