chat_grpc.pb.go 20 KB

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