chat_grpc.pb.go 24 KB

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