golang-im聊天
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

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