user.pb.go 25 KB

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