account.pb.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  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: common/account.proto
  6. package common
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. type AccountStatus int32
  20. const (
  21. AccountStatus_ACCOUNT_STATUS_UNDEFINED AccountStatus = 0
  22. AccountStatus_ACCOUNT_STATUS_ENABLED AccountStatus = 1
  23. AccountStatus_ACCOUNT_STATUS_DISABLED AccountStatus = 2
  24. )
  25. // Enum value maps for AccountStatus.
  26. var (
  27. AccountStatus_name = map[int32]string{
  28. 0: "ACCOUNT_STATUS_UNDEFINED",
  29. 1: "ACCOUNT_STATUS_ENABLED",
  30. 2: "ACCOUNT_STATUS_DISABLED",
  31. }
  32. AccountStatus_value = map[string]int32{
  33. "ACCOUNT_STATUS_UNDEFINED": 0,
  34. "ACCOUNT_STATUS_ENABLED": 1,
  35. "ACCOUNT_STATUS_DISABLED": 2,
  36. }
  37. )
  38. func (x AccountStatus) Enum() *AccountStatus {
  39. p := new(AccountStatus)
  40. *p = x
  41. return p
  42. }
  43. func (x AccountStatus) String() string {
  44. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  45. }
  46. func (AccountStatus) Descriptor() protoreflect.EnumDescriptor {
  47. return file_common_account_proto_enumTypes[0].Descriptor()
  48. }
  49. func (AccountStatus) Type() protoreflect.EnumType {
  50. return &file_common_account_proto_enumTypes[0]
  51. }
  52. func (x AccountStatus) Number() protoreflect.EnumNumber {
  53. return protoreflect.EnumNumber(x)
  54. }
  55. // Deprecated: Use AccountStatus.Descriptor instead.
  56. func (AccountStatus) EnumDescriptor() ([]byte, []int) {
  57. return file_common_account_proto_rawDescGZIP(), []int{0}
  58. }
  59. type AccountType int32
  60. const (
  61. AccountType_ACCOUNT_TYPE_UNDEFINED AccountType = 0
  62. AccountType_ACCOUNT_TYPE_WXOPENID AccountType = 1
  63. )
  64. // Enum value maps for AccountType.
  65. var (
  66. AccountType_name = map[int32]string{
  67. 0: "ACCOUNT_TYPE_UNDEFINED",
  68. 1: "ACCOUNT_TYPE_WXOPENID",
  69. }
  70. AccountType_value = map[string]int32{
  71. "ACCOUNT_TYPE_UNDEFINED": 0,
  72. "ACCOUNT_TYPE_WXOPENID": 1,
  73. }
  74. )
  75. func (x AccountType) Enum() *AccountType {
  76. p := new(AccountType)
  77. *p = x
  78. return p
  79. }
  80. func (x AccountType) String() string {
  81. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  82. }
  83. func (AccountType) Descriptor() protoreflect.EnumDescriptor {
  84. return file_common_account_proto_enumTypes[1].Descriptor()
  85. }
  86. func (AccountType) Type() protoreflect.EnumType {
  87. return &file_common_account_proto_enumTypes[1]
  88. }
  89. func (x AccountType) Number() protoreflect.EnumNumber {
  90. return protoreflect.EnumNumber(x)
  91. }
  92. // Deprecated: Use AccountType.Descriptor instead.
  93. func (AccountType) EnumDescriptor() ([]byte, []int) {
  94. return file_common_account_proto_rawDescGZIP(), []int{1}
  95. }
  96. type AccountBody struct {
  97. state protoimpl.MessageState
  98. sizeCache protoimpl.SizeCache
  99. unknownFields protoimpl.UnknownFields
  100. Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  101. Body *AccountBaseBody `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
  102. }
  103. func (x *AccountBody) Reset() {
  104. *x = AccountBody{}
  105. if protoimpl.UnsafeEnabled {
  106. mi := &file_common_account_proto_msgTypes[0]
  107. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  108. ms.StoreMessageInfo(mi)
  109. }
  110. }
  111. func (x *AccountBody) String() string {
  112. return protoimpl.X.MessageStringOf(x)
  113. }
  114. func (*AccountBody) ProtoMessage() {}
  115. func (x *AccountBody) ProtoReflect() protoreflect.Message {
  116. mi := &file_common_account_proto_msgTypes[0]
  117. if protoimpl.UnsafeEnabled && x != nil {
  118. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  119. if ms.LoadMessageInfo() == nil {
  120. ms.StoreMessageInfo(mi)
  121. }
  122. return ms
  123. }
  124. return mi.MessageOf(x)
  125. }
  126. // Deprecated: Use AccountBody.ProtoReflect.Descriptor instead.
  127. func (*AccountBody) Descriptor() ([]byte, []int) {
  128. return file_common_account_proto_rawDescGZIP(), []int{0}
  129. }
  130. func (x *AccountBody) GetId() uint32 {
  131. if x != nil {
  132. return x.Id
  133. }
  134. return 0
  135. }
  136. func (x *AccountBody) GetBody() *AccountBaseBody {
  137. if x != nil {
  138. return x.Body
  139. }
  140. return nil
  141. }
  142. type AccountBaseBody struct {
  143. state protoimpl.MessageState
  144. sizeCache protoimpl.SizeCache
  145. unknownFields protoimpl.UnknownFields
  146. UserId uint32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
  147. Type AccountType `protobuf:"varint,2,opt,name=type,proto3,enum=common.AccountType" json:"type,omitempty"`
  148. Account string `protobuf:"bytes,3,opt,name=account,proto3" json:"account,omitempty"`
  149. Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
  150. Status AccountStatus `protobuf:"varint,5,opt,name=status,proto3,enum=common.AccountStatus" json:"status,omitempty"`
  151. }
  152. func (x *AccountBaseBody) Reset() {
  153. *x = AccountBaseBody{}
  154. if protoimpl.UnsafeEnabled {
  155. mi := &file_common_account_proto_msgTypes[1]
  156. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  157. ms.StoreMessageInfo(mi)
  158. }
  159. }
  160. func (x *AccountBaseBody) String() string {
  161. return protoimpl.X.MessageStringOf(x)
  162. }
  163. func (*AccountBaseBody) ProtoMessage() {}
  164. func (x *AccountBaseBody) ProtoReflect() protoreflect.Message {
  165. mi := &file_common_account_proto_msgTypes[1]
  166. if protoimpl.UnsafeEnabled && x != nil {
  167. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  168. if ms.LoadMessageInfo() == nil {
  169. ms.StoreMessageInfo(mi)
  170. }
  171. return ms
  172. }
  173. return mi.MessageOf(x)
  174. }
  175. // Deprecated: Use AccountBaseBody.ProtoReflect.Descriptor instead.
  176. func (*AccountBaseBody) Descriptor() ([]byte, []int) {
  177. return file_common_account_proto_rawDescGZIP(), []int{1}
  178. }
  179. func (x *AccountBaseBody) GetUserId() uint32 {
  180. if x != nil {
  181. return x.UserId
  182. }
  183. return 0
  184. }
  185. func (x *AccountBaseBody) GetType() AccountType {
  186. if x != nil {
  187. return x.Type
  188. }
  189. return AccountType_ACCOUNT_TYPE_UNDEFINED
  190. }
  191. func (x *AccountBaseBody) GetAccount() string {
  192. if x != nil {
  193. return x.Account
  194. }
  195. return ""
  196. }
  197. func (x *AccountBaseBody) GetPassword() string {
  198. if x != nil {
  199. return x.Password
  200. }
  201. return ""
  202. }
  203. func (x *AccountBaseBody) GetStatus() AccountStatus {
  204. if x != nil {
  205. return x.Status
  206. }
  207. return AccountStatus_ACCOUNT_STATUS_UNDEFINED
  208. }
  209. var File_common_account_proto protoreflect.FileDescriptor
  210. var file_common_account_proto_rawDesc = []byte{
  211. 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
  212. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x22, 0x4a,
  213. 0x0a, 0x0b, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x0e, 0x0a,
  214. 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2b, 0x0a,
  215. 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x6f,
  216. 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61, 0x73, 0x65,
  217. 0x42, 0x6f, 0x64, 0x79, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x22, 0xb8, 0x01, 0x0a, 0x0f, 0x41,
  218. 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61, 0x73, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x17,
  219. 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52,
  220. 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18,
  221. 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41,
  222. 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65,
  223. 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28,
  224. 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61,
  225. 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61,
  226. 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x2d, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
  227. 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
  228. 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73,
  229. 0x74, 0x61, 0x74, 0x75, 0x73, 0x2a, 0x66, 0x0a, 0x0d, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
  230. 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1c, 0x0a, 0x18, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e,
  231. 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e,
  232. 0x45, 0x44, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f,
  233. 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x45, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x01,
  234. 0x12, 0x1b, 0x0a, 0x17, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54,
  235. 0x55, 0x53, 0x5f, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x2a, 0x44, 0x0a,
  236. 0x0b, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x16,
  237. 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x44,
  238. 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x41, 0x43, 0x43, 0x4f,
  239. 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x57, 0x58, 0x4f, 0x50, 0x45, 0x4e, 0x49,
  240. 0x44, 0x10, 0x01, 0x42, 0x1f, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x01, 0x5a,
  241. 0x13, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x3b, 0x63, 0x6f,
  242. 0x6d, 0x6d, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  243. }
  244. var (
  245. file_common_account_proto_rawDescOnce sync.Once
  246. file_common_account_proto_rawDescData = file_common_account_proto_rawDesc
  247. )
  248. func file_common_account_proto_rawDescGZIP() []byte {
  249. file_common_account_proto_rawDescOnce.Do(func() {
  250. file_common_account_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_account_proto_rawDescData)
  251. })
  252. return file_common_account_proto_rawDescData
  253. }
  254. var file_common_account_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  255. var file_common_account_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  256. var file_common_account_proto_goTypes = []interface{}{
  257. (AccountStatus)(0), // 0: common.AccountStatus
  258. (AccountType)(0), // 1: common.AccountType
  259. (*AccountBody)(nil), // 2: common.AccountBody
  260. (*AccountBaseBody)(nil), // 3: common.AccountBaseBody
  261. }
  262. var file_common_account_proto_depIdxs = []int32{
  263. 3, // 0: common.AccountBody.body:type_name -> common.AccountBaseBody
  264. 1, // 1: common.AccountBaseBody.type:type_name -> common.AccountType
  265. 0, // 2: common.AccountBaseBody.status:type_name -> common.AccountStatus
  266. 3, // [3:3] is the sub-list for method output_type
  267. 3, // [3:3] is the sub-list for method input_type
  268. 3, // [3:3] is the sub-list for extension type_name
  269. 3, // [3:3] is the sub-list for extension extendee
  270. 0, // [0:3] is the sub-list for field type_name
  271. }
  272. func init() { file_common_account_proto_init() }
  273. func file_common_account_proto_init() {
  274. if File_common_account_proto != nil {
  275. return
  276. }
  277. if !protoimpl.UnsafeEnabled {
  278. file_common_account_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  279. switch v := v.(*AccountBody); i {
  280. case 0:
  281. return &v.state
  282. case 1:
  283. return &v.sizeCache
  284. case 2:
  285. return &v.unknownFields
  286. default:
  287. return nil
  288. }
  289. }
  290. file_common_account_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  291. switch v := v.(*AccountBaseBody); i {
  292. case 0:
  293. return &v.state
  294. case 1:
  295. return &v.sizeCache
  296. case 2:
  297. return &v.unknownFields
  298. default:
  299. return nil
  300. }
  301. }
  302. }
  303. type x struct{}
  304. out := protoimpl.TypeBuilder{
  305. File: protoimpl.DescBuilder{
  306. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  307. RawDescriptor: file_common_account_proto_rawDesc,
  308. NumEnums: 2,
  309. NumMessages: 2,
  310. NumExtensions: 0,
  311. NumServices: 0,
  312. },
  313. GoTypes: file_common_account_proto_goTypes,
  314. DependencyIndexes: file_common_account_proto_depIdxs,
  315. EnumInfos: file_common_account_proto_enumTypes,
  316. MessageInfos: file_common_account_proto_msgTypes,
  317. }.Build()
  318. File_common_account_proto = out.File
  319. file_common_account_proto_rawDesc = nil
  320. file_common_account_proto_goTypes = nil
  321. file_common_account_proto_depIdxs = nil
  322. }