golang-im聊天
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

1402 linhas
45 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.28.1
  4. // protoc v3.20.0--rc1
  5. // source: business.ext.proto
  6. package pb
  7. import (
  8. context "context"
  9. "google.golang.org/grpc"
  10. "google.golang.org/grpc/codes"
  11. "google.golang.org/grpc/status"
  12. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  13. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  14. reflect "reflect"
  15. sync "sync"
  16. )
  17. const (
  18. // Verify that this generated code is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  20. // Verify that runtime/protoimpl is sufficiently up-to-date.
  21. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  22. )
  23. type Emoticon struct {
  24. state protoimpl.MessageState
  25. sizeCache protoimpl.SizeCache
  26. unknownFields protoimpl.UnknownFields
  27. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 名称
  28. ImgUrl string `protobuf:"bytes,2,opt,name=img_url,json=imgUrl,proto3" json:"img_url,omitempty"` // 图片地址
  29. Memo string `protobuf:"bytes,3,opt,name=memo,proto3" json:"memo,omitempty"` // 备注
  30. Sort int32 `protobuf:"varint,4,opt,name=sort,proto3" json:"sort,omitempty"` // 排序
  31. }
  32. func (x *Emoticon) Reset() {
  33. *x = Emoticon{}
  34. if protoimpl.UnsafeEnabled {
  35. mi := &file_business_ext_proto_msgTypes[0]
  36. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  37. ms.StoreMessageInfo(mi)
  38. }
  39. }
  40. func (x *Emoticon) String() string {
  41. return protoimpl.X.MessageStringOf(x)
  42. }
  43. func (*Emoticon) ProtoMessage() {}
  44. func (x *Emoticon) ProtoReflect() protoreflect.Message {
  45. mi := &file_business_ext_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 Emoticon.ProtoReflect.Descriptor instead.
  56. func (*Emoticon) Descriptor() ([]byte, []int) {
  57. return file_business_ext_proto_rawDescGZIP(), []int{0}
  58. }
  59. func (x *Emoticon) GetName() string {
  60. if x != nil {
  61. return x.Name
  62. }
  63. return ""
  64. }
  65. func (x *Emoticon) GetImgUrl() string {
  66. if x != nil {
  67. return x.ImgUrl
  68. }
  69. return ""
  70. }
  71. func (x *Emoticon) GetMemo() string {
  72. if x != nil {
  73. return x.Memo
  74. }
  75. return ""
  76. }
  77. func (x *Emoticon) GetSort() int32 {
  78. if x != nil {
  79. return x.Sort
  80. }
  81. return 0
  82. }
  83. type EmoticonListResp struct {
  84. state protoimpl.MessageState
  85. sizeCache protoimpl.SizeCache
  86. unknownFields protoimpl.UnknownFields
  87. Emoticons []*Emoticon `protobuf:"bytes,1,rep,name=emoticons,proto3" json:"emoticons,omitempty"`
  88. }
  89. func (x *EmoticonListResp) Reset() {
  90. *x = EmoticonListResp{}
  91. if protoimpl.UnsafeEnabled {
  92. mi := &file_business_ext_proto_msgTypes[1]
  93. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  94. ms.StoreMessageInfo(mi)
  95. }
  96. }
  97. func (x *EmoticonListResp) String() string {
  98. return protoimpl.X.MessageStringOf(x)
  99. }
  100. func (*EmoticonListResp) ProtoMessage() {}
  101. func (x *EmoticonListResp) ProtoReflect() protoreflect.Message {
  102. mi := &file_business_ext_proto_msgTypes[1]
  103. if protoimpl.UnsafeEnabled && x != nil {
  104. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  105. if ms.LoadMessageInfo() == nil {
  106. ms.StoreMessageInfo(mi)
  107. }
  108. return ms
  109. }
  110. return mi.MessageOf(x)
  111. }
  112. // Deprecated: Use EmoticonListResp.ProtoReflect.Descriptor instead.
  113. func (*EmoticonListResp) Descriptor() ([]byte, []int) {
  114. return file_business_ext_proto_rawDescGZIP(), []int{1}
  115. }
  116. func (x *EmoticonListResp) GetEmoticons() []*Emoticon {
  117. if x != nil {
  118. return x.Emoticons
  119. }
  120. return nil
  121. }
  122. type SignInReq struct {
  123. state protoimpl.MessageState
  124. sizeCache protoimpl.SizeCache
  125. unknownFields protoimpl.UnknownFields
  126. PhoneNumber string `protobuf:"bytes,1,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` // 手机号
  127. Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` // 验证码
  128. DeviceId int64 `protobuf:"varint,3,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // 设备id
  129. MasterId int64 `protobuf:"varint,4,opt,name=master_id,json=masterId,proto3" json:"master_id,omitempty"` // 站长id
  130. PushAlia string `protobuf:"bytes,5,opt,name=push_alia,json=pushAlia,proto3" json:"push_alia,omitempty"` // 极光推送-别名
  131. }
  132. func (x *SignInReq) Reset() {
  133. *x = SignInReq{}
  134. if protoimpl.UnsafeEnabled {
  135. mi := &file_business_ext_proto_msgTypes[2]
  136. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  137. ms.StoreMessageInfo(mi)
  138. }
  139. }
  140. func (x *SignInReq) String() string {
  141. return protoimpl.X.MessageStringOf(x)
  142. }
  143. func (*SignInReq) ProtoMessage() {}
  144. func (x *SignInReq) ProtoReflect() protoreflect.Message {
  145. mi := &file_business_ext_proto_msgTypes[2]
  146. if protoimpl.UnsafeEnabled && x != nil {
  147. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  148. if ms.LoadMessageInfo() == nil {
  149. ms.StoreMessageInfo(mi)
  150. }
  151. return ms
  152. }
  153. return mi.MessageOf(x)
  154. }
  155. // Deprecated: Use SignInReq.ProtoReflect.Descriptor instead.
  156. func (*SignInReq) Descriptor() ([]byte, []int) {
  157. return file_business_ext_proto_rawDescGZIP(), []int{2}
  158. }
  159. func (x *SignInReq) GetPhoneNumber() string {
  160. if x != nil {
  161. return x.PhoneNumber
  162. }
  163. return ""
  164. }
  165. func (x *SignInReq) GetCode() string {
  166. if x != nil {
  167. return x.Code
  168. }
  169. return ""
  170. }
  171. func (x *SignInReq) GetDeviceId() int64 {
  172. if x != nil {
  173. return x.DeviceId
  174. }
  175. return 0
  176. }
  177. func (x *SignInReq) GetMasterId() int64 {
  178. if x != nil {
  179. return x.MasterId
  180. }
  181. return 0
  182. }
  183. func (x *SignInReq) GetPushAlia() string {
  184. if x != nil {
  185. return x.PushAlia
  186. }
  187. return ""
  188. }
  189. type SignInResp struct {
  190. state protoimpl.MessageState
  191. sizeCache protoimpl.SizeCache
  192. unknownFields protoimpl.UnknownFields
  193. IsNew bool `protobuf:"varint,1,opt,name=is_new,json=isNew,proto3" json:"is_new,omitempty"` // 是否是新用户
  194. UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
  195. Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` // token
  196. MasterId int64 `protobuf:"varint,4,opt,name=master_id,json=masterId,proto3" json:"master_id,omitempty"` // 站长id
  197. }
  198. func (x *SignInResp) Reset() {
  199. *x = SignInResp{}
  200. if protoimpl.UnsafeEnabled {
  201. mi := &file_business_ext_proto_msgTypes[3]
  202. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  203. ms.StoreMessageInfo(mi)
  204. }
  205. }
  206. func (x *SignInResp) String() string {
  207. return protoimpl.X.MessageStringOf(x)
  208. }
  209. func (*SignInResp) ProtoMessage() {}
  210. func (x *SignInResp) ProtoReflect() protoreflect.Message {
  211. mi := &file_business_ext_proto_msgTypes[3]
  212. if protoimpl.UnsafeEnabled && x != nil {
  213. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  214. if ms.LoadMessageInfo() == nil {
  215. ms.StoreMessageInfo(mi)
  216. }
  217. return ms
  218. }
  219. return mi.MessageOf(x)
  220. }
  221. // Deprecated: Use SignInResp.ProtoReflect.Descriptor instead.
  222. func (*SignInResp) Descriptor() ([]byte, []int) {
  223. return file_business_ext_proto_rawDescGZIP(), []int{3}
  224. }
  225. func (x *SignInResp) GetIsNew() bool {
  226. if x != nil {
  227. return x.IsNew
  228. }
  229. return false
  230. }
  231. func (x *SignInResp) GetUserId() int64 {
  232. if x != nil {
  233. return x.UserId
  234. }
  235. return 0
  236. }
  237. func (x *SignInResp) GetToken() string {
  238. if x != nil {
  239. return x.Token
  240. }
  241. return ""
  242. }
  243. func (x *SignInResp) GetMasterId() int64 {
  244. if x != nil {
  245. return x.MasterId
  246. }
  247. return 0
  248. }
  249. type CloudUploadFileReq struct {
  250. state protoimpl.MessageState
  251. sizeCache protoimpl.SizeCache
  252. unknownFields protoimpl.UnknownFields
  253. Dir string `protobuf:"bytes,1,opt,name=dir,proto3" json:"dir,omitempty"` // 目录名
  254. FileName string `protobuf:"bytes,2,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` // 上传原文件名称
  255. FileSize string `protobuf:"bytes,3,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty"` // 文件大小
  256. }
  257. func (x *CloudUploadFileReq) Reset() {
  258. *x = CloudUploadFileReq{}
  259. if protoimpl.UnsafeEnabled {
  260. mi := &file_business_ext_proto_msgTypes[4]
  261. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  262. ms.StoreMessageInfo(mi)
  263. }
  264. }
  265. func (x *CloudUploadFileReq) String() string {
  266. return protoimpl.X.MessageStringOf(x)
  267. }
  268. func (*CloudUploadFileReq) ProtoMessage() {}
  269. func (x *CloudUploadFileReq) ProtoReflect() protoreflect.Message {
  270. mi := &file_business_ext_proto_msgTypes[4]
  271. if protoimpl.UnsafeEnabled && x != nil {
  272. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  273. if ms.LoadMessageInfo() == nil {
  274. ms.StoreMessageInfo(mi)
  275. }
  276. return ms
  277. }
  278. return mi.MessageOf(x)
  279. }
  280. // Deprecated: Use CloudUploadFileReq.ProtoReflect.Descriptor instead.
  281. func (*CloudUploadFileReq) Descriptor() ([]byte, []int) {
  282. return file_business_ext_proto_rawDescGZIP(), []int{4}
  283. }
  284. func (x *CloudUploadFileReq) GetDir() string {
  285. if x != nil {
  286. return x.Dir
  287. }
  288. return ""
  289. }
  290. func (x *CloudUploadFileReq) GetFileName() string {
  291. if x != nil {
  292. return x.FileName
  293. }
  294. return ""
  295. }
  296. func (x *CloudUploadFileReq) GetFileSize() string {
  297. if x != nil {
  298. return x.FileSize
  299. }
  300. return ""
  301. }
  302. type CloudUploadFileResp struct {
  303. state protoimpl.MessageState
  304. sizeCache protoimpl.SizeCache
  305. unknownFields protoimpl.UnknownFields
  306. Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` // 请求方式
  307. Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` // 域名
  308. Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` // key
  309. Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` // token
  310. }
  311. func (x *CloudUploadFileResp) Reset() {
  312. *x = CloudUploadFileResp{}
  313. if protoimpl.UnsafeEnabled {
  314. mi := &file_business_ext_proto_msgTypes[5]
  315. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  316. ms.StoreMessageInfo(mi)
  317. }
  318. }
  319. func (x *CloudUploadFileResp) String() string {
  320. return protoimpl.X.MessageStringOf(x)
  321. }
  322. func (*CloudUploadFileResp) ProtoMessage() {}
  323. func (x *CloudUploadFileResp) ProtoReflect() protoreflect.Message {
  324. mi := &file_business_ext_proto_msgTypes[5]
  325. if protoimpl.UnsafeEnabled && x != nil {
  326. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  327. if ms.LoadMessageInfo() == nil {
  328. ms.StoreMessageInfo(mi)
  329. }
  330. return ms
  331. }
  332. return mi.MessageOf(x)
  333. }
  334. // Deprecated: Use CloudUploadFileResp.ProtoReflect.Descriptor instead.
  335. func (*CloudUploadFileResp) Descriptor() ([]byte, []int) {
  336. return file_business_ext_proto_rawDescGZIP(), []int{5}
  337. }
  338. func (x *CloudUploadFileResp) GetMethod() string {
  339. if x != nil {
  340. return x.Method
  341. }
  342. return ""
  343. }
  344. func (x *CloudUploadFileResp) GetHost() string {
  345. if x != nil {
  346. return x.Host
  347. }
  348. return ""
  349. }
  350. func (x *CloudUploadFileResp) GetKey() string {
  351. if x != nil {
  352. return x.Key
  353. }
  354. return ""
  355. }
  356. func (x *CloudUploadFileResp) GetToken() string {
  357. if x != nil {
  358. return x.Token
  359. }
  360. return ""
  361. }
  362. type User struct {
  363. state protoimpl.MessageState
  364. sizeCache protoimpl.SizeCache
  365. unknownFields protoimpl.UnknownFields
  366. UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
  367. Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"` // 昵称
  368. Sex int32 `protobuf:"varint,3,opt,name=sex,proto3" json:"sex,omitempty"` // 性别
  369. AvatarUrl string `protobuf:"bytes,4,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` // 头像地址
  370. Extra string `protobuf:"bytes,5,opt,name=extra,proto3" json:"extra,omitempty"` // 附加字段
  371. CreateTime int64 `protobuf:"varint,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // 创建时间
  372. UpdateTime int64 `protobuf:"varint,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // 更新时间
  373. MasterId int64 `protobuf:"varint,8,opt,name=master_id,json=masterId,proto3" json:"master_id,omitempty"` // 站长id
  374. }
  375. func (x *User) Reset() {
  376. *x = User{}
  377. if protoimpl.UnsafeEnabled {
  378. mi := &file_business_ext_proto_msgTypes[6]
  379. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  380. ms.StoreMessageInfo(mi)
  381. }
  382. }
  383. func (x *User) String() string {
  384. return protoimpl.X.MessageStringOf(x)
  385. }
  386. func (*User) ProtoMessage() {}
  387. func (x *User) ProtoReflect() protoreflect.Message {
  388. mi := &file_business_ext_proto_msgTypes[6]
  389. if protoimpl.UnsafeEnabled && x != nil {
  390. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  391. if ms.LoadMessageInfo() == nil {
  392. ms.StoreMessageInfo(mi)
  393. }
  394. return ms
  395. }
  396. return mi.MessageOf(x)
  397. }
  398. // Deprecated: Use User.ProtoReflect.Descriptor instead.
  399. func (*User) Descriptor() ([]byte, []int) {
  400. return file_business_ext_proto_rawDescGZIP(), []int{6}
  401. }
  402. func (x *User) GetUserId() int64 {
  403. if x != nil {
  404. return x.UserId
  405. }
  406. return 0
  407. }
  408. func (x *User) GetNickname() string {
  409. if x != nil {
  410. return x.Nickname
  411. }
  412. return ""
  413. }
  414. func (x *User) GetSex() int32 {
  415. if x != nil {
  416. return x.Sex
  417. }
  418. return 0
  419. }
  420. func (x *User) GetAvatarUrl() string {
  421. if x != nil {
  422. return x.AvatarUrl
  423. }
  424. return ""
  425. }
  426. func (x *User) GetExtra() string {
  427. if x != nil {
  428. return x.Extra
  429. }
  430. return ""
  431. }
  432. func (x *User) GetCreateTime() int64 {
  433. if x != nil {
  434. return x.CreateTime
  435. }
  436. return 0
  437. }
  438. func (x *User) GetUpdateTime() int64 {
  439. if x != nil {
  440. return x.UpdateTime
  441. }
  442. return 0
  443. }
  444. func (x *User) GetMasterId() int64 {
  445. if x != nil {
  446. return x.MasterId
  447. }
  448. return 0
  449. }
  450. type GetUserReq struct {
  451. state protoimpl.MessageState
  452. sizeCache protoimpl.SizeCache
  453. unknownFields protoimpl.UnknownFields
  454. UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
  455. }
  456. func (x *GetUserReq) Reset() {
  457. *x = GetUserReq{}
  458. if protoimpl.UnsafeEnabled {
  459. mi := &file_business_ext_proto_msgTypes[7]
  460. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  461. ms.StoreMessageInfo(mi)
  462. }
  463. }
  464. func (x *GetUserReq) String() string {
  465. return protoimpl.X.MessageStringOf(x)
  466. }
  467. func (*GetUserReq) ProtoMessage() {}
  468. func (x *GetUserReq) ProtoReflect() protoreflect.Message {
  469. mi := &file_business_ext_proto_msgTypes[7]
  470. if protoimpl.UnsafeEnabled && x != nil {
  471. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  472. if ms.LoadMessageInfo() == nil {
  473. ms.StoreMessageInfo(mi)
  474. }
  475. return ms
  476. }
  477. return mi.MessageOf(x)
  478. }
  479. // Deprecated: Use GetUserReq.ProtoReflect.Descriptor instead.
  480. func (*GetUserReq) Descriptor() ([]byte, []int) {
  481. return file_business_ext_proto_rawDescGZIP(), []int{7}
  482. }
  483. func (x *GetUserReq) GetUserId() int64 {
  484. if x != nil {
  485. return x.UserId
  486. }
  487. return 0
  488. }
  489. type GetUserResp struct {
  490. state protoimpl.MessageState
  491. sizeCache protoimpl.SizeCache
  492. unknownFields protoimpl.UnknownFields
  493. User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // 用户信息
  494. }
  495. func (x *GetUserResp) Reset() {
  496. *x = GetUserResp{}
  497. if protoimpl.UnsafeEnabled {
  498. mi := &file_business_ext_proto_msgTypes[8]
  499. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  500. ms.StoreMessageInfo(mi)
  501. }
  502. }
  503. func (x *GetUserResp) String() string {
  504. return protoimpl.X.MessageStringOf(x)
  505. }
  506. func (*GetUserResp) ProtoMessage() {}
  507. func (x *GetUserResp) ProtoReflect() protoreflect.Message {
  508. mi := &file_business_ext_proto_msgTypes[8]
  509. if protoimpl.UnsafeEnabled && x != nil {
  510. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  511. if ms.LoadMessageInfo() == nil {
  512. ms.StoreMessageInfo(mi)
  513. }
  514. return ms
  515. }
  516. return mi.MessageOf(x)
  517. }
  518. // Deprecated: Use GetUserResp.ProtoReflect.Descriptor instead.
  519. func (*GetUserResp) Descriptor() ([]byte, []int) {
  520. return file_business_ext_proto_rawDescGZIP(), []int{8}
  521. }
  522. func (x *GetUserResp) GetUser() *User {
  523. if x != nil {
  524. return x.User
  525. }
  526. return nil
  527. }
  528. type UpdateUserReq struct {
  529. state protoimpl.MessageState
  530. sizeCache protoimpl.SizeCache
  531. unknownFields protoimpl.UnknownFields
  532. Nickname string `protobuf:"bytes,1,opt,name=nickname,proto3" json:"nickname,omitempty"` // 昵称
  533. Sex int32 `protobuf:"varint,2,opt,name=sex,proto3" json:"sex,omitempty"` // 性别
  534. AvatarUrl string `protobuf:"bytes,3,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` // 头像地址
  535. Extra string `protobuf:"bytes,4,opt,name=extra,proto3" json:"extra,omitempty"` // 附加字段
  536. }
  537. func (x *UpdateUserReq) Reset() {
  538. *x = UpdateUserReq{}
  539. if protoimpl.UnsafeEnabled {
  540. mi := &file_business_ext_proto_msgTypes[9]
  541. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  542. ms.StoreMessageInfo(mi)
  543. }
  544. }
  545. func (x *UpdateUserReq) String() string {
  546. return protoimpl.X.MessageStringOf(x)
  547. }
  548. func (*UpdateUserReq) ProtoMessage() {}
  549. func (x *UpdateUserReq) ProtoReflect() protoreflect.Message {
  550. mi := &file_business_ext_proto_msgTypes[9]
  551. if protoimpl.UnsafeEnabled && x != nil {
  552. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  553. if ms.LoadMessageInfo() == nil {
  554. ms.StoreMessageInfo(mi)
  555. }
  556. return ms
  557. }
  558. return mi.MessageOf(x)
  559. }
  560. // Deprecated: Use UpdateUserReq.ProtoReflect.Descriptor instead.
  561. func (*UpdateUserReq) Descriptor() ([]byte, []int) {
  562. return file_business_ext_proto_rawDescGZIP(), []int{9}
  563. }
  564. func (x *UpdateUserReq) GetNickname() string {
  565. if x != nil {
  566. return x.Nickname
  567. }
  568. return ""
  569. }
  570. func (x *UpdateUserReq) GetSex() int32 {
  571. if x != nil {
  572. return x.Sex
  573. }
  574. return 0
  575. }
  576. func (x *UpdateUserReq) GetAvatarUrl() string {
  577. if x != nil {
  578. return x.AvatarUrl
  579. }
  580. return ""
  581. }
  582. func (x *UpdateUserReq) GetExtra() string {
  583. if x != nil {
  584. return x.Extra
  585. }
  586. return ""
  587. }
  588. type SearchUserReq struct {
  589. state protoimpl.MessageState
  590. sizeCache protoimpl.SizeCache
  591. unknownFields protoimpl.UnknownFields
  592. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  593. MasterId int64 `protobuf:"varint,2,opt,name=master_id,json=masterId,proto3" json:"master_id,omitempty"`
  594. }
  595. func (x *SearchUserReq) Reset() {
  596. *x = SearchUserReq{}
  597. if protoimpl.UnsafeEnabled {
  598. mi := &file_business_ext_proto_msgTypes[10]
  599. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  600. ms.StoreMessageInfo(mi)
  601. }
  602. }
  603. func (x *SearchUserReq) String() string {
  604. return protoimpl.X.MessageStringOf(x)
  605. }
  606. func (*SearchUserReq) ProtoMessage() {}
  607. func (x *SearchUserReq) ProtoReflect() protoreflect.Message {
  608. mi := &file_business_ext_proto_msgTypes[10]
  609. if protoimpl.UnsafeEnabled && x != nil {
  610. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  611. if ms.LoadMessageInfo() == nil {
  612. ms.StoreMessageInfo(mi)
  613. }
  614. return ms
  615. }
  616. return mi.MessageOf(x)
  617. }
  618. // Deprecated: Use SearchUserReq.ProtoReflect.Descriptor instead.
  619. func (*SearchUserReq) Descriptor() ([]byte, []int) {
  620. return file_business_ext_proto_rawDescGZIP(), []int{10}
  621. }
  622. func (x *SearchUserReq) GetKey() string {
  623. if x != nil {
  624. return x.Key
  625. }
  626. return ""
  627. }
  628. func (x *SearchUserReq) GetMasterId() int64 {
  629. if x != nil {
  630. return x.MasterId
  631. }
  632. return 0
  633. }
  634. type SearchUserResp struct {
  635. state protoimpl.MessageState
  636. sizeCache protoimpl.SizeCache
  637. unknownFields protoimpl.UnknownFields
  638. Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
  639. }
  640. func (x *SearchUserResp) Reset() {
  641. *x = SearchUserResp{}
  642. if protoimpl.UnsafeEnabled {
  643. mi := &file_business_ext_proto_msgTypes[11]
  644. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  645. ms.StoreMessageInfo(mi)
  646. }
  647. }
  648. func (x *SearchUserResp) String() string {
  649. return protoimpl.X.MessageStringOf(x)
  650. }
  651. func (*SearchUserResp) ProtoMessage() {}
  652. func (x *SearchUserResp) ProtoReflect() protoreflect.Message {
  653. mi := &file_business_ext_proto_msgTypes[11]
  654. if protoimpl.UnsafeEnabled && x != nil {
  655. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  656. if ms.LoadMessageInfo() == nil {
  657. ms.StoreMessageInfo(mi)
  658. }
  659. return ms
  660. }
  661. return mi.MessageOf(x)
  662. }
  663. // Deprecated: Use SearchUserResp.ProtoReflect.Descriptor instead.
  664. func (*SearchUserResp) Descriptor() ([]byte, []int) {
  665. return file_business_ext_proto_rawDescGZIP(), []int{11}
  666. }
  667. func (x *SearchUserResp) GetUsers() []*User {
  668. if x != nil {
  669. return x.Users
  670. }
  671. return nil
  672. }
  673. var File_business_ext_proto protoreflect.FileDescriptor
  674. var file_business_ext_proto_rawDesc = []byte{
  675. 0x0a, 0x12, 0x62, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x2e, 0x65, 0x78, 0x74, 0x2e, 0x70,
  676. 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x10, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  677. 0x2e, 0x65, 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5f, 0x0a, 0x08, 0x45, 0x6d,
  678. 0x6f, 0x74, 0x69, 0x63, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
  679. 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x6d,
  680. 0x67, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x6d, 0x67,
  681. 0x55, 0x72, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28,
  682. 0x09, 0x52, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x6f, 0x72, 0x74, 0x18,
  683. 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73, 0x6f, 0x72, 0x74, 0x22, 0x3e, 0x0a, 0x10, 0x45,
  684. 0x6d, 0x6f, 0x74, 0x69, 0x63, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12,
  685. 0x2a, 0x0a, 0x09, 0x65, 0x6d, 0x6f, 0x74, 0x69, 0x63, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03,
  686. 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x6f, 0x74, 0x69, 0x63, 0x6f, 0x6e,
  687. 0x52, 0x09, 0x65, 0x6d, 0x6f, 0x74, 0x69, 0x63, 0x6f, 0x6e, 0x73, 0x22, 0x99, 0x01, 0x0a, 0x09,
  688. 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x68, 0x6f,
  689. 0x6e, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  690. 0x0b, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04,
  691. 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65,
  692. 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20,
  693. 0x01, 0x28, 0x03, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a,
  694. 0x09, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03,
  695. 0x52, 0x08, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x75,
  696. 0x73, 0x68, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70,
  697. 0x75, 0x73, 0x68, 0x41, 0x6c, 0x69, 0x61, 0x22, 0x6f, 0x0a, 0x0a, 0x53, 0x69, 0x67, 0x6e, 0x49,
  698. 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x15, 0x0a, 0x06, 0x69, 0x73, 0x5f, 0x6e, 0x65, 0x77, 0x18,
  699. 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x69, 0x73, 0x4e, 0x65, 0x77, 0x12, 0x17, 0x0a, 0x07,
  700. 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75,
  701. 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03,
  702. 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6d,
  703. 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08,
  704. 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x22, 0x60, 0x0a, 0x12, 0x43, 0x6c, 0x6f, 0x75,
  705. 0x64, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x12, 0x10,
  706. 0x0a, 0x03, 0x64, 0x69, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x69, 0x72,
  707. 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20,
  708. 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a,
  709. 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
  710. 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x69, 0x0a, 0x13, 0x43, 0x6c,
  711. 0x6f, 0x75, 0x64, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73,
  712. 0x70, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
  713. 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73,
  714. 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x10, 0x0a,
  715. 0x03, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,
  716. 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
  717. 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xe1, 0x01, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x17,
  718. 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
  719. 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e,
  720. 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e,
  721. 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05,
  722. 0x52, 0x03, 0x73, 0x65, 0x78, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x5f,
  723. 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61,
  724. 0x72, 0x55, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x18, 0x05, 0x20,
  725. 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x72,
  726. 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52,
  727. 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x75,
  728. 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03,
  729. 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09,
  730. 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52,
  731. 0x08, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x22, 0x25, 0x0a, 0x0a, 0x47, 0x65, 0x74,
  732. 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f,
  733. 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64,
  734. 0x22, 0x2b, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12,
  735. 0x1c, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e,
  736. 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x72, 0x0a,
  737. 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x1a,
  738. 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  739. 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65,
  740. 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x73, 0x65, 0x78, 0x12, 0x1d, 0x0a, 0x0a,
  741. 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
  742. 0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x65,
  743. 0x78, 0x74, 0x72, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x78, 0x74, 0x72,
  744. 0x61, 0x22, 0x3e, 0x0a, 0x0d, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x55, 0x73, 0x65, 0x72, 0x52,
  745. 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  746. 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69,
  747. 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x49,
  748. 0x64, 0x22, 0x30, 0x0a, 0x0e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x55, 0x73, 0x65, 0x72, 0x52,
  749. 0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03,
  750. 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x05, 0x75, 0x73,
  751. 0x65, 0x72, 0x73, 0x32, 0xb8, 0x02, 0x0a, 0x0b, 0x42, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73,
  752. 0x45, 0x78, 0x74, 0x12, 0x27, 0x0a, 0x06, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x12, 0x0d, 0x2e,
  753. 0x70, 0x62, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x70,
  754. 0x62, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2a, 0x0a, 0x07,
  755. 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x12, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74,
  756. 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74,
  757. 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2a, 0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61,
  758. 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61,
  759. 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45,
  760. 0x6d, 0x70, 0x74, 0x79, 0x12, 0x33, 0x0a, 0x0a, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x55, 0x73,
  761. 0x65, 0x72, 0x12, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x55, 0x73,
  762. 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63,
  763. 0x68, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x42, 0x0a, 0x0f, 0x43, 0x6c, 0x6f,
  764. 0x75, 0x64, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x16, 0x2e, 0x70,
  765. 0x62, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c,
  766. 0x65, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x55,
  767. 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2f, 0x0a,
  768. 0x0c, 0x45, 0x6d, 0x6f, 0x74, 0x69, 0x63, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x09, 0x2e,
  769. 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d,
  770. 0x6f, 0x74, 0x69, 0x63, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x42, 0x0d,
  771. 0x5a, 0x0b, 0x67, 0x69, 0x6d, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x62, 0x2f, 0x62, 0x06, 0x70,
  772. 0x72, 0x6f, 0x74, 0x6f, 0x33,
  773. }
  774. var (
  775. file_business_ext_proto_rawDescOnce sync.Once
  776. file_business_ext_proto_rawDescData = file_business_ext_proto_rawDesc
  777. )
  778. func file_business_ext_proto_rawDescGZIP() []byte {
  779. file_business_ext_proto_rawDescOnce.Do(func() {
  780. file_business_ext_proto_rawDescData = protoimpl.X.CompressGZIP(file_business_ext_proto_rawDescData)
  781. })
  782. return file_business_ext_proto_rawDescData
  783. }
  784. var file_business_ext_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
  785. var file_business_ext_proto_goTypes = []interface{}{
  786. (*Emoticon)(nil), // 0: pb.Emoticon
  787. (*EmoticonListResp)(nil), // 1: pb.EmoticonListResp
  788. (*SignInReq)(nil), // 2: pb.SignInReq
  789. (*SignInResp)(nil), // 3: pb.SignInResp
  790. (*CloudUploadFileReq)(nil), // 4: pb.CloudUploadFileReq
  791. (*CloudUploadFileResp)(nil), // 5: pb.CloudUploadFileResp
  792. (*User)(nil), // 6: pb.User
  793. (*GetUserReq)(nil), // 7: pb.GetUserReq
  794. (*GetUserResp)(nil), // 8: pb.GetUserResp
  795. (*UpdateUserReq)(nil), // 9: pb.UpdateUserReq
  796. (*SearchUserReq)(nil), // 10: pb.SearchUserReq
  797. (*SearchUserResp)(nil), // 11: pb.SearchUserResp
  798. (*Empty)(nil), // 12: pb.Empty
  799. }
  800. var file_business_ext_proto_depIdxs = []int32{
  801. 0, // 0: pb.EmoticonListResp.emoticons:type_name -> pb.Emoticon
  802. 6, // 1: pb.GetUserResp.user:type_name -> pb.User
  803. 6, // 2: pb.SearchUserResp.users:type_name -> pb.User
  804. 2, // 3: pb.BusinessExt.SignIn:input_type -> pb.SignInReq
  805. 7, // 4: pb.BusinessExt.GetUser:input_type -> pb.GetUserReq
  806. 9, // 5: pb.BusinessExt.UpdateUser:input_type -> pb.UpdateUserReq
  807. 10, // 6: pb.BusinessExt.SearchUser:input_type -> pb.SearchUserReq
  808. 4, // 7: pb.BusinessExt.CloudUploadFile:input_type -> pb.CloudUploadFileReq
  809. 12, // 8: pb.BusinessExt.EmoticonList:input_type -> pb.Empty
  810. 3, // 9: pb.BusinessExt.SignIn:output_type -> pb.SignInResp
  811. 8, // 10: pb.BusinessExt.GetUser:output_type -> pb.GetUserResp
  812. 12, // 11: pb.BusinessExt.UpdateUser:output_type -> pb.Empty
  813. 11, // 12: pb.BusinessExt.SearchUser:output_type -> pb.SearchUserResp
  814. 5, // 13: pb.BusinessExt.CloudUploadFile:output_type -> pb.CloudUploadFileResp
  815. 1, // 14: pb.BusinessExt.EmoticonList:output_type -> pb.EmoticonListResp
  816. 9, // [9:15] is the sub-list for method output_type
  817. 3, // [3:9] is the sub-list for method input_type
  818. 3, // [3:3] is the sub-list for extension type_name
  819. 3, // [3:3] is the sub-list for extension extendee
  820. 0, // [0:3] is the sub-list for field type_name
  821. }
  822. func init() { file_business_ext_proto_init() }
  823. func file_business_ext_proto_init() {
  824. if File_business_ext_proto != nil {
  825. return
  826. }
  827. file_common_ext_proto_init()
  828. if !protoimpl.UnsafeEnabled {
  829. file_business_ext_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  830. switch v := v.(*Emoticon); i {
  831. case 0:
  832. return &v.state
  833. case 1:
  834. return &v.sizeCache
  835. case 2:
  836. return &v.unknownFields
  837. default:
  838. return nil
  839. }
  840. }
  841. file_business_ext_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  842. switch v := v.(*EmoticonListResp); i {
  843. case 0:
  844. return &v.state
  845. case 1:
  846. return &v.sizeCache
  847. case 2:
  848. return &v.unknownFields
  849. default:
  850. return nil
  851. }
  852. }
  853. file_business_ext_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  854. switch v := v.(*SignInReq); i {
  855. case 0:
  856. return &v.state
  857. case 1:
  858. return &v.sizeCache
  859. case 2:
  860. return &v.unknownFields
  861. default:
  862. return nil
  863. }
  864. }
  865. file_business_ext_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  866. switch v := v.(*SignInResp); i {
  867. case 0:
  868. return &v.state
  869. case 1:
  870. return &v.sizeCache
  871. case 2:
  872. return &v.unknownFields
  873. default:
  874. return nil
  875. }
  876. }
  877. file_business_ext_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  878. switch v := v.(*CloudUploadFileReq); i {
  879. case 0:
  880. return &v.state
  881. case 1:
  882. return &v.sizeCache
  883. case 2:
  884. return &v.unknownFields
  885. default:
  886. return nil
  887. }
  888. }
  889. file_business_ext_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  890. switch v := v.(*CloudUploadFileResp); i {
  891. case 0:
  892. return &v.state
  893. case 1:
  894. return &v.sizeCache
  895. case 2:
  896. return &v.unknownFields
  897. default:
  898. return nil
  899. }
  900. }
  901. file_business_ext_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  902. switch v := v.(*User); i {
  903. case 0:
  904. return &v.state
  905. case 1:
  906. return &v.sizeCache
  907. case 2:
  908. return &v.unknownFields
  909. default:
  910. return nil
  911. }
  912. }
  913. file_business_ext_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  914. switch v := v.(*GetUserReq); i {
  915. case 0:
  916. return &v.state
  917. case 1:
  918. return &v.sizeCache
  919. case 2:
  920. return &v.unknownFields
  921. default:
  922. return nil
  923. }
  924. }
  925. file_business_ext_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  926. switch v := v.(*GetUserResp); i {
  927. case 0:
  928. return &v.state
  929. case 1:
  930. return &v.sizeCache
  931. case 2:
  932. return &v.unknownFields
  933. default:
  934. return nil
  935. }
  936. }
  937. file_business_ext_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  938. switch v := v.(*UpdateUserReq); i {
  939. case 0:
  940. return &v.state
  941. case 1:
  942. return &v.sizeCache
  943. case 2:
  944. return &v.unknownFields
  945. default:
  946. return nil
  947. }
  948. }
  949. file_business_ext_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  950. switch v := v.(*SearchUserReq); i {
  951. case 0:
  952. return &v.state
  953. case 1:
  954. return &v.sizeCache
  955. case 2:
  956. return &v.unknownFields
  957. default:
  958. return nil
  959. }
  960. }
  961. file_business_ext_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
  962. switch v := v.(*SearchUserResp); i {
  963. case 0:
  964. return &v.state
  965. case 1:
  966. return &v.sizeCache
  967. case 2:
  968. return &v.unknownFields
  969. default:
  970. return nil
  971. }
  972. }
  973. }
  974. type x struct{}
  975. out := protoimpl.TypeBuilder{
  976. File: protoimpl.DescBuilder{
  977. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  978. RawDescriptor: file_business_ext_proto_rawDesc,
  979. NumEnums: 0,
  980. NumMessages: 12,
  981. NumExtensions: 0,
  982. NumServices: 1,
  983. },
  984. GoTypes: file_business_ext_proto_goTypes,
  985. DependencyIndexes: file_business_ext_proto_depIdxs,
  986. MessageInfos: file_business_ext_proto_msgTypes,
  987. }.Build()
  988. File_business_ext_proto = out.File
  989. file_business_ext_proto_rawDesc = nil
  990. file_business_ext_proto_goTypes = nil
  991. file_business_ext_proto_depIdxs = nil
  992. }
  993. // Reference imports to suppress errors if they are not otherwise used.
  994. var _ context.Context
  995. var _ grpc.ClientConnInterface
  996. // This is a compile-time assertion to ensure that this generated file
  997. // is compatible with the grpc package it is being compiled against.
  998. // Requires gRPC-Go v1.32.0 or later.
  999. const _ = grpc.SupportPackageIsVersion7
  1000. // BusinessExtClient is the client API for BusinessExt service.
  1001. //
  1002. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
  1003. type BusinessExtClient interface {
  1004. // 登录
  1005. SignIn(ctx context.Context, in *SignInReq, opts ...grpc.CallOption) (*SignInResp, error)
  1006. // 获取用户信息
  1007. GetUser(ctx context.Context, in *GetUserReq, opts ...grpc.CallOption) (*GetUserResp, error)
  1008. // 更新用户信息
  1009. UpdateUser(ctx context.Context, in *UpdateUserReq, opts ...grpc.CallOption) (*Empty, error)
  1010. // 搜索用户(这里简单数据库实现,生产环境建议使用ES)
  1011. SearchUser(ctx context.Context, in *SearchUserReq, opts ...grpc.CallOption) (*SearchUserResp, error)
  1012. // 上传文件至云端
  1013. CloudUploadFile(ctx context.Context, in *CloudUploadFileReq, opts ...grpc.CallOption) (*CloudUploadFileResp, error)
  1014. // 获取表情
  1015. EmoticonList(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*EmoticonListResp, error)
  1016. }
  1017. type businessExtClient struct {
  1018. cc grpc.ClientConnInterface
  1019. }
  1020. func NewBusinessExtClient(cc grpc.ClientConnInterface) BusinessExtClient {
  1021. return &businessExtClient{cc}
  1022. }
  1023. func (c *businessExtClient) SignIn(ctx context.Context, in *SignInReq, opts ...grpc.CallOption) (*SignInResp, error) {
  1024. out := new(SignInResp)
  1025. err := c.cc.Invoke(ctx, "/pb.BusinessExt/SignIn", in, out, opts...)
  1026. if err != nil {
  1027. return nil, err
  1028. }
  1029. return out, nil
  1030. }
  1031. func (c *businessExtClient) GetUser(ctx context.Context, in *GetUserReq, opts ...grpc.CallOption) (*GetUserResp, error) {
  1032. out := new(GetUserResp)
  1033. err := c.cc.Invoke(ctx, "/pb.BusinessExt/GetUser", in, out, opts...)
  1034. if err != nil {
  1035. return nil, err
  1036. }
  1037. return out, nil
  1038. }
  1039. func (c *businessExtClient) UpdateUser(ctx context.Context, in *UpdateUserReq, opts ...grpc.CallOption) (*Empty, error) {
  1040. out := new(Empty)
  1041. err := c.cc.Invoke(ctx, "/pb.BusinessExt/UpdateUser", in, out, opts...)
  1042. if err != nil {
  1043. return nil, err
  1044. }
  1045. return out, nil
  1046. }
  1047. func (c *businessExtClient) SearchUser(ctx context.Context, in *SearchUserReq, opts ...grpc.CallOption) (*SearchUserResp, error) {
  1048. out := new(SearchUserResp)
  1049. err := c.cc.Invoke(ctx, "/pb.BusinessExt/SearchUser", in, out, opts...)
  1050. if err != nil {
  1051. return nil, err
  1052. }
  1053. return out, nil
  1054. }
  1055. func (c *businessExtClient) CloudUploadFile(ctx context.Context, in *CloudUploadFileReq, opts ...grpc.CallOption) (*CloudUploadFileResp, error) {
  1056. out := new(CloudUploadFileResp)
  1057. err := c.cc.Invoke(ctx, "/pb.BusinessExt/CloudUploadFile", in, out, opts...)
  1058. if err != nil {
  1059. return nil, err
  1060. }
  1061. return out, nil
  1062. }
  1063. func (c *businessExtClient) EmoticonList(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*EmoticonListResp, error) {
  1064. out := new(EmoticonListResp)
  1065. err := c.cc.Invoke(ctx, "/pb.BusinessExt/EmoticonList", in, out, opts...)
  1066. if err != nil {
  1067. return nil, err
  1068. }
  1069. return out, nil
  1070. }
  1071. // BusinessExtServer is the server API for BusinessExt service.
  1072. // All implementations must embed UnimplementedBusinessExtServer
  1073. // for forward compatibility
  1074. type BusinessExtServer interface {
  1075. // 登录
  1076. SignIn(context.Context, *SignInReq) (*SignInResp, error)
  1077. // 获取用户信息
  1078. GetUser(context.Context, *GetUserReq) (*GetUserResp, error)
  1079. // 更新用户信息
  1080. UpdateUser(context.Context, *UpdateUserReq) (*Empty, error)
  1081. // 搜索用户(这里简单数据库实现,生产环境建议使用ES)
  1082. SearchUser(context.Context, *SearchUserReq) (*SearchUserResp, error)
  1083. // 上传文件至云端
  1084. CloudUploadFile(context.Context, *CloudUploadFileReq) (*CloudUploadFileResp, error)
  1085. // 获取表情
  1086. EmoticonList(context.Context, *Empty) (*EmoticonListResp, error)
  1087. }
  1088. // UnimplementedBusinessExtServer must be embedded to have forward compatible implementations.
  1089. type UnimplementedBusinessExtServer struct {
  1090. }
  1091. func (UnimplementedBusinessExtServer) SignIn(context.Context, *SignInReq) (*SignInResp, error) {
  1092. return nil, status.Errorf(codes.Unimplemented, "method SignIn not implemented")
  1093. }
  1094. func (UnimplementedBusinessExtServer) GetUser(context.Context, *GetUserReq) (*GetUserResp, error) {
  1095. return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented")
  1096. }
  1097. func (UnimplementedBusinessExtServer) UpdateUser(context.Context, *UpdateUserReq) (*Empty, error) {
  1098. return nil, status.Errorf(codes.Unimplemented, "method UpdateUser not implemented")
  1099. }
  1100. func (UnimplementedBusinessExtServer) SearchUser(context.Context, *SearchUserReq) (*SearchUserResp, error) {
  1101. return nil, status.Errorf(codes.Unimplemented, "method SearchUser not implemented")
  1102. }
  1103. func (UnimplementedBusinessExtServer) CloudUploadFile(context.Context, *CloudUploadFileReq) (*CloudUploadFileResp, error) {
  1104. return nil, status.Errorf(codes.Unimplemented, "method CloudUploadFile not implemented")
  1105. }
  1106. func (UnimplementedBusinessExtServer) EmoticonList(context.Context, *Empty) (*EmoticonListResp, error) {
  1107. return nil, status.Errorf(codes.Unimplemented, "method EmoticonList not implemented")
  1108. }
  1109. func RegisterBusinessExtServer(s grpc.ServiceRegistrar, srv BusinessExtServer) {
  1110. s.RegisterService(&BusinessExt_ServiceDesc, srv)
  1111. }
  1112. func _BusinessExt_SignIn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1113. in := new(SignInReq)
  1114. if err := dec(in); err != nil {
  1115. return nil, err
  1116. }
  1117. if interceptor == nil {
  1118. return srv.(BusinessExtServer).SignIn(ctx, in)
  1119. }
  1120. info := &grpc.UnaryServerInfo{
  1121. Server: srv,
  1122. FullMethod: "/pb.BusinessExt/SignIn",
  1123. }
  1124. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1125. return srv.(BusinessExtServer).SignIn(ctx, req.(*SignInReq))
  1126. }
  1127. return interceptor(ctx, in, info, handler)
  1128. }
  1129. func _BusinessExt_GetUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1130. in := new(GetUserReq)
  1131. if err := dec(in); err != nil {
  1132. return nil, err
  1133. }
  1134. if interceptor == nil {
  1135. return srv.(BusinessExtServer).GetUser(ctx, in)
  1136. }
  1137. info := &grpc.UnaryServerInfo{
  1138. Server: srv,
  1139. FullMethod: "/pb.BusinessExt/GetUser",
  1140. }
  1141. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1142. return srv.(BusinessExtServer).GetUser(ctx, req.(*GetUserReq))
  1143. }
  1144. return interceptor(ctx, in, info, handler)
  1145. }
  1146. func _BusinessExt_UpdateUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1147. in := new(UpdateUserReq)
  1148. if err := dec(in); err != nil {
  1149. return nil, err
  1150. }
  1151. if interceptor == nil {
  1152. return srv.(BusinessExtServer).UpdateUser(ctx, in)
  1153. }
  1154. info := &grpc.UnaryServerInfo{
  1155. Server: srv,
  1156. FullMethod: "/pb.BusinessExt/UpdateUser",
  1157. }
  1158. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1159. return srv.(BusinessExtServer).UpdateUser(ctx, req.(*UpdateUserReq))
  1160. }
  1161. return interceptor(ctx, in, info, handler)
  1162. }
  1163. func _BusinessExt_SearchUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1164. in := new(SearchUserReq)
  1165. if err := dec(in); err != nil {
  1166. return nil, err
  1167. }
  1168. if interceptor == nil {
  1169. return srv.(BusinessExtServer).SearchUser(ctx, in)
  1170. }
  1171. info := &grpc.UnaryServerInfo{
  1172. Server: srv,
  1173. FullMethod: "/pb.BusinessExt/SearchUser",
  1174. }
  1175. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1176. return srv.(BusinessExtServer).SearchUser(ctx, req.(*SearchUserReq))
  1177. }
  1178. return interceptor(ctx, in, info, handler)
  1179. }
  1180. func _BusinessExt_CloudUploadFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1181. in := new(CloudUploadFileReq)
  1182. if err := dec(in); err != nil {
  1183. return nil, err
  1184. }
  1185. if interceptor == nil {
  1186. return srv.(BusinessExtServer).CloudUploadFile(ctx, in)
  1187. }
  1188. info := &grpc.UnaryServerInfo{
  1189. Server: srv,
  1190. FullMethod: "/pb.BusinessExt/CloudUploadFile",
  1191. }
  1192. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1193. return srv.(BusinessExtServer).CloudUploadFile(ctx, req.(*CloudUploadFileReq))
  1194. }
  1195. return interceptor(ctx, in, info, handler)
  1196. }
  1197. func _BusinessExt_EmoticonList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1198. in := new(Empty)
  1199. if err := dec(in); err != nil {
  1200. return nil, err
  1201. }
  1202. if interceptor == nil {
  1203. return srv.(BusinessExtServer).EmoticonList(ctx, in)
  1204. }
  1205. info := &grpc.UnaryServerInfo{
  1206. Server: srv,
  1207. FullMethod: "/pb.BusinessExt/EmoticonList",
  1208. }
  1209. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1210. return srv.(BusinessExtServer).EmoticonList(ctx, req.(*Empty))
  1211. }
  1212. return interceptor(ctx, in, info, handler)
  1213. }
  1214. // BusinessExt_ServiceDesc is the grpc.ServiceDesc for BusinessExt service.
  1215. // It's only intended for direct use with grpc.RegisterService,
  1216. // and not to be introspected or modified (even as a copy)
  1217. var BusinessExt_ServiceDesc = grpc.ServiceDesc{
  1218. ServiceName: "pb.BusinessExt",
  1219. HandlerType: (*BusinessExtServer)(nil),
  1220. Methods: []grpc.MethodDesc{
  1221. {
  1222. MethodName: "SignIn",
  1223. Handler: _BusinessExt_SignIn_Handler,
  1224. },
  1225. {
  1226. MethodName: "GetUser",
  1227. Handler: _BusinessExt_GetUser_Handler,
  1228. },
  1229. {
  1230. MethodName: "UpdateUser",
  1231. Handler: _BusinessExt_UpdateUser_Handler,
  1232. },
  1233. {
  1234. MethodName: "SearchUser",
  1235. Handler: _BusinessExt_SearchUser_Handler,
  1236. },
  1237. {
  1238. MethodName: "CloudUploadFile",
  1239. Handler: _BusinessExt_CloudUploadFile_Handler,
  1240. },
  1241. {
  1242. MethodName: "EmoticonList",
  1243. Handler: _BusinessExt_EmoticonList_Handler,
  1244. },
  1245. },
  1246. Streams: []grpc.StreamDesc{},
  1247. Metadata: "business.ext.proto",
  1248. }