user.pb.go 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666
  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 AuthorizationRequest 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 *AuthorizationRequest) Reset() {
  286. *x = AuthorizationRequest{}
  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 *AuthorizationRequest) String() string {
  294. return protoimpl.X.MessageStringOf(x)
  295. }
  296. func (*AuthorizationRequest) ProtoMessage() {}
  297. func (x *AuthorizationRequest) 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 AuthorizationRequest.ProtoReflect.Descriptor instead.
  309. func (*AuthorizationRequest) Descriptor() ([]byte, []int) {
  310. return file_user_proto_rawDescGZIP(), []int{5}
  311. }
  312. func (x *AuthorizationRequest) GetJsCode() string {
  313. if x != nil {
  314. return x.JsCode
  315. }
  316. return ""
  317. }
  318. type TokenReply 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 *TokenReply) Reset() {
  325. *x = TokenReply{}
  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 *TokenReply) String() string {
  333. return protoimpl.X.MessageStringOf(x)
  334. }
  335. func (*TokenReply) ProtoMessage() {}
  336. func (x *TokenReply) 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 TokenReply.ProtoReflect.Descriptor instead.
  348. func (*TokenReply) Descriptor() ([]byte, []int) {
  349. return file_user_proto_rawDescGZIP(), []int{6}
  350. }
  351. func (x *TokenReply) 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, 0x2e, 0x0a, 0x14, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72,
  392. 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16,
  393. 0x0a, 0x06, 0x6a, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
  394. 0x6a, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x22, 0x22, 0x0a, 0x0a, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52,
  395. 0x65, 0x70, 0x6c, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20,
  396. 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x32, 0x82, 0x05, 0x0a, 0x04, 0x55,
  397. 0x73, 0x65, 0x72, 0x12, 0x61, 0x0a, 0x0a, 0x44, 0x65, 0x62, 0x75, 0x67, 0x4c, 0x6f, 0x67, 0x69,
  398. 0x6e, 0x12, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x44, 0x65, 0x62,
  399. 0x75, 0x67, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14,
  400. 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52,
  401. 0x65, 0x70, 0x6c, 0x79, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x22, 0x15, 0x2f, 0x61,
  402. 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x2f, 0x64, 0x65,
  403. 0x62, 0x75, 0x67, 0x3a, 0x01, 0x2a, 0x12, 0x69, 0x0a, 0x0d, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72,
  404. 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73,
  405. 0x65, 0x72, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e,
  406. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73,
  407. 0x65, 0x72, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x22, 0x82,
  408. 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x22, 0x17, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72,
  409. 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01,
  410. 0x2a, 0x12, 0x80, 0x01, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72,
  411. 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x26, 0x2e, 0x61, 0x70,
  412. 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65,
  413. 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75,
  414. 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
  415. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x27, 0x82, 0xd3, 0xe4,
  416. 0x93, 0x02, 0x21, 0x22, 0x1c, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x75,
  417. 0x70, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x69, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f,
  418. 0x6e, 0x3a, 0x01, 0x2a, 0x12, 0x54, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49,
  419. 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
  420. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x12, 0x2e, 0x61, 0x70,
  421. 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x22,
  422. 0x19, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x22, 0x0e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73,
  423. 0x65, 0x72, 0x2f, 0x69, 0x6e, 0x66, 0x6f, 0x3a, 0x01, 0x2a, 0x12, 0x67, 0x0a, 0x0d, 0x53, 0x65,
  424. 0x6e, 0x64, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1e, 0x2e, 0x61, 0x70,
  425. 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x50, 0x68, 0x6f, 0x6e, 0x65,
  426. 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f,
  427. 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d,
  428. 0x70, 0x74, 0x79, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x22, 0x13, 0x2f, 0x61, 0x70,
  429. 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x2f, 0x73, 0x65, 0x6e, 0x64,
  430. 0x3a, 0x01, 0x2a, 0x12, 0x6a, 0x0a, 0x0e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x68, 0x6f, 0x6e,
  431. 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72,
  432. 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x52,
  433. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
  434. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1f,
  435. 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x22, 0x14, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65,
  436. 0x72, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x2f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x3a, 0x01, 0x2a, 0x42,
  437. 0x3d, 0x0a, 0x08, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x2f, 0x67,
  438. 0x69, 0x74, 0x2e, 0x69, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65,
  439. 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x77, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  440. 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x62, 0x06,
  441. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  442. }
  443. var (
  444. file_user_proto_rawDescOnce sync.Once
  445. file_user_proto_rawDescData = file_user_proto_rawDesc
  446. )
  447. func file_user_proto_rawDescGZIP() []byte {
  448. file_user_proto_rawDescOnce.Do(func() {
  449. file_user_proto_rawDescData = protoimpl.X.CompressGZIP(file_user_proto_rawDescData)
  450. })
  451. return file_user_proto_rawDescData
  452. }
  453. var file_user_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
  454. var file_user_proto_goTypes = []interface{}{
  455. (*UserInfo)(nil), // 0: api.user.UserInfo
  456. (*UpdateUserInformationRequest)(nil), // 1: api.user.UpdateUserInformationRequest
  457. (*SendPhoneCodeRequest)(nil), // 2: api.user.SendPhoneCodeRequest
  458. (*CheckPhoneCodeRequest)(nil), // 3: api.user.CheckPhoneCodeRequest
  459. (*DebugLoginRequest)(nil), // 4: api.user.DebugLoginRequest
  460. (*AuthorizationRequest)(nil), // 5: api.user.AuthorizationRequest
  461. (*TokenReply)(nil), // 6: api.user.TokenReply
  462. (*emptypb.Empty)(nil), // 7: google.protobuf.Empty
  463. }
  464. var file_user_proto_depIdxs = []int32{
  465. 4, // 0: api.user.User.DebugLogin:input_type -> api.user.DebugLoginRequest
  466. 5, // 1: api.user.User.Authorization:input_type -> api.user.AuthorizationRequest
  467. 1, // 2: api.user.User.UpdateUserInformation:input_type -> api.user.UpdateUserInformationRequest
  468. 7, // 3: api.user.User.GetUserInfo:input_type -> google.protobuf.Empty
  469. 2, // 4: api.user.User.SendPhoneCode:input_type -> api.user.SendPhoneCodeRequest
  470. 3, // 5: api.user.User.CheckPhoneCode:input_type -> api.user.CheckPhoneCodeRequest
  471. 6, // 6: api.user.User.DebugLogin:output_type -> api.user.TokenReply
  472. 6, // 7: api.user.User.Authorization:output_type -> api.user.TokenReply
  473. 7, // 8: api.user.User.UpdateUserInformation:output_type -> google.protobuf.Empty
  474. 0, // 9: api.user.User.GetUserInfo:output_type -> api.user.UserInfo
  475. 7, // 10: api.user.User.SendPhoneCode:output_type -> google.protobuf.Empty
  476. 7, // 11: api.user.User.CheckPhoneCode:output_type -> google.protobuf.Empty
  477. 6, // [6:12] is the sub-list for method output_type
  478. 0, // [0:6] is the sub-list for method input_type
  479. 0, // [0:0] is the sub-list for extension type_name
  480. 0, // [0:0] is the sub-list for extension extendee
  481. 0, // [0:0] is the sub-list for field type_name
  482. }
  483. func init() { file_user_proto_init() }
  484. func file_user_proto_init() {
  485. if File_user_proto != nil {
  486. return
  487. }
  488. if !protoimpl.UnsafeEnabled {
  489. file_user_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  490. switch v := v.(*UserInfo); i {
  491. case 0:
  492. return &v.state
  493. case 1:
  494. return &v.sizeCache
  495. case 2:
  496. return &v.unknownFields
  497. default:
  498. return nil
  499. }
  500. }
  501. file_user_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  502. switch v := v.(*UpdateUserInformationRequest); i {
  503. case 0:
  504. return &v.state
  505. case 1:
  506. return &v.sizeCache
  507. case 2:
  508. return &v.unknownFields
  509. default:
  510. return nil
  511. }
  512. }
  513. file_user_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  514. switch v := v.(*SendPhoneCodeRequest); i {
  515. case 0:
  516. return &v.state
  517. case 1:
  518. return &v.sizeCache
  519. case 2:
  520. return &v.unknownFields
  521. default:
  522. return nil
  523. }
  524. }
  525. file_user_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  526. switch v := v.(*CheckPhoneCodeRequest); i {
  527. case 0:
  528. return &v.state
  529. case 1:
  530. return &v.sizeCache
  531. case 2:
  532. return &v.unknownFields
  533. default:
  534. return nil
  535. }
  536. }
  537. file_user_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  538. switch v := v.(*DebugLoginRequest); i {
  539. case 0:
  540. return &v.state
  541. case 1:
  542. return &v.sizeCache
  543. case 2:
  544. return &v.unknownFields
  545. default:
  546. return nil
  547. }
  548. }
  549. file_user_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  550. switch v := v.(*AuthorizationRequest); i {
  551. case 0:
  552. return &v.state
  553. case 1:
  554. return &v.sizeCache
  555. case 2:
  556. return &v.unknownFields
  557. default:
  558. return nil
  559. }
  560. }
  561. file_user_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  562. switch v := v.(*TokenReply); i {
  563. case 0:
  564. return &v.state
  565. case 1:
  566. return &v.sizeCache
  567. case 2:
  568. return &v.unknownFields
  569. default:
  570. return nil
  571. }
  572. }
  573. }
  574. type x struct{}
  575. out := protoimpl.TypeBuilder{
  576. File: protoimpl.DescBuilder{
  577. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  578. RawDescriptor: file_user_proto_rawDesc,
  579. NumEnums: 0,
  580. NumMessages: 7,
  581. NumExtensions: 0,
  582. NumServices: 1,
  583. },
  584. GoTypes: file_user_proto_goTypes,
  585. DependencyIndexes: file_user_proto_depIdxs,
  586. MessageInfos: file_user_proto_msgTypes,
  587. }.Build()
  588. File_user_proto = out.File
  589. file_user_proto_rawDesc = nil
  590. file_user_proto_goTypes = nil
  591. file_user_proto_depIdxs = nil
  592. }