card_error.pb.go 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.30.0
  4. // protoc v3.17.3
  5. // source: card/card_error.proto
  6. package card
  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 CardServiceErrorReason int32
  21. const (
  22. CardServiceErrorReason_UNKNOWN_ERROR CardServiceErrorReason = 0
  23. CardServiceErrorReason_ACCOUNT_PASSWORD_FORMAT CardServiceErrorReason = 1
  24. CardServiceErrorReason_ACCOUNT_NOTFOUND CardServiceErrorReason = 2
  25. CardServiceErrorReason_ACCOUNT_EXIST CardServiceErrorReason = 3
  26. CardServiceErrorReason_ACCOUNT_SYSTEM CardServiceErrorReason = 4
  27. CardServiceErrorReason_ACCOUNT_UPDATE CardServiceErrorReason = 5
  28. CardServiceErrorReason_USER_NOTFOUND CardServiceErrorReason = 6
  29. CardServiceErrorReason_USER_EXIST CardServiceErrorReason = 7
  30. CardServiceErrorReason_USER_SYSTEM CardServiceErrorReason = 8
  31. CardServiceErrorReason_USER_UPDATE CardServiceErrorReason = 9
  32. CardServiceErrorReason_UNAUTHORIZED CardServiceErrorReason = 10
  33. CardServiceErrorReason_FORBIDDEN CardServiceErrorReason = 11
  34. CardServiceErrorReason_ACCOUNT_PASSWORD CardServiceErrorReason = 12
  35. CardServiceErrorReason_THIRD_WX CardServiceErrorReason = 13
  36. CardServiceErrorReason_CARD_NOTFOUND CardServiceErrorReason = 14
  37. CardServiceErrorReason_CARD_EXIST CardServiceErrorReason = 15
  38. CardServiceErrorReason_CARD_SYSTEM CardServiceErrorReason = 16
  39. CardServiceErrorReason_CARD_UPDATE CardServiceErrorReason = 17
  40. CardServiceErrorReason_SHARE_TOKEN_NOTFOUND CardServiceErrorReason = 18
  41. CardServiceErrorReason_SHARE_TOKEN_EXIST CardServiceErrorReason = 19
  42. CardServiceErrorReason_SHARE_TOKEN_SYSTEM CardServiceErrorReason = 20
  43. CardServiceErrorReason_CARD_USER_NOTFOUND CardServiceErrorReason = 21
  44. CardServiceErrorReason_THIRD_ALIYUN CardServiceErrorReason = 22
  45. CardServiceErrorReason_ENDPOINT_OSS_UPLOAD CardServiceErrorReason = 23
  46. )
  47. // Enum value maps for CardServiceErrorReason.
  48. var (
  49. CardServiceErrorReason_name = map[int32]string{
  50. 0: "UNKNOWN_ERROR",
  51. 1: "ACCOUNT_PASSWORD_FORMAT",
  52. 2: "ACCOUNT_NOTFOUND",
  53. 3: "ACCOUNT_EXIST",
  54. 4: "ACCOUNT_SYSTEM",
  55. 5: "ACCOUNT_UPDATE",
  56. 6: "USER_NOTFOUND",
  57. 7: "USER_EXIST",
  58. 8: "USER_SYSTEM",
  59. 9: "USER_UPDATE",
  60. 10: "UNAUTHORIZED",
  61. 11: "FORBIDDEN",
  62. 12: "ACCOUNT_PASSWORD",
  63. 13: "THIRD_WX",
  64. 14: "CARD_NOTFOUND",
  65. 15: "CARD_EXIST",
  66. 16: "CARD_SYSTEM",
  67. 17: "CARD_UPDATE",
  68. 18: "SHARE_TOKEN_NOTFOUND",
  69. 19: "SHARE_TOKEN_EXIST",
  70. 20: "SHARE_TOKEN_SYSTEM",
  71. 21: "CARD_USER_NOTFOUND",
  72. 22: "THIRD_ALIYUN",
  73. 23: "ENDPOINT_OSS_UPLOAD",
  74. }
  75. CardServiceErrorReason_value = map[string]int32{
  76. "UNKNOWN_ERROR": 0,
  77. "ACCOUNT_PASSWORD_FORMAT": 1,
  78. "ACCOUNT_NOTFOUND": 2,
  79. "ACCOUNT_EXIST": 3,
  80. "ACCOUNT_SYSTEM": 4,
  81. "ACCOUNT_UPDATE": 5,
  82. "USER_NOTFOUND": 6,
  83. "USER_EXIST": 7,
  84. "USER_SYSTEM": 8,
  85. "USER_UPDATE": 9,
  86. "UNAUTHORIZED": 10,
  87. "FORBIDDEN": 11,
  88. "ACCOUNT_PASSWORD": 12,
  89. "THIRD_WX": 13,
  90. "CARD_NOTFOUND": 14,
  91. "CARD_EXIST": 15,
  92. "CARD_SYSTEM": 16,
  93. "CARD_UPDATE": 17,
  94. "SHARE_TOKEN_NOTFOUND": 18,
  95. "SHARE_TOKEN_EXIST": 19,
  96. "SHARE_TOKEN_SYSTEM": 20,
  97. "CARD_USER_NOTFOUND": 21,
  98. "THIRD_ALIYUN": 22,
  99. "ENDPOINT_OSS_UPLOAD": 23,
  100. }
  101. )
  102. func (x CardServiceErrorReason) Enum() *CardServiceErrorReason {
  103. p := new(CardServiceErrorReason)
  104. *p = x
  105. return p
  106. }
  107. func (x CardServiceErrorReason) String() string {
  108. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  109. }
  110. func (CardServiceErrorReason) Descriptor() protoreflect.EnumDescriptor {
  111. return file_card_card_error_proto_enumTypes[0].Descriptor()
  112. }
  113. func (CardServiceErrorReason) Type() protoreflect.EnumType {
  114. return &file_card_card_error_proto_enumTypes[0]
  115. }
  116. func (x CardServiceErrorReason) Number() protoreflect.EnumNumber {
  117. return protoreflect.EnumNumber(x)
  118. }
  119. // Deprecated: Use CardServiceErrorReason.Descriptor instead.
  120. func (CardServiceErrorReason) EnumDescriptor() ([]byte, []int) {
  121. return file_card_card_error_proto_rawDescGZIP(), []int{0}
  122. }
  123. var File_card_card_error_proto protoreflect.FileDescriptor
  124. var file_card_card_error_proto_rawDesc = []byte{
  125. 0x0a, 0x15, 0x63, 0x61, 0x72, 0x64, 0x2f, 0x63, 0x61, 0x72, 0x64, 0x5f, 0x65, 0x72, 0x72, 0x6f,
  126. 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x63, 0x61, 0x72, 0x64, 0x1a, 0x1f, 0x74,
  127. 0x68, 0x69, 0x72, 0x64, 0x5f, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2f, 0x65, 0x72, 0x72, 0x6f, 0x72,
  128. 0x73, 0x2f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2a, 0x86,
  129. 0x04, 0x0a, 0x16, 0x43, 0x61, 0x72, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x45, 0x72,
  130. 0x72, 0x6f, 0x72, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x11, 0x0a, 0x0d, 0x55, 0x4e, 0x4b,
  131. 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x17,
  132. 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x50, 0x41, 0x53, 0x53, 0x57, 0x4f, 0x52, 0x44,
  133. 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x41, 0x43, 0x43,
  134. 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x4e, 0x4f, 0x54, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x02, 0x12,
  135. 0x11, 0x0a, 0x0d, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54,
  136. 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x53, 0x59,
  137. 0x53, 0x54, 0x45, 0x4d, 0x10, 0x04, 0x12, 0x12, 0x0a, 0x0e, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e,
  138. 0x54, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x05, 0x12, 0x11, 0x0a, 0x0d, 0x55, 0x53,
  139. 0x45, 0x52, 0x5f, 0x4e, 0x4f, 0x54, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x06, 0x12, 0x0e, 0x0a,
  140. 0x0a, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x10, 0x07, 0x12, 0x0f, 0x0a,
  141. 0x0b, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x53, 0x59, 0x53, 0x54, 0x45, 0x4d, 0x10, 0x08, 0x12, 0x0f,
  142. 0x0a, 0x0b, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x09, 0x12,
  143. 0x16, 0x0a, 0x0c, 0x55, 0x4e, 0x41, 0x55, 0x54, 0x48, 0x4f, 0x52, 0x49, 0x5a, 0x45, 0x44, 0x10,
  144. 0x0a, 0x1a, 0x04, 0xa8, 0x45, 0x91, 0x03, 0x12, 0x13, 0x0a, 0x09, 0x46, 0x4f, 0x52, 0x42, 0x49,
  145. 0x44, 0x44, 0x45, 0x4e, 0x10, 0x0b, 0x1a, 0x04, 0xa8, 0x45, 0x93, 0x03, 0x12, 0x14, 0x0a, 0x10,
  146. 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x50, 0x41, 0x53, 0x53, 0x57, 0x4f, 0x52, 0x44,
  147. 0x10, 0x0c, 0x12, 0x0c, 0x0a, 0x08, 0x54, 0x48, 0x49, 0x52, 0x44, 0x5f, 0x57, 0x58, 0x10, 0x0d,
  148. 0x12, 0x11, 0x0a, 0x0d, 0x43, 0x41, 0x52, 0x44, 0x5f, 0x4e, 0x4f, 0x54, 0x46, 0x4f, 0x55, 0x4e,
  149. 0x44, 0x10, 0x0e, 0x12, 0x0e, 0x0a, 0x0a, 0x43, 0x41, 0x52, 0x44, 0x5f, 0x45, 0x58, 0x49, 0x53,
  150. 0x54, 0x10, 0x0f, 0x12, 0x0f, 0x0a, 0x0b, 0x43, 0x41, 0x52, 0x44, 0x5f, 0x53, 0x59, 0x53, 0x54,
  151. 0x45, 0x4d, 0x10, 0x10, 0x12, 0x0f, 0x0a, 0x0b, 0x43, 0x41, 0x52, 0x44, 0x5f, 0x55, 0x50, 0x44,
  152. 0x41, 0x54, 0x45, 0x10, 0x11, 0x12, 0x18, 0x0a, 0x14, 0x53, 0x48, 0x41, 0x52, 0x45, 0x5f, 0x54,
  153. 0x4f, 0x4b, 0x45, 0x4e, 0x5f, 0x4e, 0x4f, 0x54, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x12, 0x12,
  154. 0x15, 0x0a, 0x11, 0x53, 0x48, 0x41, 0x52, 0x45, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x5f, 0x45,
  155. 0x58, 0x49, 0x53, 0x54, 0x10, 0x13, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x48, 0x41, 0x52, 0x45, 0x5f,
  156. 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x5f, 0x53, 0x59, 0x53, 0x54, 0x45, 0x4d, 0x10, 0x14, 0x12, 0x16,
  157. 0x0a, 0x12, 0x43, 0x41, 0x52, 0x44, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x4e, 0x4f, 0x54, 0x46,
  158. 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x15, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x48, 0x49, 0x52, 0x44, 0x5f,
  159. 0x41, 0x4c, 0x49, 0x59, 0x55, 0x4e, 0x10, 0x16, 0x12, 0x17, 0x0a, 0x13, 0x45, 0x4e, 0x44, 0x50,
  160. 0x4f, 0x49, 0x4e, 0x54, 0x5f, 0x4f, 0x53, 0x53, 0x5f, 0x55, 0x50, 0x4c, 0x4f, 0x41, 0x44, 0x10,
  161. 0x17, 0x1a, 0x04, 0xa0, 0x45, 0xf4, 0x03, 0x42, 0x2d, 0x50, 0x01, 0x5a, 0x29, 0x67, 0x69, 0x74,
  162. 0x2e, 0x74, 0x74, 0x6d, 0x79, 0x6c, 0x69, 0x66, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x7a, 0x65,
  163. 0x75, 0x73, 0x7a, 0x68, 0x61, 0x6f, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x63, 0x61, 0x72,
  164. 0x64, 0x3b, 0x63, 0x61, 0x72, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  165. }
  166. var (
  167. file_card_card_error_proto_rawDescOnce sync.Once
  168. file_card_card_error_proto_rawDescData = file_card_card_error_proto_rawDesc
  169. )
  170. func file_card_card_error_proto_rawDescGZIP() []byte {
  171. file_card_card_error_proto_rawDescOnce.Do(func() {
  172. file_card_card_error_proto_rawDescData = protoimpl.X.CompressGZIP(file_card_card_error_proto_rawDescData)
  173. })
  174. return file_card_card_error_proto_rawDescData
  175. }
  176. var file_card_card_error_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  177. var file_card_card_error_proto_goTypes = []interface{}{
  178. (CardServiceErrorReason)(0), // 0: card.CardServiceErrorReason
  179. }
  180. var file_card_card_error_proto_depIdxs = []int32{
  181. 0, // [0:0] is the sub-list for method output_type
  182. 0, // [0:0] is the sub-list for method input_type
  183. 0, // [0:0] is the sub-list for extension type_name
  184. 0, // [0:0] is the sub-list for extension extendee
  185. 0, // [0:0] is the sub-list for field type_name
  186. }
  187. func init() { file_card_card_error_proto_init() }
  188. func file_card_card_error_proto_init() {
  189. if File_card_card_error_proto != nil {
  190. return
  191. }
  192. type x struct{}
  193. out := protoimpl.TypeBuilder{
  194. File: protoimpl.DescBuilder{
  195. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  196. RawDescriptor: file_card_card_error_proto_rawDesc,
  197. NumEnums: 1,
  198. NumMessages: 0,
  199. NumExtensions: 0,
  200. NumServices: 0,
  201. },
  202. GoTypes: file_card_card_error_proto_goTypes,
  203. DependencyIndexes: file_card_card_error_proto_depIdxs,
  204. EnumInfos: file_card_card_error_proto_enumTypes,
  205. }.Build()
  206. File_card_card_error_proto = out.File
  207. file_card_card_error_proto_rawDesc = nil
  208. file_card_card_error_proto_goTypes = nil
  209. file_card_card_error_proto_depIdxs = nil
  210. }