chat_grpc.pb.go 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597
  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. package chat
  3. import (
  4. context "context"
  5. common "git.ikuban.com/server/pw-protobuf/api/common"
  6. grpc "google.golang.org/grpc"
  7. codes "google.golang.org/grpc/codes"
  8. status "google.golang.org/grpc/status"
  9. emptypb "google.golang.org/protobuf/types/known/emptypb"
  10. )
  11. // This is a compile-time assertion to ensure that this generated file
  12. // is compatible with the grpc package it is being compiled against.
  13. // Requires gRPC-Go v1.32.0 or later.
  14. const _ = grpc.SupportPackageIsVersion7
  15. // ChatClient is the client API for Chat service.
  16. //
  17. // 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.
  18. type ChatClient interface {
  19. // 检查用户是否与接待员聊天
  20. CheckUserPartnerIsRelationship(ctx context.Context, in *common.UserAndPartnerIdentifyIdParam, opts ...grpc.CallOption) (*CheckUserPartnerIsRelationshipReply, error)
  21. // 创建聊天房间
  22. CreateChatRoom(ctx context.Context, in *CreateChatRoomParam, opts ...grpc.CallOption) (*RoomReply, error)
  23. // 查询在线人的列表
  24. FindOnlinePersonList(ctx context.Context, in *common.ListPageAndPersonRequest, opts ...grpc.CallOption) (*common.RecommendPersonListReply, error)
  25. // 查询推荐人的列表
  26. FindRecommendPersonList(ctx context.Context, in *FindRecommendPersonListRequest, opts ...grpc.CallOption) (*common.RecommendPersonListReply, error)
  27. // 接待员查询房间列表
  28. PartnerFindRoomList(ctx context.Context, in *PartnerFindRoomListRequest, opts ...grpc.CallOption) (*PartnerFindRoomListReply, error)
  29. // 用户查询房间列表
  30. UserFindRoomList(ctx context.Context, in *UserFindRoomListRequest, opts ...grpc.CallOption) (*UserFindRoomListReply, error)
  31. Receive(ctx context.Context, in *ReceiveRequest, opts ...grpc.CallOption) (*ReceiveReply, error)
  32. // 查询聊天记录
  33. FindChatRecordList(ctx context.Context, in *FindChatRecordListRequest, opts ...grpc.CallOption) (*common.ChatRecordListReply, error)
  34. // 房间信息
  35. FindChatRoomMsg(ctx context.Context, in *FindChatRoomMsgRequest, opts ...grpc.CallOption) (*common.ChatRoomMsg, error)
  36. // 拉黑
  37. SetBlackChat(ctx context.Context, in *SetBlackChatParam, opts ...grpc.CallOption) (*emptypb.Empty, error)
  38. // 拉黑
  39. Report(ctx context.Context, in *common.ReportRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  40. // 接待员领取开通奖励
  41. PartnerGetAward(ctx context.Context, in *PartnerGetAwardRequest, opts ...grpc.CallOption) (*PartnerGetAwardReply, error)
  42. // 房间信息
  43. FindRoomCardMsg(ctx context.Context, in *FindRoomCardMsgRequest, opts ...grpc.CallOption) (*common.RoomChatMsg, error)
  44. // 查询未处理的数据
  45. FindNotReplyNum(ctx context.Context, in *PartnerFindRoomListRequest, opts ...grpc.CallOption) (*common.RandomNum, error)
  46. }
  47. type chatClient struct {
  48. cc grpc.ClientConnInterface
  49. }
  50. func NewChatClient(cc grpc.ClientConnInterface) ChatClient {
  51. return &chatClient{cc}
  52. }
  53. func (c *chatClient) CheckUserPartnerIsRelationship(ctx context.Context, in *common.UserAndPartnerIdentifyIdParam, opts ...grpc.CallOption) (*CheckUserPartnerIsRelationshipReply, error) {
  54. out := new(CheckUserPartnerIsRelationshipReply)
  55. err := c.cc.Invoke(ctx, "/api.chat.Chat/CheckUserPartnerIsRelationship", in, out, opts...)
  56. if err != nil {
  57. return nil, err
  58. }
  59. return out, nil
  60. }
  61. func (c *chatClient) CreateChatRoom(ctx context.Context, in *CreateChatRoomParam, opts ...grpc.CallOption) (*RoomReply, error) {
  62. out := new(RoomReply)
  63. err := c.cc.Invoke(ctx, "/api.chat.Chat/CreateChatRoom", in, out, opts...)
  64. if err != nil {
  65. return nil, err
  66. }
  67. return out, nil
  68. }
  69. func (c *chatClient) FindOnlinePersonList(ctx context.Context, in *common.ListPageAndPersonRequest, opts ...grpc.CallOption) (*common.RecommendPersonListReply, error) {
  70. out := new(common.RecommendPersonListReply)
  71. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindOnlinePersonList", in, out, opts...)
  72. if err != nil {
  73. return nil, err
  74. }
  75. return out, nil
  76. }
  77. func (c *chatClient) FindRecommendPersonList(ctx context.Context, in *FindRecommendPersonListRequest, opts ...grpc.CallOption) (*common.RecommendPersonListReply, error) {
  78. out := new(common.RecommendPersonListReply)
  79. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindRecommendPersonList", in, out, opts...)
  80. if err != nil {
  81. return nil, err
  82. }
  83. return out, nil
  84. }
  85. func (c *chatClient) PartnerFindRoomList(ctx context.Context, in *PartnerFindRoomListRequest, opts ...grpc.CallOption) (*PartnerFindRoomListReply, error) {
  86. out := new(PartnerFindRoomListReply)
  87. err := c.cc.Invoke(ctx, "/api.chat.Chat/PartnerFindRoomList", in, out, opts...)
  88. if err != nil {
  89. return nil, err
  90. }
  91. return out, nil
  92. }
  93. func (c *chatClient) UserFindRoomList(ctx context.Context, in *UserFindRoomListRequest, opts ...grpc.CallOption) (*UserFindRoomListReply, error) {
  94. out := new(UserFindRoomListReply)
  95. err := c.cc.Invoke(ctx, "/api.chat.Chat/UserFindRoomList", in, out, opts...)
  96. if err != nil {
  97. return nil, err
  98. }
  99. return out, nil
  100. }
  101. func (c *chatClient) Receive(ctx context.Context, in *ReceiveRequest, opts ...grpc.CallOption) (*ReceiveReply, error) {
  102. out := new(ReceiveReply)
  103. err := c.cc.Invoke(ctx, "/api.chat.Chat/Receive", in, out, opts...)
  104. if err != nil {
  105. return nil, err
  106. }
  107. return out, nil
  108. }
  109. func (c *chatClient) FindChatRecordList(ctx context.Context, in *FindChatRecordListRequest, opts ...grpc.CallOption) (*common.ChatRecordListReply, error) {
  110. out := new(common.ChatRecordListReply)
  111. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindChatRecordList", in, out, opts...)
  112. if err != nil {
  113. return nil, err
  114. }
  115. return out, nil
  116. }
  117. func (c *chatClient) FindChatRoomMsg(ctx context.Context, in *FindChatRoomMsgRequest, opts ...grpc.CallOption) (*common.ChatRoomMsg, error) {
  118. out := new(common.ChatRoomMsg)
  119. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindChatRoomMsg", in, out, opts...)
  120. if err != nil {
  121. return nil, err
  122. }
  123. return out, nil
  124. }
  125. func (c *chatClient) SetBlackChat(ctx context.Context, in *SetBlackChatParam, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  126. out := new(emptypb.Empty)
  127. err := c.cc.Invoke(ctx, "/api.chat.Chat/SetBlackChat", in, out, opts...)
  128. if err != nil {
  129. return nil, err
  130. }
  131. return out, nil
  132. }
  133. func (c *chatClient) Report(ctx context.Context, in *common.ReportRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  134. out := new(emptypb.Empty)
  135. err := c.cc.Invoke(ctx, "/api.chat.Chat/Report", in, out, opts...)
  136. if err != nil {
  137. return nil, err
  138. }
  139. return out, nil
  140. }
  141. func (c *chatClient) PartnerGetAward(ctx context.Context, in *PartnerGetAwardRequest, opts ...grpc.CallOption) (*PartnerGetAwardReply, error) {
  142. out := new(PartnerGetAwardReply)
  143. err := c.cc.Invoke(ctx, "/api.chat.Chat/PartnerGetAward", in, out, opts...)
  144. if err != nil {
  145. return nil, err
  146. }
  147. return out, nil
  148. }
  149. func (c *chatClient) FindRoomCardMsg(ctx context.Context, in *FindRoomCardMsgRequest, opts ...grpc.CallOption) (*common.RoomChatMsg, error) {
  150. out := new(common.RoomChatMsg)
  151. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindRoomCardMsg", in, out, opts...)
  152. if err != nil {
  153. return nil, err
  154. }
  155. return out, nil
  156. }
  157. func (c *chatClient) FindNotReplyNum(ctx context.Context, in *PartnerFindRoomListRequest, opts ...grpc.CallOption) (*common.RandomNum, error) {
  158. out := new(common.RandomNum)
  159. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindNotReplyNum", in, out, opts...)
  160. if err != nil {
  161. return nil, err
  162. }
  163. return out, nil
  164. }
  165. // ChatServer is the server API for Chat service.
  166. // All implementations must embed UnimplementedChatServer
  167. // for forward compatibility
  168. type ChatServer interface {
  169. // 检查用户是否与接待员聊天
  170. CheckUserPartnerIsRelationship(context.Context, *common.UserAndPartnerIdentifyIdParam) (*CheckUserPartnerIsRelationshipReply, error)
  171. // 创建聊天房间
  172. CreateChatRoom(context.Context, *CreateChatRoomParam) (*RoomReply, error)
  173. // 查询在线人的列表
  174. FindOnlinePersonList(context.Context, *common.ListPageAndPersonRequest) (*common.RecommendPersonListReply, error)
  175. // 查询推荐人的列表
  176. FindRecommendPersonList(context.Context, *FindRecommendPersonListRequest) (*common.RecommendPersonListReply, error)
  177. // 接待员查询房间列表
  178. PartnerFindRoomList(context.Context, *PartnerFindRoomListRequest) (*PartnerFindRoomListReply, error)
  179. // 用户查询房间列表
  180. UserFindRoomList(context.Context, *UserFindRoomListRequest) (*UserFindRoomListReply, error)
  181. Receive(context.Context, *ReceiveRequest) (*ReceiveReply, error)
  182. // 查询聊天记录
  183. FindChatRecordList(context.Context, *FindChatRecordListRequest) (*common.ChatRecordListReply, error)
  184. // 房间信息
  185. FindChatRoomMsg(context.Context, *FindChatRoomMsgRequest) (*common.ChatRoomMsg, error)
  186. // 拉黑
  187. SetBlackChat(context.Context, *SetBlackChatParam) (*emptypb.Empty, error)
  188. // 拉黑
  189. Report(context.Context, *common.ReportRequest) (*emptypb.Empty, error)
  190. // 接待员领取开通奖励
  191. PartnerGetAward(context.Context, *PartnerGetAwardRequest) (*PartnerGetAwardReply, error)
  192. // 房间信息
  193. FindRoomCardMsg(context.Context, *FindRoomCardMsgRequest) (*common.RoomChatMsg, error)
  194. // 查询未处理的数据
  195. FindNotReplyNum(context.Context, *PartnerFindRoomListRequest) (*common.RandomNum, error)
  196. mustEmbedUnimplementedChatServer()
  197. }
  198. // UnimplementedChatServer must be embedded to have forward compatible implementations.
  199. type UnimplementedChatServer struct {
  200. }
  201. func (UnimplementedChatServer) CheckUserPartnerIsRelationship(context.Context, *common.UserAndPartnerIdentifyIdParam) (*CheckUserPartnerIsRelationshipReply, error) {
  202. return nil, status.Errorf(codes.Unimplemented, "method CheckUserPartnerIsRelationship not implemented")
  203. }
  204. func (UnimplementedChatServer) CreateChatRoom(context.Context, *CreateChatRoomParam) (*RoomReply, error) {
  205. return nil, status.Errorf(codes.Unimplemented, "method CreateChatRoom not implemented")
  206. }
  207. func (UnimplementedChatServer) FindOnlinePersonList(context.Context, *common.ListPageAndPersonRequest) (*common.RecommendPersonListReply, error) {
  208. return nil, status.Errorf(codes.Unimplemented, "method FindOnlinePersonList not implemented")
  209. }
  210. func (UnimplementedChatServer) FindRecommendPersonList(context.Context, *FindRecommendPersonListRequest) (*common.RecommendPersonListReply, error) {
  211. return nil, status.Errorf(codes.Unimplemented, "method FindRecommendPersonList not implemented")
  212. }
  213. func (UnimplementedChatServer) PartnerFindRoomList(context.Context, *PartnerFindRoomListRequest) (*PartnerFindRoomListReply, error) {
  214. return nil, status.Errorf(codes.Unimplemented, "method PartnerFindRoomList not implemented")
  215. }
  216. func (UnimplementedChatServer) UserFindRoomList(context.Context, *UserFindRoomListRequest) (*UserFindRoomListReply, error) {
  217. return nil, status.Errorf(codes.Unimplemented, "method UserFindRoomList not implemented")
  218. }
  219. func (UnimplementedChatServer) Receive(context.Context, *ReceiveRequest) (*ReceiveReply, error) {
  220. return nil, status.Errorf(codes.Unimplemented, "method Receive not implemented")
  221. }
  222. func (UnimplementedChatServer) FindChatRecordList(context.Context, *FindChatRecordListRequest) (*common.ChatRecordListReply, error) {
  223. return nil, status.Errorf(codes.Unimplemented, "method FindChatRecordList not implemented")
  224. }
  225. func (UnimplementedChatServer) FindChatRoomMsg(context.Context, *FindChatRoomMsgRequest) (*common.ChatRoomMsg, error) {
  226. return nil, status.Errorf(codes.Unimplemented, "method FindChatRoomMsg not implemented")
  227. }
  228. func (UnimplementedChatServer) SetBlackChat(context.Context, *SetBlackChatParam) (*emptypb.Empty, error) {
  229. return nil, status.Errorf(codes.Unimplemented, "method SetBlackChat not implemented")
  230. }
  231. func (UnimplementedChatServer) Report(context.Context, *common.ReportRequest) (*emptypb.Empty, error) {
  232. return nil, status.Errorf(codes.Unimplemented, "method Report not implemented")
  233. }
  234. func (UnimplementedChatServer) PartnerGetAward(context.Context, *PartnerGetAwardRequest) (*PartnerGetAwardReply, error) {
  235. return nil, status.Errorf(codes.Unimplemented, "method PartnerGetAward not implemented")
  236. }
  237. func (UnimplementedChatServer) FindRoomCardMsg(context.Context, *FindRoomCardMsgRequest) (*common.RoomChatMsg, error) {
  238. return nil, status.Errorf(codes.Unimplemented, "method FindRoomCardMsg not implemented")
  239. }
  240. func (UnimplementedChatServer) FindNotReplyNum(context.Context, *PartnerFindRoomListRequest) (*common.RandomNum, error) {
  241. return nil, status.Errorf(codes.Unimplemented, "method FindNotReplyNum not implemented")
  242. }
  243. func (UnimplementedChatServer) mustEmbedUnimplementedChatServer() {}
  244. // UnsafeChatServer may be embedded to opt out of forward compatibility for this service.
  245. // Use of this interface is not recommended, as added methods to ChatServer will
  246. // result in compilation errors.
  247. type UnsafeChatServer interface {
  248. mustEmbedUnimplementedChatServer()
  249. }
  250. func RegisterChatServer(s grpc.ServiceRegistrar, srv ChatServer) {
  251. s.RegisterService(&Chat_ServiceDesc, srv)
  252. }
  253. func _Chat_CheckUserPartnerIsRelationship_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  254. in := new(common.UserAndPartnerIdentifyIdParam)
  255. if err := dec(in); err != nil {
  256. return nil, err
  257. }
  258. if interceptor == nil {
  259. return srv.(ChatServer).CheckUserPartnerIsRelationship(ctx, in)
  260. }
  261. info := &grpc.UnaryServerInfo{
  262. Server: srv,
  263. FullMethod: "/api.chat.Chat/CheckUserPartnerIsRelationship",
  264. }
  265. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  266. return srv.(ChatServer).CheckUserPartnerIsRelationship(ctx, req.(*common.UserAndPartnerIdentifyIdParam))
  267. }
  268. return interceptor(ctx, in, info, handler)
  269. }
  270. func _Chat_CreateChatRoom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  271. in := new(CreateChatRoomParam)
  272. if err := dec(in); err != nil {
  273. return nil, err
  274. }
  275. if interceptor == nil {
  276. return srv.(ChatServer).CreateChatRoom(ctx, in)
  277. }
  278. info := &grpc.UnaryServerInfo{
  279. Server: srv,
  280. FullMethod: "/api.chat.Chat/CreateChatRoom",
  281. }
  282. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  283. return srv.(ChatServer).CreateChatRoom(ctx, req.(*CreateChatRoomParam))
  284. }
  285. return interceptor(ctx, in, info, handler)
  286. }
  287. func _Chat_FindOnlinePersonList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  288. in := new(common.ListPageAndPersonRequest)
  289. if err := dec(in); err != nil {
  290. return nil, err
  291. }
  292. if interceptor == nil {
  293. return srv.(ChatServer).FindOnlinePersonList(ctx, in)
  294. }
  295. info := &grpc.UnaryServerInfo{
  296. Server: srv,
  297. FullMethod: "/api.chat.Chat/FindOnlinePersonList",
  298. }
  299. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  300. return srv.(ChatServer).FindOnlinePersonList(ctx, req.(*common.ListPageAndPersonRequest))
  301. }
  302. return interceptor(ctx, in, info, handler)
  303. }
  304. func _Chat_FindRecommendPersonList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  305. in := new(FindRecommendPersonListRequest)
  306. if err := dec(in); err != nil {
  307. return nil, err
  308. }
  309. if interceptor == nil {
  310. return srv.(ChatServer).FindRecommendPersonList(ctx, in)
  311. }
  312. info := &grpc.UnaryServerInfo{
  313. Server: srv,
  314. FullMethod: "/api.chat.Chat/FindRecommendPersonList",
  315. }
  316. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  317. return srv.(ChatServer).FindRecommendPersonList(ctx, req.(*FindRecommendPersonListRequest))
  318. }
  319. return interceptor(ctx, in, info, handler)
  320. }
  321. func _Chat_PartnerFindRoomList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  322. in := new(PartnerFindRoomListRequest)
  323. if err := dec(in); err != nil {
  324. return nil, err
  325. }
  326. if interceptor == nil {
  327. return srv.(ChatServer).PartnerFindRoomList(ctx, in)
  328. }
  329. info := &grpc.UnaryServerInfo{
  330. Server: srv,
  331. FullMethod: "/api.chat.Chat/PartnerFindRoomList",
  332. }
  333. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  334. return srv.(ChatServer).PartnerFindRoomList(ctx, req.(*PartnerFindRoomListRequest))
  335. }
  336. return interceptor(ctx, in, info, handler)
  337. }
  338. func _Chat_UserFindRoomList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  339. in := new(UserFindRoomListRequest)
  340. if err := dec(in); err != nil {
  341. return nil, err
  342. }
  343. if interceptor == nil {
  344. return srv.(ChatServer).UserFindRoomList(ctx, in)
  345. }
  346. info := &grpc.UnaryServerInfo{
  347. Server: srv,
  348. FullMethod: "/api.chat.Chat/UserFindRoomList",
  349. }
  350. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  351. return srv.(ChatServer).UserFindRoomList(ctx, req.(*UserFindRoomListRequest))
  352. }
  353. return interceptor(ctx, in, info, handler)
  354. }
  355. func _Chat_Receive_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  356. in := new(ReceiveRequest)
  357. if err := dec(in); err != nil {
  358. return nil, err
  359. }
  360. if interceptor == nil {
  361. return srv.(ChatServer).Receive(ctx, in)
  362. }
  363. info := &grpc.UnaryServerInfo{
  364. Server: srv,
  365. FullMethod: "/api.chat.Chat/Receive",
  366. }
  367. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  368. return srv.(ChatServer).Receive(ctx, req.(*ReceiveRequest))
  369. }
  370. return interceptor(ctx, in, info, handler)
  371. }
  372. func _Chat_FindChatRecordList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  373. in := new(FindChatRecordListRequest)
  374. if err := dec(in); err != nil {
  375. return nil, err
  376. }
  377. if interceptor == nil {
  378. return srv.(ChatServer).FindChatRecordList(ctx, in)
  379. }
  380. info := &grpc.UnaryServerInfo{
  381. Server: srv,
  382. FullMethod: "/api.chat.Chat/FindChatRecordList",
  383. }
  384. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  385. return srv.(ChatServer).FindChatRecordList(ctx, req.(*FindChatRecordListRequest))
  386. }
  387. return interceptor(ctx, in, info, handler)
  388. }
  389. func _Chat_FindChatRoomMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  390. in := new(FindChatRoomMsgRequest)
  391. if err := dec(in); err != nil {
  392. return nil, err
  393. }
  394. if interceptor == nil {
  395. return srv.(ChatServer).FindChatRoomMsg(ctx, in)
  396. }
  397. info := &grpc.UnaryServerInfo{
  398. Server: srv,
  399. FullMethod: "/api.chat.Chat/FindChatRoomMsg",
  400. }
  401. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  402. return srv.(ChatServer).FindChatRoomMsg(ctx, req.(*FindChatRoomMsgRequest))
  403. }
  404. return interceptor(ctx, in, info, handler)
  405. }
  406. func _Chat_SetBlackChat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  407. in := new(SetBlackChatParam)
  408. if err := dec(in); err != nil {
  409. return nil, err
  410. }
  411. if interceptor == nil {
  412. return srv.(ChatServer).SetBlackChat(ctx, in)
  413. }
  414. info := &grpc.UnaryServerInfo{
  415. Server: srv,
  416. FullMethod: "/api.chat.Chat/SetBlackChat",
  417. }
  418. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  419. return srv.(ChatServer).SetBlackChat(ctx, req.(*SetBlackChatParam))
  420. }
  421. return interceptor(ctx, in, info, handler)
  422. }
  423. func _Chat_Report_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  424. in := new(common.ReportRequest)
  425. if err := dec(in); err != nil {
  426. return nil, err
  427. }
  428. if interceptor == nil {
  429. return srv.(ChatServer).Report(ctx, in)
  430. }
  431. info := &grpc.UnaryServerInfo{
  432. Server: srv,
  433. FullMethod: "/api.chat.Chat/Report",
  434. }
  435. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  436. return srv.(ChatServer).Report(ctx, req.(*common.ReportRequest))
  437. }
  438. return interceptor(ctx, in, info, handler)
  439. }
  440. func _Chat_PartnerGetAward_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  441. in := new(PartnerGetAwardRequest)
  442. if err := dec(in); err != nil {
  443. return nil, err
  444. }
  445. if interceptor == nil {
  446. return srv.(ChatServer).PartnerGetAward(ctx, in)
  447. }
  448. info := &grpc.UnaryServerInfo{
  449. Server: srv,
  450. FullMethod: "/api.chat.Chat/PartnerGetAward",
  451. }
  452. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  453. return srv.(ChatServer).PartnerGetAward(ctx, req.(*PartnerGetAwardRequest))
  454. }
  455. return interceptor(ctx, in, info, handler)
  456. }
  457. func _Chat_FindRoomCardMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  458. in := new(FindRoomCardMsgRequest)
  459. if err := dec(in); err != nil {
  460. return nil, err
  461. }
  462. if interceptor == nil {
  463. return srv.(ChatServer).FindRoomCardMsg(ctx, in)
  464. }
  465. info := &grpc.UnaryServerInfo{
  466. Server: srv,
  467. FullMethod: "/api.chat.Chat/FindRoomCardMsg",
  468. }
  469. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  470. return srv.(ChatServer).FindRoomCardMsg(ctx, req.(*FindRoomCardMsgRequest))
  471. }
  472. return interceptor(ctx, in, info, handler)
  473. }
  474. func _Chat_FindNotReplyNum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  475. in := new(PartnerFindRoomListRequest)
  476. if err := dec(in); err != nil {
  477. return nil, err
  478. }
  479. if interceptor == nil {
  480. return srv.(ChatServer).FindNotReplyNum(ctx, in)
  481. }
  482. info := &grpc.UnaryServerInfo{
  483. Server: srv,
  484. FullMethod: "/api.chat.Chat/FindNotReplyNum",
  485. }
  486. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  487. return srv.(ChatServer).FindNotReplyNum(ctx, req.(*PartnerFindRoomListRequest))
  488. }
  489. return interceptor(ctx, in, info, handler)
  490. }
  491. // Chat_ServiceDesc is the grpc.ServiceDesc for Chat service.
  492. // It's only intended for direct use with grpc.RegisterService,
  493. // and not to be introspected or modified (even as a copy)
  494. var Chat_ServiceDesc = grpc.ServiceDesc{
  495. ServiceName: "api.chat.Chat",
  496. HandlerType: (*ChatServer)(nil),
  497. Methods: []grpc.MethodDesc{
  498. {
  499. MethodName: "CheckUserPartnerIsRelationship",
  500. Handler: _Chat_CheckUserPartnerIsRelationship_Handler,
  501. },
  502. {
  503. MethodName: "CreateChatRoom",
  504. Handler: _Chat_CreateChatRoom_Handler,
  505. },
  506. {
  507. MethodName: "FindOnlinePersonList",
  508. Handler: _Chat_FindOnlinePersonList_Handler,
  509. },
  510. {
  511. MethodName: "FindRecommendPersonList",
  512. Handler: _Chat_FindRecommendPersonList_Handler,
  513. },
  514. {
  515. MethodName: "PartnerFindRoomList",
  516. Handler: _Chat_PartnerFindRoomList_Handler,
  517. },
  518. {
  519. MethodName: "UserFindRoomList",
  520. Handler: _Chat_UserFindRoomList_Handler,
  521. },
  522. {
  523. MethodName: "Receive",
  524. Handler: _Chat_Receive_Handler,
  525. },
  526. {
  527. MethodName: "FindChatRecordList",
  528. Handler: _Chat_FindChatRecordList_Handler,
  529. },
  530. {
  531. MethodName: "FindChatRoomMsg",
  532. Handler: _Chat_FindChatRoomMsg_Handler,
  533. },
  534. {
  535. MethodName: "SetBlackChat",
  536. Handler: _Chat_SetBlackChat_Handler,
  537. },
  538. {
  539. MethodName: "Report",
  540. Handler: _Chat_Report_Handler,
  541. },
  542. {
  543. MethodName: "PartnerGetAward",
  544. Handler: _Chat_PartnerGetAward_Handler,
  545. },
  546. {
  547. MethodName: "FindRoomCardMsg",
  548. Handler: _Chat_FindRoomCardMsg_Handler,
  549. },
  550. {
  551. MethodName: "FindNotReplyNum",
  552. Handler: _Chat_FindNotReplyNum_Handler,
  553. },
  554. },
  555. Streams: []grpc.StreamDesc{},
  556. Metadata: "chat.proto",
  557. }