Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 

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