account.pb.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.10
  4. // protoc v3.21.11
  5. // source: account/v1/account.proto
  6. package v1
  7. import (
  8. pbentity "proxima/app/user/api/pbentity"
  9. reflect "reflect"
  10. sync "sync"
  11. unsafe "unsafe"
  12. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  13. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  14. )
  15. const (
  16. // Verify that this generated code is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  18. // Verify that runtime/protoimpl is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  20. )
  21. type UserRegisterReq struct {
  22. state protoimpl.MessageState `protogen:"open.v1"`
  23. Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty" v:"required|min-length:2"` // v:required|min-length:2
  24. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty" v:"required|min-length:6"` // v:required|min-length:6
  25. Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty" v:"required|email"` // v:required|email
  26. unknownFields protoimpl.UnknownFields
  27. sizeCache protoimpl.SizeCache
  28. }
  29. func (x *UserRegisterReq) Reset() {
  30. *x = UserRegisterReq{}
  31. mi := &file_account_v1_account_proto_msgTypes[0]
  32. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  33. ms.StoreMessageInfo(mi)
  34. }
  35. func (x *UserRegisterReq) String() string {
  36. return protoimpl.X.MessageStringOf(x)
  37. }
  38. func (*UserRegisterReq) ProtoMessage() {}
  39. func (x *UserRegisterReq) ProtoReflect() protoreflect.Message {
  40. mi := &file_account_v1_account_proto_msgTypes[0]
  41. if x != nil {
  42. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  43. if ms.LoadMessageInfo() == nil {
  44. ms.StoreMessageInfo(mi)
  45. }
  46. return ms
  47. }
  48. return mi.MessageOf(x)
  49. }
  50. // Deprecated: Use UserRegisterReq.ProtoReflect.Descriptor instead.
  51. func (*UserRegisterReq) Descriptor() ([]byte, []int) {
  52. return file_account_v1_account_proto_rawDescGZIP(), []int{0}
  53. }
  54. func (x *UserRegisterReq) GetUsername() string {
  55. if x != nil {
  56. return x.Username
  57. }
  58. return ""
  59. }
  60. func (x *UserRegisterReq) GetPassword() string {
  61. if x != nil {
  62. return x.Password
  63. }
  64. return ""
  65. }
  66. func (x *UserRegisterReq) GetEmail() string {
  67. if x != nil {
  68. return x.Email
  69. }
  70. return ""
  71. }
  72. type UserRegisterRes struct {
  73. state protoimpl.MessageState `protogen:"open.v1"`
  74. Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  75. unknownFields protoimpl.UnknownFields
  76. sizeCache protoimpl.SizeCache
  77. }
  78. func (x *UserRegisterRes) Reset() {
  79. *x = UserRegisterRes{}
  80. mi := &file_account_v1_account_proto_msgTypes[1]
  81. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  82. ms.StoreMessageInfo(mi)
  83. }
  84. func (x *UserRegisterRes) String() string {
  85. return protoimpl.X.MessageStringOf(x)
  86. }
  87. func (*UserRegisterRes) ProtoMessage() {}
  88. func (x *UserRegisterRes) ProtoReflect() protoreflect.Message {
  89. mi := &file_account_v1_account_proto_msgTypes[1]
  90. if x != nil {
  91. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  92. if ms.LoadMessageInfo() == nil {
  93. ms.StoreMessageInfo(mi)
  94. }
  95. return ms
  96. }
  97. return mi.MessageOf(x)
  98. }
  99. // Deprecated: Use UserRegisterRes.ProtoReflect.Descriptor instead.
  100. func (*UserRegisterRes) Descriptor() ([]byte, []int) {
  101. return file_account_v1_account_proto_rawDescGZIP(), []int{1}
  102. }
  103. func (x *UserRegisterRes) GetId() int32 {
  104. if x != nil {
  105. return x.Id
  106. }
  107. return 0
  108. }
  109. type UserLoginReq struct {
  110. state protoimpl.MessageState `protogen:"open.v1"`
  111. Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty" v:"required|min-length:2"` // v:required|min-length:2
  112. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty" v:"required|min-length:6"` // v:required|min-length:6
  113. unknownFields protoimpl.UnknownFields
  114. sizeCache protoimpl.SizeCache
  115. }
  116. func (x *UserLoginReq) Reset() {
  117. *x = UserLoginReq{}
  118. mi := &file_account_v1_account_proto_msgTypes[2]
  119. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  120. ms.StoreMessageInfo(mi)
  121. }
  122. func (x *UserLoginReq) String() string {
  123. return protoimpl.X.MessageStringOf(x)
  124. }
  125. func (*UserLoginReq) ProtoMessage() {}
  126. func (x *UserLoginReq) ProtoReflect() protoreflect.Message {
  127. mi := &file_account_v1_account_proto_msgTypes[2]
  128. if x != nil {
  129. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  130. if ms.LoadMessageInfo() == nil {
  131. ms.StoreMessageInfo(mi)
  132. }
  133. return ms
  134. }
  135. return mi.MessageOf(x)
  136. }
  137. // Deprecated: Use UserLoginReq.ProtoReflect.Descriptor instead.
  138. func (*UserLoginReq) Descriptor() ([]byte, []int) {
  139. return file_account_v1_account_proto_rawDescGZIP(), []int{2}
  140. }
  141. func (x *UserLoginReq) GetUsername() string {
  142. if x != nil {
  143. return x.Username
  144. }
  145. return ""
  146. }
  147. func (x *UserLoginReq) GetPassword() string {
  148. if x != nil {
  149. return x.Password
  150. }
  151. return ""
  152. }
  153. type UserLoginRes struct {
  154. state protoimpl.MessageState `protogen:"open.v1"`
  155. Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
  156. unknownFields protoimpl.UnknownFields
  157. sizeCache protoimpl.SizeCache
  158. }
  159. func (x *UserLoginRes) Reset() {
  160. *x = UserLoginRes{}
  161. mi := &file_account_v1_account_proto_msgTypes[3]
  162. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  163. ms.StoreMessageInfo(mi)
  164. }
  165. func (x *UserLoginRes) String() string {
  166. return protoimpl.X.MessageStringOf(x)
  167. }
  168. func (*UserLoginRes) ProtoMessage() {}
  169. func (x *UserLoginRes) ProtoReflect() protoreflect.Message {
  170. mi := &file_account_v1_account_proto_msgTypes[3]
  171. if x != nil {
  172. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  173. if ms.LoadMessageInfo() == nil {
  174. ms.StoreMessageInfo(mi)
  175. }
  176. return ms
  177. }
  178. return mi.MessageOf(x)
  179. }
  180. // Deprecated: Use UserLoginRes.ProtoReflect.Descriptor instead.
  181. func (*UserLoginRes) Descriptor() ([]byte, []int) {
  182. return file_account_v1_account_proto_rawDescGZIP(), []int{3}
  183. }
  184. func (x *UserLoginRes) GetToken() string {
  185. if x != nil {
  186. return x.Token
  187. }
  188. return ""
  189. }
  190. type UserInfoReq struct {
  191. state protoimpl.MessageState `protogen:"open.v1"`
  192. Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty" v:"required"` // v:required
  193. unknownFields protoimpl.UnknownFields
  194. sizeCache protoimpl.SizeCache
  195. }
  196. func (x *UserInfoReq) Reset() {
  197. *x = UserInfoReq{}
  198. mi := &file_account_v1_account_proto_msgTypes[4]
  199. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  200. ms.StoreMessageInfo(mi)
  201. }
  202. func (x *UserInfoReq) String() string {
  203. return protoimpl.X.MessageStringOf(x)
  204. }
  205. func (*UserInfoReq) ProtoMessage() {}
  206. func (x *UserInfoReq) ProtoReflect() protoreflect.Message {
  207. mi := &file_account_v1_account_proto_msgTypes[4]
  208. if x != nil {
  209. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  210. if ms.LoadMessageInfo() == nil {
  211. ms.StoreMessageInfo(mi)
  212. }
  213. return ms
  214. }
  215. return mi.MessageOf(x)
  216. }
  217. // Deprecated: Use UserInfoReq.ProtoReflect.Descriptor instead.
  218. func (*UserInfoReq) Descriptor() ([]byte, []int) {
  219. return file_account_v1_account_proto_rawDescGZIP(), []int{4}
  220. }
  221. func (x *UserInfoReq) GetToken() string {
  222. if x != nil {
  223. return x.Token
  224. }
  225. return ""
  226. }
  227. type UserInfoRes struct {
  228. state protoimpl.MessageState `protogen:"open.v1"`
  229. User *pbentity.Users `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
  230. unknownFields protoimpl.UnknownFields
  231. sizeCache protoimpl.SizeCache
  232. }
  233. func (x *UserInfoRes) Reset() {
  234. *x = UserInfoRes{}
  235. mi := &file_account_v1_account_proto_msgTypes[5]
  236. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  237. ms.StoreMessageInfo(mi)
  238. }
  239. func (x *UserInfoRes) String() string {
  240. return protoimpl.X.MessageStringOf(x)
  241. }
  242. func (*UserInfoRes) ProtoMessage() {}
  243. func (x *UserInfoRes) ProtoReflect() protoreflect.Message {
  244. mi := &file_account_v1_account_proto_msgTypes[5]
  245. if x != nil {
  246. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  247. if ms.LoadMessageInfo() == nil {
  248. ms.StoreMessageInfo(mi)
  249. }
  250. return ms
  251. }
  252. return mi.MessageOf(x)
  253. }
  254. // Deprecated: Use UserInfoRes.ProtoReflect.Descriptor instead.
  255. func (*UserInfoRes) Descriptor() ([]byte, []int) {
  256. return file_account_v1_account_proto_rawDescGZIP(), []int{5}
  257. }
  258. func (x *UserInfoRes) GetUser() *pbentity.Users {
  259. if x != nil {
  260. return x.User
  261. }
  262. return nil
  263. }
  264. var File_account_v1_account_proto protoreflect.FileDescriptor
  265. const file_account_v1_account_proto_rawDesc = "" +
  266. "\n" +
  267. "\x18account/v1/account.proto\x12\n" +
  268. "account.v1\x1a\x14pbentity/users.proto\"_\n" +
  269. "\x0fUserRegisterReq\x12\x1a\n" +
  270. "\busername\x18\x01 \x01(\tR\busername\x12\x1a\n" +
  271. "\bpassword\x18\x02 \x01(\tR\bpassword\x12\x14\n" +
  272. "\x05email\x18\x03 \x01(\tR\x05email\"!\n" +
  273. "\x0fUserRegisterRes\x12\x0e\n" +
  274. "\x02id\x18\x01 \x01(\x05R\x02id\"F\n" +
  275. "\fUserLoginReq\x12\x1a\n" +
  276. "\busername\x18\x01 \x01(\tR\busername\x12\x1a\n" +
  277. "\bpassword\x18\x02 \x01(\tR\bpassword\"$\n" +
  278. "\fUserLoginRes\x12\x14\n" +
  279. "\x05token\x18\x01 \x01(\tR\x05token\"#\n" +
  280. "\vUserInfoReq\x12\x14\n" +
  281. "\x05token\x18\x01 \x01(\tR\x05token\"2\n" +
  282. "\vUserInfoRes\x12#\n" +
  283. "\x04user\x18\x01 \x01(\v2\x0f.pbentity.UsersR\x04user2\xd8\x01\n" +
  284. "\aAccount\x12J\n" +
  285. "\fUserRegister\x12\x1b.account.v1.UserRegisterReq\x1a\x1b.account.v1.UserRegisterRes\"\x00\x12A\n" +
  286. "\tUserLogin\x12\x18.account.v1.UserLoginReq\x1a\x18.account.v1.UserLoginRes\"\x00\x12>\n" +
  287. "\bUserInfo\x12\x17.account.v1.UserInfoReq\x1a\x17.account.v1.UserInfoRes\"\x00B!Z\x1fproxima/app/user/api/account/v1b\x06proto3"
  288. var (
  289. file_account_v1_account_proto_rawDescOnce sync.Once
  290. file_account_v1_account_proto_rawDescData []byte
  291. )
  292. func file_account_v1_account_proto_rawDescGZIP() []byte {
  293. file_account_v1_account_proto_rawDescOnce.Do(func() {
  294. file_account_v1_account_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_account_v1_account_proto_rawDesc), len(file_account_v1_account_proto_rawDesc)))
  295. })
  296. return file_account_v1_account_proto_rawDescData
  297. }
  298. var file_account_v1_account_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
  299. var file_account_v1_account_proto_goTypes = []any{
  300. (*UserRegisterReq)(nil), // 0: account.v1.UserRegisterReq
  301. (*UserRegisterRes)(nil), // 1: account.v1.UserRegisterRes
  302. (*UserLoginReq)(nil), // 2: account.v1.UserLoginReq
  303. (*UserLoginRes)(nil), // 3: account.v1.UserLoginRes
  304. (*UserInfoReq)(nil), // 4: account.v1.UserInfoReq
  305. (*UserInfoRes)(nil), // 5: account.v1.UserInfoRes
  306. (*pbentity.Users)(nil), // 6: pbentity.Users
  307. }
  308. var file_account_v1_account_proto_depIdxs = []int32{
  309. 6, // 0: account.v1.UserInfoRes.user:type_name -> pbentity.Users
  310. 0, // 1: account.v1.Account.UserRegister:input_type -> account.v1.UserRegisterReq
  311. 2, // 2: account.v1.Account.UserLogin:input_type -> account.v1.UserLoginReq
  312. 4, // 3: account.v1.Account.UserInfo:input_type -> account.v1.UserInfoReq
  313. 1, // 4: account.v1.Account.UserRegister:output_type -> account.v1.UserRegisterRes
  314. 3, // 5: account.v1.Account.UserLogin:output_type -> account.v1.UserLoginRes
  315. 5, // 6: account.v1.Account.UserInfo:output_type -> account.v1.UserInfoRes
  316. 4, // [4:7] is the sub-list for method output_type
  317. 1, // [1:4] is the sub-list for method input_type
  318. 1, // [1:1] is the sub-list for extension type_name
  319. 1, // [1:1] is the sub-list for extension extendee
  320. 0, // [0:1] is the sub-list for field type_name
  321. }
  322. func init() { file_account_v1_account_proto_init() }
  323. func file_account_v1_account_proto_init() {
  324. if File_account_v1_account_proto != nil {
  325. return
  326. }
  327. type x struct{}
  328. out := protoimpl.TypeBuilder{
  329. File: protoimpl.DescBuilder{
  330. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  331. RawDescriptor: unsafe.Slice(unsafe.StringData(file_account_v1_account_proto_rawDesc), len(file_account_v1_account_proto_rawDesc)),
  332. NumEnums: 0,
  333. NumMessages: 6,
  334. NumExtensions: 0,
  335. NumServices: 1,
  336. },
  337. GoTypes: file_account_v1_account_proto_goTypes,
  338. DependencyIndexes: file_account_v1_account_proto_depIdxs,
  339. MessageInfos: file_account_v1_account_proto_msgTypes,
  340. }.Build()
  341. File_account_v1_account_proto = out.File
  342. file_account_v1_account_proto_goTypes = nil
  343. file_account_v1_account_proto_depIdxs = nil
  344. }