user.pb.go 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.26.0-devel
  4. // protoc v3.15.8
  5. // source: user.proto
  6. package user
  7. import (
  8. _ "google.golang.org/genproto/googleapis/api/annotations"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. emptypb "google.golang.org/protobuf/types/known/emptypb"
  12. reflect "reflect"
  13. sync "sync"
  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 UserInfo struct {
  22. state protoimpl.MessageState
  23. sizeCache protoimpl.SizeCache
  24. unknownFields protoimpl.UnknownFields
  25. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` // id
  26. Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname"` // 昵称
  27. AvatarUrl string `protobuf:"bytes,3,opt,name=avatarUrl,proto3" json:"avatarUrl"` // 头像链接
  28. Phone string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone"` // 手机号
  29. Sex int64 `protobuf:"varint,5,opt,name=sex,proto3" json:"sex"` // 性别
  30. Credit int64 `protobuf:"varint,6,opt,name=credit,proto3" json:"credit"` // 积分
  31. }
  32. func (x *UserInfo) Reset() {
  33. *x = UserInfo{}
  34. if protoimpl.UnsafeEnabled {
  35. mi := &file_user_proto_msgTypes[0]
  36. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  37. ms.StoreMessageInfo(mi)
  38. }
  39. }
  40. func (x *UserInfo) String() string {
  41. return protoimpl.X.MessageStringOf(x)
  42. }
  43. func (*UserInfo) ProtoMessage() {}
  44. func (x *UserInfo) ProtoReflect() protoreflect.Message {
  45. mi := &file_user_proto_msgTypes[0]
  46. if protoimpl.UnsafeEnabled && x != nil {
  47. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  48. if ms.LoadMessageInfo() == nil {
  49. ms.StoreMessageInfo(mi)
  50. }
  51. return ms
  52. }
  53. return mi.MessageOf(x)
  54. }
  55. // Deprecated: Use UserInfo.ProtoReflect.Descriptor instead.
  56. func (*UserInfo) Descriptor() ([]byte, []int) {
  57. return file_user_proto_rawDescGZIP(), []int{0}
  58. }
  59. func (x *UserInfo) GetId() string {
  60. if x != nil {
  61. return x.Id
  62. }
  63. return ""
  64. }
  65. func (x *UserInfo) GetNickname() string {
  66. if x != nil {
  67. return x.Nickname
  68. }
  69. return ""
  70. }
  71. func (x *UserInfo) GetAvatarUrl() string {
  72. if x != nil {
  73. return x.AvatarUrl
  74. }
  75. return ""
  76. }
  77. func (x *UserInfo) GetPhone() string {
  78. if x != nil {
  79. return x.Phone
  80. }
  81. return ""
  82. }
  83. func (x *UserInfo) GetSex() int64 {
  84. if x != nil {
  85. return x.Sex
  86. }
  87. return 0
  88. }
  89. func (x *UserInfo) GetCredit() int64 {
  90. if x != nil {
  91. return x.Credit
  92. }
  93. return 0
  94. }
  95. type UpdateUserInformationRequest struct {
  96. state protoimpl.MessageState
  97. sizeCache protoimpl.SizeCache
  98. unknownFields protoimpl.UnknownFields
  99. Nickname string `protobuf:"bytes,1,opt,name=Nickname,proto3" json:"Nickname"`
  100. AvatarUrl string `protobuf:"bytes,2,opt,name=avatarUrl,proto3" json:"avatarUrl"`
  101. Sex int64 `protobuf:"varint,3,opt,name=sex,proto3" json:"sex"`
  102. }
  103. func (x *UpdateUserInformationRequest) Reset() {
  104. *x = UpdateUserInformationRequest{}
  105. if protoimpl.UnsafeEnabled {
  106. mi := &file_user_proto_msgTypes[1]
  107. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  108. ms.StoreMessageInfo(mi)
  109. }
  110. }
  111. func (x *UpdateUserInformationRequest) String() string {
  112. return protoimpl.X.MessageStringOf(x)
  113. }
  114. func (*UpdateUserInformationRequest) ProtoMessage() {}
  115. func (x *UpdateUserInformationRequest) ProtoReflect() protoreflect.Message {
  116. mi := &file_user_proto_msgTypes[1]
  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 UpdateUserInformationRequest.ProtoReflect.Descriptor instead.
  127. func (*UpdateUserInformationRequest) Descriptor() ([]byte, []int) {
  128. return file_user_proto_rawDescGZIP(), []int{1}
  129. }
  130. func (x *UpdateUserInformationRequest) GetNickname() string {
  131. if x != nil {
  132. return x.Nickname
  133. }
  134. return ""
  135. }
  136. func (x *UpdateUserInformationRequest) GetAvatarUrl() string {
  137. if x != nil {
  138. return x.AvatarUrl
  139. }
  140. return ""
  141. }
  142. func (x *UpdateUserInformationRequest) GetSex() int64 {
  143. if x != nil {
  144. return x.Sex
  145. }
  146. return 0
  147. }
  148. type SendPhoneCodeRequest struct {
  149. state protoimpl.MessageState
  150. sizeCache protoimpl.SizeCache
  151. unknownFields protoimpl.UnknownFields
  152. Phone string `protobuf:"bytes,1,opt,name=phone,proto3" json:"phone"`
  153. }
  154. func (x *SendPhoneCodeRequest) Reset() {
  155. *x = SendPhoneCodeRequest{}
  156. if protoimpl.UnsafeEnabled {
  157. mi := &file_user_proto_msgTypes[2]
  158. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  159. ms.StoreMessageInfo(mi)
  160. }
  161. }
  162. func (x *SendPhoneCodeRequest) String() string {
  163. return protoimpl.X.MessageStringOf(x)
  164. }
  165. func (*SendPhoneCodeRequest) ProtoMessage() {}
  166. func (x *SendPhoneCodeRequest) ProtoReflect() protoreflect.Message {
  167. mi := &file_user_proto_msgTypes[2]
  168. if protoimpl.UnsafeEnabled && x != nil {
  169. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  170. if ms.LoadMessageInfo() == nil {
  171. ms.StoreMessageInfo(mi)
  172. }
  173. return ms
  174. }
  175. return mi.MessageOf(x)
  176. }
  177. // Deprecated: Use SendPhoneCodeRequest.ProtoReflect.Descriptor instead.
  178. func (*SendPhoneCodeRequest) Descriptor() ([]byte, []int) {
  179. return file_user_proto_rawDescGZIP(), []int{2}
  180. }
  181. func (x *SendPhoneCodeRequest) GetPhone() string {
  182. if x != nil {
  183. return x.Phone
  184. }
  185. return ""
  186. }
  187. type CheckPhoneCodeRequest struct {
  188. state protoimpl.MessageState
  189. sizeCache protoimpl.SizeCache
  190. unknownFields protoimpl.UnknownFields
  191. Phone string `protobuf:"bytes,1,opt,name=phone,proto3" json:"phone"`
  192. Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code"`
  193. }
  194. func (x *CheckPhoneCodeRequest) Reset() {
  195. *x = CheckPhoneCodeRequest{}
  196. if protoimpl.UnsafeEnabled {
  197. mi := &file_user_proto_msgTypes[3]
  198. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  199. ms.StoreMessageInfo(mi)
  200. }
  201. }
  202. func (x *CheckPhoneCodeRequest) String() string {
  203. return protoimpl.X.MessageStringOf(x)
  204. }
  205. func (*CheckPhoneCodeRequest) ProtoMessage() {}
  206. func (x *CheckPhoneCodeRequest) ProtoReflect() protoreflect.Message {
  207. mi := &file_user_proto_msgTypes[3]
  208. if protoimpl.UnsafeEnabled && 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 CheckPhoneCodeRequest.ProtoReflect.Descriptor instead.
  218. func (*CheckPhoneCodeRequest) Descriptor() ([]byte, []int) {
  219. return file_user_proto_rawDescGZIP(), []int{3}
  220. }
  221. func (x *CheckPhoneCodeRequest) GetPhone() string {
  222. if x != nil {
  223. return x.Phone
  224. }
  225. return ""
  226. }
  227. func (x *CheckPhoneCodeRequest) GetCode() string {
  228. if x != nil {
  229. return x.Code
  230. }
  231. return ""
  232. }
  233. type DebugLoginRequest struct {
  234. state protoimpl.MessageState
  235. sizeCache protoimpl.SizeCache
  236. unknownFields protoimpl.UnknownFields
  237. UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId"`
  238. Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code"`
  239. }
  240. func (x *DebugLoginRequest) Reset() {
  241. *x = DebugLoginRequest{}
  242. if protoimpl.UnsafeEnabled {
  243. mi := &file_user_proto_msgTypes[4]
  244. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  245. ms.StoreMessageInfo(mi)
  246. }
  247. }
  248. func (x *DebugLoginRequest) String() string {
  249. return protoimpl.X.MessageStringOf(x)
  250. }
  251. func (*DebugLoginRequest) ProtoMessage() {}
  252. func (x *DebugLoginRequest) ProtoReflect() protoreflect.Message {
  253. mi := &file_user_proto_msgTypes[4]
  254. if protoimpl.UnsafeEnabled && x != nil {
  255. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  256. if ms.LoadMessageInfo() == nil {
  257. ms.StoreMessageInfo(mi)
  258. }
  259. return ms
  260. }
  261. return mi.MessageOf(x)
  262. }
  263. // Deprecated: Use DebugLoginRequest.ProtoReflect.Descriptor instead.
  264. func (*DebugLoginRequest) Descriptor() ([]byte, []int) {
  265. return file_user_proto_rawDescGZIP(), []int{4}
  266. }
  267. func (x *DebugLoginRequest) GetUserId() string {
  268. if x != nil {
  269. return x.UserId
  270. }
  271. return ""
  272. }
  273. func (x *DebugLoginRequest) GetCode() string {
  274. if x != nil {
  275. return x.Code
  276. }
  277. return ""
  278. }
  279. type LoginRequest struct {
  280. state protoimpl.MessageState
  281. sizeCache protoimpl.SizeCache
  282. unknownFields protoimpl.UnknownFields
  283. JsCode string `protobuf:"bytes,1,opt,name=jsCode,proto3" json:"jsCode"`
  284. }
  285. func (x *LoginRequest) Reset() {
  286. *x = LoginRequest{}
  287. if protoimpl.UnsafeEnabled {
  288. mi := &file_user_proto_msgTypes[5]
  289. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  290. ms.StoreMessageInfo(mi)
  291. }
  292. }
  293. func (x *LoginRequest) String() string {
  294. return protoimpl.X.MessageStringOf(x)
  295. }
  296. func (*LoginRequest) ProtoMessage() {}
  297. func (x *LoginRequest) ProtoReflect() protoreflect.Message {
  298. mi := &file_user_proto_msgTypes[5]
  299. if protoimpl.UnsafeEnabled && x != nil {
  300. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  301. if ms.LoadMessageInfo() == nil {
  302. ms.StoreMessageInfo(mi)
  303. }
  304. return ms
  305. }
  306. return mi.MessageOf(x)
  307. }
  308. // Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
  309. func (*LoginRequest) Descriptor() ([]byte, []int) {
  310. return file_user_proto_rawDescGZIP(), []int{5}
  311. }
  312. func (x *LoginRequest) GetJsCode() string {
  313. if x != nil {
  314. return x.JsCode
  315. }
  316. return ""
  317. }
  318. type LoginReply struct {
  319. state protoimpl.MessageState
  320. sizeCache protoimpl.SizeCache
  321. unknownFields protoimpl.UnknownFields
  322. Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token"`
  323. }
  324. func (x *LoginReply) Reset() {
  325. *x = LoginReply{}
  326. if protoimpl.UnsafeEnabled {
  327. mi := &file_user_proto_msgTypes[6]
  328. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  329. ms.StoreMessageInfo(mi)
  330. }
  331. }
  332. func (x *LoginReply) String() string {
  333. return protoimpl.X.MessageStringOf(x)
  334. }
  335. func (*LoginReply) ProtoMessage() {}
  336. func (x *LoginReply) ProtoReflect() protoreflect.Message {
  337. mi := &file_user_proto_msgTypes[6]
  338. if protoimpl.UnsafeEnabled && x != nil {
  339. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  340. if ms.LoadMessageInfo() == nil {
  341. ms.StoreMessageInfo(mi)
  342. }
  343. return ms
  344. }
  345. return mi.MessageOf(x)
  346. }
  347. // Deprecated: Use LoginReply.ProtoReflect.Descriptor instead.
  348. func (*LoginReply) Descriptor() ([]byte, []int) {
  349. return file_user_proto_rawDescGZIP(), []int{6}
  350. }
  351. func (x *LoginReply) GetToken() string {
  352. if x != nil {
  353. return x.Token
  354. }
  355. return ""
  356. }
  357. var File_user_proto protoreflect.FileDescriptor
  358. var file_user_proto_rawDesc = []byte{
  359. 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x61, 0x70,
  360. 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
  361. 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70,
  362. 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
  363. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  364. 0x6f, 0x22, 0x94, 0x01, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e,
  365. 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a,
  366. 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
  367. 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x76,
  368. 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61,
  369. 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e,
  370. 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x10,
  371. 0x0a, 0x03, 0x73, 0x65, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x78,
  372. 0x12, 0x16, 0x0a, 0x06, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03,
  373. 0x52, 0x06, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x22, 0x6a, 0x0a, 0x1c, 0x55, 0x70, 0x64, 0x61,
  374. 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f,
  375. 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x4e, 0x69, 0x63, 0x6b,
  376. 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x4e, 0x69, 0x63, 0x6b,
  377. 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72,
  378. 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55,
  379. 0x72, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52,
  380. 0x03, 0x73, 0x65, 0x78, 0x22, 0x2c, 0x0a, 0x14, 0x53, 0x65, 0x6e, 0x64, 0x50, 0x68, 0x6f, 0x6e,
  381. 0x65, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05,
  382. 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f,
  383. 0x6e, 0x65, 0x22, 0x41, 0x0a, 0x15, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x68, 0x6f, 0x6e, 0x65,
  384. 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x70,
  385. 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e,
  386. 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
  387. 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x3f, 0x0a, 0x11, 0x44, 0x65, 0x62, 0x75, 0x67, 0x4c, 0x6f,
  388. 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73,
  389. 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72,
  390. 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
  391. 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x26, 0x0a, 0x0c, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52,
  392. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6a, 0x73, 0x43, 0x6f, 0x64, 0x65,
  393. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6a, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x22, 0x22,
  394. 0x0a, 0x0a, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x14, 0x0a, 0x05,
  395. 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b,
  396. 0x65, 0x6e, 0x32, 0xe0, 0x04, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x5c, 0x0a, 0x0a, 0x44,
  397. 0x65, 0x62, 0x75, 0x67, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e,
  398. 0x75, 0x73, 0x65, 0x72, 0x2e, 0x44, 0x65, 0x62, 0x75, 0x67, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52,
  399. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65,
  400. 0x72, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x1b, 0x82, 0xd3,
  401. 0xe4, 0x93, 0x02, 0x15, 0x22, 0x10, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x6e,
  402. 0x2f, 0x64, 0x65, 0x62, 0x75, 0x67, 0x3a, 0x01, 0x2a, 0x12, 0x4c, 0x0a, 0x05, 0x4c, 0x6f, 0x67,
  403. 0x69, 0x6e, 0x12, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x4c, 0x6f,
  404. 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x61, 0x70, 0x69,
  405. 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79,
  406. 0x22, 0x15, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0f, 0x22, 0x0a, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6c,
  407. 0x6f, 0x67, 0x69, 0x6e, 0x3a, 0x01, 0x2a, 0x12, 0x80, 0x01, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61,
  408. 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f,
  409. 0x6e, 0x12, 0x26, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x70, 0x64,
  410. 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69,
  411. 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
  412. 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74,
  413. 0x79, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x22, 0x1c, 0x2f, 0x61, 0x70, 0x69, 0x2f,
  414. 0x75, 0x73, 0x65, 0x72, 0x2f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x69, 0x6e, 0x66, 0x6f,
  415. 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01, 0x2a, 0x12, 0x54, 0x0a, 0x0b, 0x47, 0x65,
  416. 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
  417. 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74,
  418. 0x79, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65,
  419. 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x19, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x22, 0x0e, 0x2f,
  420. 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x69, 0x6e, 0x66, 0x6f, 0x3a, 0x01, 0x2a,
  421. 0x12, 0x67, 0x0a, 0x0d, 0x53, 0x65, 0x6e, 0x64, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x43, 0x6f, 0x64,
  422. 0x65, 0x12, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x53, 0x65, 0x6e,
  423. 0x64, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  424. 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  425. 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02,
  426. 0x18, 0x22, 0x13, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x64,
  427. 0x65, 0x2f, 0x73, 0x65, 0x6e, 0x64, 0x3a, 0x01, 0x2a, 0x12, 0x6a, 0x0a, 0x0e, 0x43, 0x68, 0x65,
  428. 0x63, 0x6b, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1f, 0x2e, 0x61, 0x70,
  429. 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x68, 0x6f, 0x6e,
  430. 0x65, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67,
  431. 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45,
  432. 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x22, 0x14, 0x2f, 0x61,
  433. 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x2f, 0x63, 0x68, 0x65,
  434. 0x63, 0x6b, 0x3a, 0x01, 0x2a, 0x42, 0x3d, 0x0a, 0x08, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65,
  435. 0x72, 0x50, 0x01, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e,
  436. 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x77, 0x2d, 0x70, 0x72,
  437. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x3b,
  438. 0x75, 0x73, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  439. }
  440. var (
  441. file_user_proto_rawDescOnce sync.Once
  442. file_user_proto_rawDescData = file_user_proto_rawDesc
  443. )
  444. func file_user_proto_rawDescGZIP() []byte {
  445. file_user_proto_rawDescOnce.Do(func() {
  446. file_user_proto_rawDescData = protoimpl.X.CompressGZIP(file_user_proto_rawDescData)
  447. })
  448. return file_user_proto_rawDescData
  449. }
  450. var file_user_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
  451. var file_user_proto_goTypes = []interface{}{
  452. (*UserInfo)(nil), // 0: api.user.UserInfo
  453. (*UpdateUserInformationRequest)(nil), // 1: api.user.UpdateUserInformationRequest
  454. (*SendPhoneCodeRequest)(nil), // 2: api.user.SendPhoneCodeRequest
  455. (*CheckPhoneCodeRequest)(nil), // 3: api.user.CheckPhoneCodeRequest
  456. (*DebugLoginRequest)(nil), // 4: api.user.DebugLoginRequest
  457. (*LoginRequest)(nil), // 5: api.user.LoginRequest
  458. (*LoginReply)(nil), // 6: api.user.LoginReply
  459. (*emptypb.Empty)(nil), // 7: google.protobuf.Empty
  460. }
  461. var file_user_proto_depIdxs = []int32{
  462. 4, // 0: api.user.User.DebugLogin:input_type -> api.user.DebugLoginRequest
  463. 5, // 1: api.user.User.Login:input_type -> api.user.LoginRequest
  464. 1, // 2: api.user.User.UpdateUserInformation:input_type -> api.user.UpdateUserInformationRequest
  465. 7, // 3: api.user.User.GetUserInfo:input_type -> google.protobuf.Empty
  466. 2, // 4: api.user.User.SendPhoneCode:input_type -> api.user.SendPhoneCodeRequest
  467. 3, // 5: api.user.User.CheckPhoneCode:input_type -> api.user.CheckPhoneCodeRequest
  468. 6, // 6: api.user.User.DebugLogin:output_type -> api.user.LoginReply
  469. 6, // 7: api.user.User.Login:output_type -> api.user.LoginReply
  470. 7, // 8: api.user.User.UpdateUserInformation:output_type -> google.protobuf.Empty
  471. 0, // 9: api.user.User.GetUserInfo:output_type -> api.user.UserInfo
  472. 7, // 10: api.user.User.SendPhoneCode:output_type -> google.protobuf.Empty
  473. 7, // 11: api.user.User.CheckPhoneCode:output_type -> google.protobuf.Empty
  474. 6, // [6:12] is the sub-list for method output_type
  475. 0, // [0:6] is the sub-list for method input_type
  476. 0, // [0:0] is the sub-list for extension type_name
  477. 0, // [0:0] is the sub-list for extension extendee
  478. 0, // [0:0] is the sub-list for field type_name
  479. }
  480. func init() { file_user_proto_init() }
  481. func file_user_proto_init() {
  482. if File_user_proto != nil {
  483. return
  484. }
  485. if !protoimpl.UnsafeEnabled {
  486. file_user_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  487. switch v := v.(*UserInfo); i {
  488. case 0:
  489. return &v.state
  490. case 1:
  491. return &v.sizeCache
  492. case 2:
  493. return &v.unknownFields
  494. default:
  495. return nil
  496. }
  497. }
  498. file_user_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  499. switch v := v.(*UpdateUserInformationRequest); i {
  500. case 0:
  501. return &v.state
  502. case 1:
  503. return &v.sizeCache
  504. case 2:
  505. return &v.unknownFields
  506. default:
  507. return nil
  508. }
  509. }
  510. file_user_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  511. switch v := v.(*SendPhoneCodeRequest); i {
  512. case 0:
  513. return &v.state
  514. case 1:
  515. return &v.sizeCache
  516. case 2:
  517. return &v.unknownFields
  518. default:
  519. return nil
  520. }
  521. }
  522. file_user_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  523. switch v := v.(*CheckPhoneCodeRequest); i {
  524. case 0:
  525. return &v.state
  526. case 1:
  527. return &v.sizeCache
  528. case 2:
  529. return &v.unknownFields
  530. default:
  531. return nil
  532. }
  533. }
  534. file_user_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  535. switch v := v.(*DebugLoginRequest); i {
  536. case 0:
  537. return &v.state
  538. case 1:
  539. return &v.sizeCache
  540. case 2:
  541. return &v.unknownFields
  542. default:
  543. return nil
  544. }
  545. }
  546. file_user_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  547. switch v := v.(*LoginRequest); i {
  548. case 0:
  549. return &v.state
  550. case 1:
  551. return &v.sizeCache
  552. case 2:
  553. return &v.unknownFields
  554. default:
  555. return nil
  556. }
  557. }
  558. file_user_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  559. switch v := v.(*LoginReply); i {
  560. case 0:
  561. return &v.state
  562. case 1:
  563. return &v.sizeCache
  564. case 2:
  565. return &v.unknownFields
  566. default:
  567. return nil
  568. }
  569. }
  570. }
  571. type x struct{}
  572. out := protoimpl.TypeBuilder{
  573. File: protoimpl.DescBuilder{
  574. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  575. RawDescriptor: file_user_proto_rawDesc,
  576. NumEnums: 0,
  577. NumMessages: 7,
  578. NumExtensions: 0,
  579. NumServices: 1,
  580. },
  581. GoTypes: file_user_proto_goTypes,
  582. DependencyIndexes: file_user_proto_depIdxs,
  583. MessageInfos: file_user_proto_msgTypes,
  584. }.Build()
  585. File_user_proto = out.File
  586. file_user_proto_rawDesc = nil
  587. file_user_proto_goTypes = nil
  588. file_user_proto_depIdxs = nil
  589. }