golang-im聊天
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 

1825 rindas
61 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"
  9. "google.golang.org/grpc"
  10. "google.golang.org/grpc/codes"
  11. "google.golang.org/grpc/status"
  12. "google.golang.org/protobuf/reflect/protoreflect"
  13. "google.golang.org/protobuf/runtime/protoimpl"
  14. "reflect"
  15. "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. MasterId int64 `protobuf:"varint,4,opt,name=master_id,json=masterId,proto3" json:"master_id,omitempty"` // 站长id
  338. PushAlia string `protobuf:"bytes,5,opt,name=push_alia,json=pushAlia,proto3" json:"push_alia,omitempty"` // 极光推送-别名
  339. }
  340. func (x *SignInReq) Reset() {
  341. *x = SignInReq{}
  342. if protoimpl.UnsafeEnabled {
  343. mi := &file_business_ext_proto_msgTypes[5]
  344. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  345. ms.StoreMessageInfo(mi)
  346. }
  347. }
  348. func (x *SignInReq) String() string {
  349. return protoimpl.X.MessageStringOf(x)
  350. }
  351. func (*SignInReq) ProtoMessage() {}
  352. func (x *SignInReq) ProtoReflect() protoreflect.Message {
  353. mi := &file_business_ext_proto_msgTypes[5]
  354. if protoimpl.UnsafeEnabled && x != nil {
  355. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  356. if ms.LoadMessageInfo() == nil {
  357. ms.StoreMessageInfo(mi)
  358. }
  359. return ms
  360. }
  361. return mi.MessageOf(x)
  362. }
  363. // Deprecated: Use SignInReq.ProtoReflect.Descriptor instead.
  364. func (*SignInReq) Descriptor() ([]byte, []int) {
  365. return file_business_ext_proto_rawDescGZIP(), []int{5}
  366. }
  367. func (x *SignInReq) GetPhoneNumber() string {
  368. if x != nil {
  369. return x.PhoneNumber
  370. }
  371. return ""
  372. }
  373. func (x *SignInReq) GetCode() string {
  374. if x != nil {
  375. return x.Code
  376. }
  377. return ""
  378. }
  379. func (x *SignInReq) GetDeviceId() int64 {
  380. if x != nil {
  381. return x.DeviceId
  382. }
  383. return 0
  384. }
  385. func (x *SignInReq) GetMasterId() int64 {
  386. if x != nil {
  387. return x.MasterId
  388. }
  389. return 0
  390. }
  391. func (x *SignInReq) GetPushAlia() string {
  392. if x != nil {
  393. return x.PushAlia
  394. }
  395. return ""
  396. }
  397. type SignInResp struct {
  398. state protoimpl.MessageState
  399. sizeCache protoimpl.SizeCache
  400. unknownFields protoimpl.UnknownFields
  401. IsNew bool `protobuf:"varint,1,opt,name=is_new,json=isNew,proto3" json:"is_new,omitempty"` // 是否是新用户
  402. UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
  403. Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` // token
  404. MasterId int64 `protobuf:"varint,4,opt,name=master_id,json=masterId,proto3" json:"master_id,omitempty"` // 站长id
  405. }
  406. func (x *SignInResp) Reset() {
  407. *x = SignInResp{}
  408. if protoimpl.UnsafeEnabled {
  409. mi := &file_business_ext_proto_msgTypes[6]
  410. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  411. ms.StoreMessageInfo(mi)
  412. }
  413. }
  414. func (x *SignInResp) String() string {
  415. return protoimpl.X.MessageStringOf(x)
  416. }
  417. func (*SignInResp) ProtoMessage() {}
  418. func (x *SignInResp) ProtoReflect() protoreflect.Message {
  419. mi := &file_business_ext_proto_msgTypes[6]
  420. if protoimpl.UnsafeEnabled && x != nil {
  421. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  422. if ms.LoadMessageInfo() == nil {
  423. ms.StoreMessageInfo(mi)
  424. }
  425. return ms
  426. }
  427. return mi.MessageOf(x)
  428. }
  429. // Deprecated: Use SignInResp.ProtoReflect.Descriptor instead.
  430. func (*SignInResp) Descriptor() ([]byte, []int) {
  431. return file_business_ext_proto_rawDescGZIP(), []int{6}
  432. }
  433. func (x *SignInResp) GetIsNew() bool {
  434. if x != nil {
  435. return x.IsNew
  436. }
  437. return false
  438. }
  439. func (x *SignInResp) GetUserId() int64 {
  440. if x != nil {
  441. return x.UserId
  442. }
  443. return 0
  444. }
  445. func (x *SignInResp) GetToken() string {
  446. if x != nil {
  447. return x.Token
  448. }
  449. return ""
  450. }
  451. func (x *SignInResp) GetMasterId() int64 {
  452. if x != nil {
  453. return x.MasterId
  454. }
  455. return 0
  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. MasterId int64 `protobuf:"varint,8,opt,name=master_id,json=masterId,proto3" json:"master_id,omitempty"` // 站长id
  582. IsAutoAddedFriends int64 `protobuf:"varint,9,opt,name=is_auto_added_friends,json=isAutoAddedFriends,proto3" json:"is_auto_added_friends,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) GetMasterId() int64 {
  654. if x != nil {
  655. return x.MasterId
  656. }
  657. return 0
  658. }
  659. func (x *User) GetIsAutoAddedFriends() int64 {
  660. if x != nil {
  661. return x.IsAutoAddedFriends
  662. }
  663. return 0
  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. MasterId int64 `protobuf:"varint,2,opt,name=master_id,json=masterId,proto3" json:"master_id,omitempty"`
  816. }
  817. func (x *SearchUserReq) Reset() {
  818. *x = SearchUserReq{}
  819. if protoimpl.UnsafeEnabled {
  820. mi := &file_business_ext_proto_msgTypes[13]
  821. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  822. ms.StoreMessageInfo(mi)
  823. }
  824. }
  825. func (x *SearchUserReq) String() string {
  826. return protoimpl.X.MessageStringOf(x)
  827. }
  828. func (*SearchUserReq) ProtoMessage() {}
  829. func (x *SearchUserReq) ProtoReflect() protoreflect.Message {
  830. mi := &file_business_ext_proto_msgTypes[13]
  831. if protoimpl.UnsafeEnabled && x != nil {
  832. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  833. if ms.LoadMessageInfo() == nil {
  834. ms.StoreMessageInfo(mi)
  835. }
  836. return ms
  837. }
  838. return mi.MessageOf(x)
  839. }
  840. // Deprecated: Use SearchUserReq.ProtoReflect.Descriptor instead.
  841. func (*SearchUserReq) Descriptor() ([]byte, []int) {
  842. return file_business_ext_proto_rawDescGZIP(), []int{13}
  843. }
  844. func (x *SearchUserReq) GetKey() string {
  845. if x != nil {
  846. return x.Key
  847. }
  848. return ""
  849. }
  850. func (x *SearchUserReq) GetMasterId() int64 {
  851. if x != nil {
  852. return x.MasterId
  853. }
  854. return 0
  855. }
  856. type SearchUserResp struct {
  857. state protoimpl.MessageState
  858. sizeCache protoimpl.SizeCache
  859. unknownFields protoimpl.UnknownFields
  860. Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
  861. }
  862. func (x *SearchUserResp) Reset() {
  863. *x = SearchUserResp{}
  864. if protoimpl.UnsafeEnabled {
  865. mi := &file_business_ext_proto_msgTypes[14]
  866. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  867. ms.StoreMessageInfo(mi)
  868. }
  869. }
  870. func (x *SearchUserResp) String() string {
  871. return protoimpl.X.MessageStringOf(x)
  872. }
  873. func (*SearchUserResp) ProtoMessage() {}
  874. func (x *SearchUserResp) ProtoReflect() protoreflect.Message {
  875. mi := &file_business_ext_proto_msgTypes[14]
  876. if protoimpl.UnsafeEnabled && x != nil {
  877. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  878. if ms.LoadMessageInfo() == nil {
  879. ms.StoreMessageInfo(mi)
  880. }
  881. return ms
  882. }
  883. return mi.MessageOf(x)
  884. }
  885. // Deprecated: Use SearchUserResp.ProtoReflect.Descriptor instead.
  886. func (*SearchUserResp) Descriptor() ([]byte, []int) {
  887. return file_business_ext_proto_rawDescGZIP(), []int{14}
  888. }
  889. func (x *SearchUserResp) GetUsers() []*User {
  890. if x != nil {
  891. return x.Users
  892. }
  893. return nil
  894. }
  895. var File_business_ext_proto protoreflect.FileDescriptor
  896. var file_business_ext_proto_rawDesc = []byte{
  897. 0x0a, 0x12, 0x62, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x2e, 0x65, 0x78, 0x74, 0x2e, 0x70,
  898. 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x10, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  899. 0x2e, 0x65, 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x97, 0x01, 0x0a, 0x10, 0x43,
  900. 0x6f, 0x6d, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x12,
  901. 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
  902. 0x03, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x35, 0x0a, 0x0d, 0x63, 0x6f,
  903. 0x6d, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
  904. 0x0e, 0x32, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x54,
  905. 0x79, 0x70, 0x65, 0x52, 0x0c, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x54, 0x79, 0x70,
  906. 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
  907. 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x6c,
  908. 0x69, 0x73, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6d, 0x61, 0x67, 0x65,
  909. 0x4c, 0x69, 0x73, 0x74, 0x22, 0x50, 0x0a, 0x0c, 0x49, 0x73, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64,
  910. 0x73, 0x52, 0x65, 0x71, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x70, 0x68, 0x6f,
  911. 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x50, 0x68,
  912. 0x6f, 0x6e, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x5f, 0x70, 0x68,
  913. 0x6f, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x66, 0x72, 0x69, 0x65, 0x6e,
  914. 0x64, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x22, 0x4a, 0x0a, 0x0d, 0x49, 0x73, 0x46, 0x72, 0x69, 0x65,
  915. 0x6e, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x73, 0x5f, 0x66, 0x72,
  916. 0x69, 0x65, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x69, 0x73, 0x46, 0x72,
  917. 0x69, 0x65, 0x6e, 0x64, 0x12, 0x1c, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01,
  918. 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73,
  919. 0x65, 0x72, 0x22, 0x5f, 0x0a, 0x08, 0x45, 0x6d, 0x6f, 0x74, 0x69, 0x63, 0x6f, 0x6e, 0x12, 0x12,
  920. 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
  921. 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x6d, 0x67, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20,
  922. 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x6d, 0x67, 0x55, 0x72, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6d,
  923. 0x65, 0x6d, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x12,
  924. 0x12, 0x0a, 0x04, 0x73, 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73,
  925. 0x6f, 0x72, 0x74, 0x22, 0x3e, 0x0a, 0x10, 0x45, 0x6d, 0x6f, 0x74, 0x69, 0x63, 0x6f, 0x6e, 0x4c,
  926. 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2a, 0x0a, 0x09, 0x65, 0x6d, 0x6f, 0x74, 0x69,
  927. 0x63, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e,
  928. 0x45, 0x6d, 0x6f, 0x74, 0x69, 0x63, 0x6f, 0x6e, 0x52, 0x09, 0x65, 0x6d, 0x6f, 0x74, 0x69, 0x63,
  929. 0x6f, 0x6e, 0x73, 0x22, 0x99, 0x01, 0x0a, 0x09, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x52, 0x65,
  930. 0x71, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65,
  931. 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75,
  932. 0x6d, 0x62, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01,
  933. 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69,
  934. 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x64, 0x65, 0x76,
  935. 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f,
  936. 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72,
  937. 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x18,
  938. 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x75, 0x73, 0x68, 0x41, 0x6c, 0x69, 0x61, 0x22,
  939. 0x6f, 0x0a, 0x0a, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x15, 0x0a,
  940. 0x06, 0x69, 0x73, 0x5f, 0x6e, 0x65, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x69,
  941. 0x73, 0x4e, 0x65, 0x77, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18,
  942. 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a,
  943. 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f,
  944. 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64,
  945. 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64,
  946. 0x22, 0x60, 0x0a, 0x12, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x46,
  947. 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x72, 0x18, 0x01, 0x20,
  948. 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x69, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65,
  949. 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c,
  950. 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x73, 0x69,
  951. 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x69,
  952. 0x7a, 0x65, 0x22, 0x69, 0x0a, 0x13, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x55, 0x70, 0x6c, 0x6f, 0x61,
  953. 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74,
  954. 0x68, 0x6f, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f,
  955. 0x64, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
  956. 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01,
  957. 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
  958. 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x94, 0x02,
  959. 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69,
  960. 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12,
  961. 0x1a, 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
  962. 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73,
  963. 0x65, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x73, 0x65, 0x78, 0x12, 0x1d, 0x0a,
  964. 0x0a, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28,
  965. 0x09, 0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05,
  966. 0x65, 0x78, 0x74, 0x72, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x78, 0x74,
  967. 0x72, 0x61, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d,
  968. 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54,
  969. 0x69, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69,
  970. 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
  971. 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69,
  972. 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x49,
  973. 0x64, 0x12, 0x31, 0x0a, 0x15, 0x69, 0x73, 0x5f, 0x61, 0x75, 0x74, 0x6f, 0x5f, 0x61, 0x64, 0x64,
  974. 0x65, 0x64, 0x5f, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03,
  975. 0x52, 0x12, 0x69, 0x73, 0x41, 0x75, 0x74, 0x6f, 0x41, 0x64, 0x64, 0x65, 0x64, 0x46, 0x72, 0x69,
  976. 0x65, 0x6e, 0x64, 0x73, 0x22, 0x3b, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52,
  977. 0x65, 0x71, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20,
  978. 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70,
  979. 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e,
  980. 0x65, 0x22, 0x2b, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70,
  981. 0x12, 0x1c, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08,
  982. 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x72,
  983. 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12,
  984. 0x1a, 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
  985. 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73,
  986. 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x73, 0x65, 0x78, 0x12, 0x1d, 0x0a,
  987. 0x0a, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28,
  988. 0x09, 0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05,
  989. 0x65, 0x78, 0x74, 0x72, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x78, 0x74,
  990. 0x72, 0x61, 0x22, 0x3e, 0x0a, 0x0d, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x55, 0x73, 0x65, 0x72,
  991. 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  992. 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f,
  993. 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72,
  994. 0x49, 0x64, 0x22, 0x30, 0x0a, 0x0e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x55, 0x73, 0x65, 0x72,
  995. 0x52, 0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20,
  996. 0x03, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x05, 0x75,
  997. 0x73, 0x65, 0x72, 0x73, 0x2a, 0xa4, 0x01, 0x0a, 0x0c, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x61, 0x69,
  998. 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x43, 0x54, 0x5f, 0x55, 0x4e, 0x4b, 0x4e,
  999. 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x54, 0x5f, 0x47, 0x41, 0x4d, 0x42,
  1000. 0x4c, 0x45, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x4d, 0x54, 0x5f, 0x44, 0x45, 0x46, 0x52, 0x41,
  1001. 0x55, 0x44, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x4d, 0x54, 0x5f, 0x48, 0x41, 0x52, 0x41, 0x53,
  1002. 0x53, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x4d, 0x54, 0x5f, 0x52, 0x55, 0x4d, 0x4f, 0x55, 0x52,
  1003. 0x10, 0x04, 0x12, 0x1d, 0x0a, 0x19, 0x4d, 0x54, 0x5f, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x45, 0x52,
  1004. 0x46, 0x45, 0x49, 0x54, 0x5f, 0x47, 0x4f, 0x4f, 0x44, 0x53, 0x5f, 0x49, 0x4e, 0x46, 0x4f, 0x10,
  1005. 0x05, 0x12, 0x1a, 0x0a, 0x16, 0x4d, 0x54, 0x5f, 0x56, 0x49, 0x4f, 0x4c, 0x41, 0x54, 0x49, 0x4f,
  1006. 0x4e, 0x5f, 0x4f, 0x46, 0x5f, 0x4d, 0x49, 0x4e, 0x4f, 0x52, 0x53, 0x10, 0x06, 0x12, 0x0c, 0x0a,
  1007. 0x08, 0x4d, 0x54, 0x5f, 0x4f, 0x54, 0x48, 0x45, 0x52, 0x10, 0x07, 0x32, 0x9c, 0x03, 0x0a, 0x0b,
  1008. 0x42, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x45, 0x78, 0x74, 0x12, 0x27, 0x0a, 0x06, 0x53,
  1009. 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x12, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x49,
  1010. 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e,
  1011. 0x52, 0x65, 0x73, 0x70, 0x12, 0x2a, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x12,
  1012. 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a,
  1013. 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70,
  1014. 0x12, 0x2a, 0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x11,
  1015. 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65,
  1016. 0x71, 0x1a, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x33, 0x0a, 0x0a,
  1017. 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x55, 0x73, 0x65, 0x72, 0x12, 0x11, 0x2e, 0x70, 0x62, 0x2e,
  1018. 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x12, 0x2e,
  1019. 0x70, 0x62, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73,
  1020. 0x70, 0x12, 0x42, 0x0a, 0x0f, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64,
  1021. 0x46, 0x69, 0x6c, 0x65, 0x12, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x55,
  1022. 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x70,
  1023. 0x62, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c,
  1024. 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2f, 0x0a, 0x0c, 0x45, 0x6d, 0x6f, 0x74, 0x69, 0x63, 0x6f,
  1025. 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79,
  1026. 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x6f, 0x74, 0x69, 0x63, 0x6f, 0x6e, 0x4c, 0x69,
  1027. 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x30, 0x0a, 0x09, 0x49, 0x73, 0x46, 0x72, 0x69, 0x65,
  1028. 0x6e, 0x64, 0x73, 0x12, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x49, 0x73, 0x46, 0x72, 0x69, 0x65, 0x6e,
  1029. 0x64, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x49, 0x73, 0x46, 0x72, 0x69,
  1030. 0x65, 0x6e, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, 0x30, 0x0a, 0x0d, 0x43, 0x6f, 0x6d, 0x70,
  1031. 0x6c, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x43,
  1032. 0x6f, 0x6d, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x1a,
  1033. 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x42, 0x0d, 0x5a, 0x0b, 0x67, 0x69,
  1034. 0x6d, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x62, 0x2f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  1035. 0x33,
  1036. }
  1037. var (
  1038. file_business_ext_proto_rawDescOnce sync.Once
  1039. file_business_ext_proto_rawDescData = file_business_ext_proto_rawDesc
  1040. )
  1041. func file_business_ext_proto_rawDescGZIP() []byte {
  1042. file_business_ext_proto_rawDescOnce.Do(func() {
  1043. file_business_ext_proto_rawDescData = protoimpl.X.CompressGZIP(file_business_ext_proto_rawDescData)
  1044. })
  1045. return file_business_ext_proto_rawDescData
  1046. }
  1047. var file_business_ext_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  1048. var file_business_ext_proto_msgTypes = make([]protoimpl.MessageInfo, 15)
  1049. var file_business_ext_proto_goTypes = []interface{}{
  1050. (ComplainType)(0), // 0: pb.ComplainType
  1051. (*ComplainGroupReq)(nil), // 1: pb.ComplainGroupReq
  1052. (*IsFriendsReq)(nil), // 2: pb.IsFriendsReq
  1053. (*IsFriendsResp)(nil), // 3: pb.IsFriendsResp
  1054. (*Emoticon)(nil), // 4: pb.Emoticon
  1055. (*EmoticonListResp)(nil), // 5: pb.EmoticonListResp
  1056. (*SignInReq)(nil), // 6: pb.SignInReq
  1057. (*SignInResp)(nil), // 7: pb.SignInResp
  1058. (*CloudUploadFileReq)(nil), // 8: pb.CloudUploadFileReq
  1059. (*CloudUploadFileResp)(nil), // 9: pb.CloudUploadFileResp
  1060. (*User)(nil), // 10: pb.User
  1061. (*GetUserReq)(nil), // 11: pb.GetUserReq
  1062. (*GetUserResp)(nil), // 12: pb.GetUserResp
  1063. (*UpdateUserReq)(nil), // 13: pb.UpdateUserReq
  1064. (*SearchUserReq)(nil), // 14: pb.SearchUserReq
  1065. (*SearchUserResp)(nil), // 15: pb.SearchUserResp
  1066. (*Empty)(nil), // 16: pb.Empty
  1067. }
  1068. var file_business_ext_proto_depIdxs = []int32{
  1069. 0, // 0: pb.ComplainGroupReq.complain_type:type_name -> pb.ComplainType
  1070. 10, // 1: pb.IsFriendsResp.user:type_name -> pb.User
  1071. 4, // 2: pb.EmoticonListResp.emoticons:type_name -> pb.Emoticon
  1072. 10, // 3: pb.GetUserResp.user:type_name -> pb.User
  1073. 10, // 4: pb.SearchUserResp.users:type_name -> pb.User
  1074. 6, // 5: pb.BusinessExt.SignIn:input_type -> pb.SignInReq
  1075. 11, // 6: pb.BusinessExt.GetUser:input_type -> pb.GetUserReq
  1076. 13, // 7: pb.BusinessExt.UpdateUser:input_type -> pb.UpdateUserReq
  1077. 14, // 8: pb.BusinessExt.SearchUser:input_type -> pb.SearchUserReq
  1078. 8, // 9: pb.BusinessExt.CloudUploadFile:input_type -> pb.CloudUploadFileReq
  1079. 16, // 10: pb.BusinessExt.EmoticonList:input_type -> pb.Empty
  1080. 2, // 11: pb.BusinessExt.IsFriends:input_type -> pb.IsFriendsReq
  1081. 1, // 12: pb.BusinessExt.ComplainGroup:input_type -> pb.ComplainGroupReq
  1082. 7, // 13: pb.BusinessExt.SignIn:output_type -> pb.SignInResp
  1083. 12, // 14: pb.BusinessExt.GetUser:output_type -> pb.GetUserResp
  1084. 16, // 15: pb.BusinessExt.UpdateUser:output_type -> pb.Empty
  1085. 15, // 16: pb.BusinessExt.SearchUser:output_type -> pb.SearchUserResp
  1086. 9, // 17: pb.BusinessExt.CloudUploadFile:output_type -> pb.CloudUploadFileResp
  1087. 5, // 18: pb.BusinessExt.EmoticonList:output_type -> pb.EmoticonListResp
  1088. 3, // 19: pb.BusinessExt.IsFriends:output_type -> pb.IsFriendsResp
  1089. 16, // 20: pb.BusinessExt.ComplainGroup:output_type -> pb.Empty
  1090. 13, // [13:21] is the sub-list for method output_type
  1091. 5, // [5:13] is the sub-list for method input_type
  1092. 5, // [5:5] is the sub-list for extension type_name
  1093. 5, // [5:5] is the sub-list for extension extendee
  1094. 0, // [0:5] is the sub-list for field type_name
  1095. }
  1096. func init() { file_business_ext_proto_init() }
  1097. func file_business_ext_proto_init() {
  1098. if File_business_ext_proto != nil {
  1099. return
  1100. }
  1101. file_common_ext_proto_init()
  1102. if !protoimpl.UnsafeEnabled {
  1103. file_business_ext_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  1104. switch v := v.(*ComplainGroupReq); i {
  1105. case 0:
  1106. return &v.state
  1107. case 1:
  1108. return &v.sizeCache
  1109. case 2:
  1110. return &v.unknownFields
  1111. default:
  1112. return nil
  1113. }
  1114. }
  1115. file_business_ext_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  1116. switch v := v.(*IsFriendsReq); i {
  1117. case 0:
  1118. return &v.state
  1119. case 1:
  1120. return &v.sizeCache
  1121. case 2:
  1122. return &v.unknownFields
  1123. default:
  1124. return nil
  1125. }
  1126. }
  1127. file_business_ext_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  1128. switch v := v.(*IsFriendsResp); i {
  1129. case 0:
  1130. return &v.state
  1131. case 1:
  1132. return &v.sizeCache
  1133. case 2:
  1134. return &v.unknownFields
  1135. default:
  1136. return nil
  1137. }
  1138. }
  1139. file_business_ext_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  1140. switch v := v.(*Emoticon); i {
  1141. case 0:
  1142. return &v.state
  1143. case 1:
  1144. return &v.sizeCache
  1145. case 2:
  1146. return &v.unknownFields
  1147. default:
  1148. return nil
  1149. }
  1150. }
  1151. file_business_ext_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  1152. switch v := v.(*EmoticonListResp); i {
  1153. case 0:
  1154. return &v.state
  1155. case 1:
  1156. return &v.sizeCache
  1157. case 2:
  1158. return &v.unknownFields
  1159. default:
  1160. return nil
  1161. }
  1162. }
  1163. file_business_ext_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  1164. switch v := v.(*SignInReq); i {
  1165. case 0:
  1166. return &v.state
  1167. case 1:
  1168. return &v.sizeCache
  1169. case 2:
  1170. return &v.unknownFields
  1171. default:
  1172. return nil
  1173. }
  1174. }
  1175. file_business_ext_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  1176. switch v := v.(*SignInResp); i {
  1177. case 0:
  1178. return &v.state
  1179. case 1:
  1180. return &v.sizeCache
  1181. case 2:
  1182. return &v.unknownFields
  1183. default:
  1184. return nil
  1185. }
  1186. }
  1187. file_business_ext_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  1188. switch v := v.(*CloudUploadFileReq); i {
  1189. case 0:
  1190. return &v.state
  1191. case 1:
  1192. return &v.sizeCache
  1193. case 2:
  1194. return &v.unknownFields
  1195. default:
  1196. return nil
  1197. }
  1198. }
  1199. file_business_ext_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  1200. switch v := v.(*CloudUploadFileResp); i {
  1201. case 0:
  1202. return &v.state
  1203. case 1:
  1204. return &v.sizeCache
  1205. case 2:
  1206. return &v.unknownFields
  1207. default:
  1208. return nil
  1209. }
  1210. }
  1211. file_business_ext_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  1212. switch v := v.(*User); i {
  1213. case 0:
  1214. return &v.state
  1215. case 1:
  1216. return &v.sizeCache
  1217. case 2:
  1218. return &v.unknownFields
  1219. default:
  1220. return nil
  1221. }
  1222. }
  1223. file_business_ext_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  1224. switch v := v.(*GetUserReq); i {
  1225. case 0:
  1226. return &v.state
  1227. case 1:
  1228. return &v.sizeCache
  1229. case 2:
  1230. return &v.unknownFields
  1231. default:
  1232. return nil
  1233. }
  1234. }
  1235. file_business_ext_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
  1236. switch v := v.(*GetUserResp); i {
  1237. case 0:
  1238. return &v.state
  1239. case 1:
  1240. return &v.sizeCache
  1241. case 2:
  1242. return &v.unknownFields
  1243. default:
  1244. return nil
  1245. }
  1246. }
  1247. file_business_ext_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
  1248. switch v := v.(*UpdateUserReq); i {
  1249. case 0:
  1250. return &v.state
  1251. case 1:
  1252. return &v.sizeCache
  1253. case 2:
  1254. return &v.unknownFields
  1255. default:
  1256. return nil
  1257. }
  1258. }
  1259. file_business_ext_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
  1260. switch v := v.(*SearchUserReq); i {
  1261. case 0:
  1262. return &v.state
  1263. case 1:
  1264. return &v.sizeCache
  1265. case 2:
  1266. return &v.unknownFields
  1267. default:
  1268. return nil
  1269. }
  1270. }
  1271. file_business_ext_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
  1272. switch v := v.(*SearchUserResp); i {
  1273. case 0:
  1274. return &v.state
  1275. case 1:
  1276. return &v.sizeCache
  1277. case 2:
  1278. return &v.unknownFields
  1279. default:
  1280. return nil
  1281. }
  1282. }
  1283. }
  1284. type x struct{}
  1285. out := protoimpl.TypeBuilder{
  1286. File: protoimpl.DescBuilder{
  1287. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1288. RawDescriptor: file_business_ext_proto_rawDesc,
  1289. NumEnums: 1,
  1290. NumMessages: 15,
  1291. NumExtensions: 0,
  1292. NumServices: 1,
  1293. },
  1294. GoTypes: file_business_ext_proto_goTypes,
  1295. DependencyIndexes: file_business_ext_proto_depIdxs,
  1296. EnumInfos: file_business_ext_proto_enumTypes,
  1297. MessageInfos: file_business_ext_proto_msgTypes,
  1298. }.Build()
  1299. File_business_ext_proto = out.File
  1300. file_business_ext_proto_rawDesc = nil
  1301. file_business_ext_proto_goTypes = nil
  1302. file_business_ext_proto_depIdxs = nil
  1303. }
  1304. // This is a compile-time assertion to ensure that this generated file
  1305. // is compatible with the grpc package it is being compiled against.
  1306. // Requires gRPC-Go v1.32.0 or later.
  1307. const _ = grpc.SupportPackageIsVersion7
  1308. // BusinessExtClient is the client API for BusinessExt service.
  1309. //
  1310. // 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.
  1311. type BusinessExtClient interface {
  1312. // 登录
  1313. SignIn(ctx context.Context, in *SignInReq, opts ...grpc.CallOption) (*SignInResp, error)
  1314. // 获取用户信息
  1315. GetUser(ctx context.Context, in *GetUserReq, opts ...grpc.CallOption) (*GetUserResp, error)
  1316. // 更新用户信息
  1317. UpdateUser(ctx context.Context, in *UpdateUserReq, opts ...grpc.CallOption) (*Empty, error)
  1318. // 搜索用户(这里简单数据库实现,生产环境建议使用ES)
  1319. SearchUser(ctx context.Context, in *SearchUserReq, opts ...grpc.CallOption) (*SearchUserResp, error)
  1320. // 上传文件至云端
  1321. CloudUploadFile(ctx context.Context, in *CloudUploadFileReq, opts ...grpc.CallOption) (*CloudUploadFileResp, error)
  1322. // 获取表情
  1323. EmoticonList(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*EmoticonListResp, error)
  1324. // 判断是否为好友关系
  1325. IsFriends(ctx context.Context, in *IsFriendsReq, opts ...grpc.CallOption) (*IsFriendsResp, error)
  1326. // 投诉群
  1327. ComplainGroup(ctx context.Context, in *ComplainGroupReq, opts ...grpc.CallOption) (*Empty, error)
  1328. }
  1329. type businessExtClient struct {
  1330. cc grpc.ClientConnInterface
  1331. }
  1332. func NewBusinessExtClient(cc grpc.ClientConnInterface) BusinessExtClient {
  1333. return &businessExtClient{cc}
  1334. }
  1335. func (c *businessExtClient) SignIn(ctx context.Context, in *SignInReq, opts ...grpc.CallOption) (*SignInResp, error) {
  1336. out := new(SignInResp)
  1337. err := c.cc.Invoke(ctx, "/pb.BusinessExt/SignIn", in, out, opts...)
  1338. if err != nil {
  1339. return nil, err
  1340. }
  1341. return out, nil
  1342. }
  1343. func (c *businessExtClient) GetUser(ctx context.Context, in *GetUserReq, opts ...grpc.CallOption) (*GetUserResp, error) {
  1344. out := new(GetUserResp)
  1345. err := c.cc.Invoke(ctx, "/pb.BusinessExt/GetUser", in, out, opts...)
  1346. if err != nil {
  1347. return nil, err
  1348. }
  1349. return out, nil
  1350. }
  1351. func (c *businessExtClient) UpdateUser(ctx context.Context, in *UpdateUserReq, opts ...grpc.CallOption) (*Empty, error) {
  1352. out := new(Empty)
  1353. err := c.cc.Invoke(ctx, "/pb.BusinessExt/UpdateUser", in, out, opts...)
  1354. if err != nil {
  1355. return nil, err
  1356. }
  1357. return out, nil
  1358. }
  1359. func (c *businessExtClient) SearchUser(ctx context.Context, in *SearchUserReq, opts ...grpc.CallOption) (*SearchUserResp, error) {
  1360. out := new(SearchUserResp)
  1361. err := c.cc.Invoke(ctx, "/pb.BusinessExt/SearchUser", in, out, opts...)
  1362. if err != nil {
  1363. return nil, err
  1364. }
  1365. return out, nil
  1366. }
  1367. func (c *businessExtClient) CloudUploadFile(ctx context.Context, in *CloudUploadFileReq, opts ...grpc.CallOption) (*CloudUploadFileResp, error) {
  1368. out := new(CloudUploadFileResp)
  1369. err := c.cc.Invoke(ctx, "/pb.BusinessExt/CloudUploadFile", in, out, opts...)
  1370. if err != nil {
  1371. return nil, err
  1372. }
  1373. return out, nil
  1374. }
  1375. func (c *businessExtClient) EmoticonList(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*EmoticonListResp, error) {
  1376. out := new(EmoticonListResp)
  1377. err := c.cc.Invoke(ctx, "/pb.BusinessExt/EmoticonList", in, out, opts...)
  1378. if err != nil {
  1379. return nil, err
  1380. }
  1381. return out, nil
  1382. }
  1383. func (c *businessExtClient) IsFriends(ctx context.Context, in *IsFriendsReq, opts ...grpc.CallOption) (*IsFriendsResp, error) {
  1384. out := new(IsFriendsResp)
  1385. err := c.cc.Invoke(ctx, "/pb.BusinessExt/IsFriends", in, out, opts...)
  1386. if err != nil {
  1387. return nil, err
  1388. }
  1389. return out, nil
  1390. }
  1391. func (c *businessExtClient) ComplainGroup(ctx context.Context, in *ComplainGroupReq, opts ...grpc.CallOption) (*Empty, error) {
  1392. out := new(Empty)
  1393. err := c.cc.Invoke(ctx, "/pb.BusinessExt/ComplainGroup", in, out, opts...)
  1394. if err != nil {
  1395. return nil, err
  1396. }
  1397. return out, nil
  1398. }
  1399. // BusinessExtServer is the server API for BusinessExt service.
  1400. // All implementations must embed UnimplementedBusinessExtServer
  1401. // for forward compatibility
  1402. type BusinessExtServer interface {
  1403. // 登录
  1404. SignIn(context.Context, *SignInReq) (*SignInResp, error)
  1405. // 获取用户信息
  1406. GetUser(context.Context, *GetUserReq) (*GetUserResp, error)
  1407. // 更新用户信息
  1408. UpdateUser(context.Context, *UpdateUserReq) (*Empty, error)
  1409. // 搜索用户(这里简单数据库实现,生产环境建议使用ES)
  1410. SearchUser(context.Context, *SearchUserReq) (*SearchUserResp, error)
  1411. // 上传文件至云端
  1412. CloudUploadFile(context.Context, *CloudUploadFileReq) (*CloudUploadFileResp, error)
  1413. // 获取表情
  1414. EmoticonList(context.Context, *Empty) (*EmoticonListResp, error)
  1415. // 判断是否为好友关系
  1416. IsFriends(context.Context, *IsFriendsReq) (*IsFriendsResp, error)
  1417. // 投诉群
  1418. ComplainGroup(context.Context, *ComplainGroupReq) (*Empty, error)
  1419. }
  1420. // UnimplementedBusinessExtServer must be embedded to have forward compatible implementations.
  1421. type UnimplementedBusinessExtServer struct {
  1422. }
  1423. func (UnimplementedBusinessExtServer) SignIn(context.Context, *SignInReq) (*SignInResp, error) {
  1424. return nil, status.Errorf(codes.Unimplemented, "method SignIn not implemented")
  1425. }
  1426. func (UnimplementedBusinessExtServer) GetUser(context.Context, *GetUserReq) (*GetUserResp, error) {
  1427. return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented")
  1428. }
  1429. func (UnimplementedBusinessExtServer) UpdateUser(context.Context, *UpdateUserReq) (*Empty, error) {
  1430. return nil, status.Errorf(codes.Unimplemented, "method UpdateUser not implemented")
  1431. }
  1432. func (UnimplementedBusinessExtServer) SearchUser(context.Context, *SearchUserReq) (*SearchUserResp, error) {
  1433. return nil, status.Errorf(codes.Unimplemented, "method SearchUser not implemented")
  1434. }
  1435. func (UnimplementedBusinessExtServer) CloudUploadFile(context.Context, *CloudUploadFileReq) (*CloudUploadFileResp, error) {
  1436. return nil, status.Errorf(codes.Unimplemented, "method CloudUploadFile not implemented")
  1437. }
  1438. func (UnimplementedBusinessExtServer) EmoticonList(context.Context, *Empty) (*EmoticonListResp, error) {
  1439. return nil, status.Errorf(codes.Unimplemented, "method EmoticonList not implemented")
  1440. }
  1441. func (UnimplementedBusinessExtServer) IsFriends(context.Context, *IsFriendsReq) (*IsFriendsResp, error) {
  1442. return nil, status.Errorf(codes.Unimplemented, "method IsFriends not implemented")
  1443. }
  1444. func (UnimplementedBusinessExtServer) ComplainGroup(context.Context, *ComplainGroupReq) (*Empty, error) {
  1445. return nil, status.Errorf(codes.Unimplemented, "method ComplainGroup not implemented")
  1446. }
  1447. func RegisterBusinessExtServer(s grpc.ServiceRegistrar, srv BusinessExtServer) {
  1448. s.RegisterService(&BusinessExt_ServiceDesc, srv)
  1449. }
  1450. func _BusinessExt_SignIn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1451. in := new(SignInReq)
  1452. if err := dec(in); err != nil {
  1453. return nil, err
  1454. }
  1455. if interceptor == nil {
  1456. return srv.(BusinessExtServer).SignIn(ctx, in)
  1457. }
  1458. info := &grpc.UnaryServerInfo{
  1459. Server: srv,
  1460. FullMethod: "/pb.BusinessExt/SignIn",
  1461. }
  1462. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1463. return srv.(BusinessExtServer).SignIn(ctx, req.(*SignInReq))
  1464. }
  1465. return interceptor(ctx, in, info, handler)
  1466. }
  1467. func _BusinessExt_GetUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1468. in := new(GetUserReq)
  1469. if err := dec(in); err != nil {
  1470. return nil, err
  1471. }
  1472. if interceptor == nil {
  1473. return srv.(BusinessExtServer).GetUser(ctx, in)
  1474. }
  1475. info := &grpc.UnaryServerInfo{
  1476. Server: srv,
  1477. FullMethod: "/pb.BusinessExt/GetUser",
  1478. }
  1479. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1480. return srv.(BusinessExtServer).GetUser(ctx, req.(*GetUserReq))
  1481. }
  1482. return interceptor(ctx, in, info, handler)
  1483. }
  1484. func _BusinessExt_UpdateUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1485. in := new(UpdateUserReq)
  1486. if err := dec(in); err != nil {
  1487. return nil, err
  1488. }
  1489. if interceptor == nil {
  1490. return srv.(BusinessExtServer).UpdateUser(ctx, in)
  1491. }
  1492. info := &grpc.UnaryServerInfo{
  1493. Server: srv,
  1494. FullMethod: "/pb.BusinessExt/UpdateUser",
  1495. }
  1496. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1497. return srv.(BusinessExtServer).UpdateUser(ctx, req.(*UpdateUserReq))
  1498. }
  1499. return interceptor(ctx, in, info, handler)
  1500. }
  1501. func _BusinessExt_SearchUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1502. in := new(SearchUserReq)
  1503. if err := dec(in); err != nil {
  1504. return nil, err
  1505. }
  1506. if interceptor == nil {
  1507. return srv.(BusinessExtServer).SearchUser(ctx, in)
  1508. }
  1509. info := &grpc.UnaryServerInfo{
  1510. Server: srv,
  1511. FullMethod: "/pb.BusinessExt/SearchUser",
  1512. }
  1513. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1514. return srv.(BusinessExtServer).SearchUser(ctx, req.(*SearchUserReq))
  1515. }
  1516. return interceptor(ctx, in, info, handler)
  1517. }
  1518. func _BusinessExt_CloudUploadFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1519. in := new(CloudUploadFileReq)
  1520. if err := dec(in); err != nil {
  1521. return nil, err
  1522. }
  1523. if interceptor == nil {
  1524. return srv.(BusinessExtServer).CloudUploadFile(ctx, in)
  1525. }
  1526. info := &grpc.UnaryServerInfo{
  1527. Server: srv,
  1528. FullMethod: "/pb.BusinessExt/CloudUploadFile",
  1529. }
  1530. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1531. return srv.(BusinessExtServer).CloudUploadFile(ctx, req.(*CloudUploadFileReq))
  1532. }
  1533. return interceptor(ctx, in, info, handler)
  1534. }
  1535. func _BusinessExt_EmoticonList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1536. in := new(Empty)
  1537. if err := dec(in); err != nil {
  1538. return nil, err
  1539. }
  1540. if interceptor == nil {
  1541. return srv.(BusinessExtServer).EmoticonList(ctx, in)
  1542. }
  1543. info := &grpc.UnaryServerInfo{
  1544. Server: srv,
  1545. FullMethod: "/pb.BusinessExt/EmoticonList",
  1546. }
  1547. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1548. return srv.(BusinessExtServer).EmoticonList(ctx, req.(*Empty))
  1549. }
  1550. return interceptor(ctx, in, info, handler)
  1551. }
  1552. func _BusinessExt_IsFriends_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1553. in := new(IsFriendsReq)
  1554. if err := dec(in); err != nil {
  1555. return nil, err
  1556. }
  1557. if interceptor == nil {
  1558. return srv.(BusinessExtServer).IsFriends(ctx, in)
  1559. }
  1560. info := &grpc.UnaryServerInfo{
  1561. Server: srv,
  1562. FullMethod: "/pb.BusinessExt/IsFriends",
  1563. }
  1564. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1565. return srv.(BusinessExtServer).IsFriends(ctx, req.(*IsFriendsReq))
  1566. }
  1567. return interceptor(ctx, in, info, handler)
  1568. }
  1569. func _BusinessExt_ComplainGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1570. in := new(ComplainGroupReq)
  1571. if err := dec(in); err != nil {
  1572. return nil, err
  1573. }
  1574. if interceptor == nil {
  1575. return srv.(BusinessExtServer).ComplainGroup(ctx, in)
  1576. }
  1577. info := &grpc.UnaryServerInfo{
  1578. Server: srv,
  1579. FullMethod: "/pb.BusinessExt/ComplainGroup",
  1580. }
  1581. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1582. return srv.(BusinessExtServer).ComplainGroup(ctx, req.(*ComplainGroupReq))
  1583. }
  1584. return interceptor(ctx, in, info, handler)
  1585. }
  1586. // BusinessExt_ServiceDesc is the grpc.ServiceDesc for BusinessExt service.
  1587. // It's only intended for direct use with grpc.RegisterService,
  1588. // and not to be introspected or modified (even as a copy)
  1589. var BusinessExt_ServiceDesc = grpc.ServiceDesc{
  1590. ServiceName: "pb.BusinessExt",
  1591. HandlerType: (*BusinessExtServer)(nil),
  1592. Methods: []grpc.MethodDesc{
  1593. {
  1594. MethodName: "SignIn",
  1595. Handler: _BusinessExt_SignIn_Handler,
  1596. },
  1597. {
  1598. MethodName: "GetUser",
  1599. Handler: _BusinessExt_GetUser_Handler,
  1600. },
  1601. {
  1602. MethodName: "UpdateUser",
  1603. Handler: _BusinessExt_UpdateUser_Handler,
  1604. },
  1605. {
  1606. MethodName: "SearchUser",
  1607. Handler: _BusinessExt_SearchUser_Handler,
  1608. },
  1609. {
  1610. MethodName: "CloudUploadFile",
  1611. Handler: _BusinessExt_CloudUploadFile_Handler,
  1612. },
  1613. {
  1614. MethodName: "EmoticonList",
  1615. Handler: _BusinessExt_EmoticonList_Handler,
  1616. },
  1617. {
  1618. MethodName: "IsFriends",
  1619. Handler: _BusinessExt_IsFriends_Handler,
  1620. },
  1621. {
  1622. MethodName: "ComplainGroup",
  1623. Handler: _BusinessExt_ComplainGroup_Handler,
  1624. },
  1625. },
  1626. Streams: []grpc.StreamDesc{},
  1627. Metadata: "business.ext.proto",
  1628. }