account.pb.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  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/user/account.proto
  6. package user
  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_user_account_proto_enumTypes[0].Descriptor()
  48. }
  49. func (AccountStatus) Type() protoreflect.EnumType {
  50. return &file_common_user_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_user_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_user_account_proto_enumTypes[1].Descriptor()
  85. }
  86. func (AccountType) Type() protoreflect.EnumType {
  87. return &file_common_user_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_user_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_user_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_user_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_user_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=user.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=user.AccountStatus" json:"status,omitempty"`
  151. }
  152. func (x *AccountBaseBody) Reset() {
  153. *x = AccountBaseBody{}
  154. if protoimpl.UnsafeEnabled {
  155. mi := &file_common_user_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_user_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_user_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_user_account_proto protoreflect.FileDescriptor
  210. var file_common_user_account_proto_rawDesc = []byte{
  211. 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x61, 0x63,
  212. 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x75, 0x73, 0x65,
  213. 0x72, 0x22, 0x48, 0x0a, 0x0b, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x6f, 0x64, 0x79,
  214. 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64,
  215. 0x12, 0x29, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15,
  216. 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61, 0x73,
  217. 0x65, 0x42, 0x6f, 0x64, 0x79, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x22, 0xb4, 0x01, 0x0a, 0x0f,
  218. 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61, 0x73, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x12,
  219. 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d,
  220. 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65,
  221. 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x41, 0x63,
  222. 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12,
  223. 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
  224. 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73,
  225. 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73,
  226. 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x2b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18,
  227. 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x41, 0x63, 0x63,
  228. 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74,
  229. 0x75, 0x73, 0x2a, 0x66, 0x0a, 0x0d, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x74, 0x61,
  230. 0x74, 0x75, 0x73, 0x12, 0x1c, 0x0a, 0x18, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x53,
  231. 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10,
  232. 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x53, 0x54, 0x41,
  233. 0x54, 0x55, 0x53, 0x5f, 0x45, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x1b, 0x0a,
  234. 0x17, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f,
  235. 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x2a, 0x44, 0x0a, 0x0b, 0x41, 0x63,
  236. 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x16, 0x41, 0x43, 0x43,
  237. 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49,
  238. 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54,
  239. 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x57, 0x58, 0x4f, 0x50, 0x45, 0x4e, 0x49, 0x44, 0x10, 0x01,
  240. 0x42, 0x3a, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x2e,
  241. 0x74, 0x74, 0x6d, 0x79, 0x6c, 0x69, 0x66, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x7a, 0x65, 0x75,
  242. 0x73, 0x7a, 0x68, 0x61, 0x6f, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d,
  243. 0x6f, 0x6e, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72,
  244. 0x6f, 0x74, 0x6f, 0x33,
  245. }
  246. var (
  247. file_common_user_account_proto_rawDescOnce sync.Once
  248. file_common_user_account_proto_rawDescData = file_common_user_account_proto_rawDesc
  249. )
  250. func file_common_user_account_proto_rawDescGZIP() []byte {
  251. file_common_user_account_proto_rawDescOnce.Do(func() {
  252. file_common_user_account_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_user_account_proto_rawDescData)
  253. })
  254. return file_common_user_account_proto_rawDescData
  255. }
  256. var file_common_user_account_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  257. var file_common_user_account_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  258. var file_common_user_account_proto_goTypes = []interface{}{
  259. (AccountStatus)(0), // 0: user.AccountStatus
  260. (AccountType)(0), // 1: user.AccountType
  261. (*AccountBody)(nil), // 2: user.AccountBody
  262. (*AccountBaseBody)(nil), // 3: user.AccountBaseBody
  263. }
  264. var file_common_user_account_proto_depIdxs = []int32{
  265. 3, // 0: user.AccountBody.body:type_name -> user.AccountBaseBody
  266. 1, // 1: user.AccountBaseBody.type:type_name -> user.AccountType
  267. 0, // 2: user.AccountBaseBody.status:type_name -> user.AccountStatus
  268. 3, // [3:3] is the sub-list for method output_type
  269. 3, // [3:3] is the sub-list for method input_type
  270. 3, // [3:3] is the sub-list for extension type_name
  271. 3, // [3:3] is the sub-list for extension extendee
  272. 0, // [0:3] is the sub-list for field type_name
  273. }
  274. func init() { file_common_user_account_proto_init() }
  275. func file_common_user_account_proto_init() {
  276. if File_common_user_account_proto != nil {
  277. return
  278. }
  279. if !protoimpl.UnsafeEnabled {
  280. file_common_user_account_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  281. switch v := v.(*AccountBody); i {
  282. case 0:
  283. return &v.state
  284. case 1:
  285. return &v.sizeCache
  286. case 2:
  287. return &v.unknownFields
  288. default:
  289. return nil
  290. }
  291. }
  292. file_common_user_account_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  293. switch v := v.(*AccountBaseBody); i {
  294. case 0:
  295. return &v.state
  296. case 1:
  297. return &v.sizeCache
  298. case 2:
  299. return &v.unknownFields
  300. default:
  301. return nil
  302. }
  303. }
  304. }
  305. type x struct{}
  306. out := protoimpl.TypeBuilder{
  307. File: protoimpl.DescBuilder{
  308. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  309. RawDescriptor: file_common_user_account_proto_rawDesc,
  310. NumEnums: 2,
  311. NumMessages: 2,
  312. NumExtensions: 0,
  313. NumServices: 0,
  314. },
  315. GoTypes: file_common_user_account_proto_goTypes,
  316. DependencyIndexes: file_common_user_account_proto_depIdxs,
  317. EnumInfos: file_common_user_account_proto_enumTypes,
  318. MessageInfos: file_common_user_account_proto_msgTypes,
  319. }.Build()
  320. File_common_user_account_proto = out.File
  321. file_common_user_account_proto_rawDesc = nil
  322. file_common_user_account_proto_goTypes = nil
  323. file_common_user_account_proto_depIdxs = nil
  324. }