chat_grpc.pb.go 39 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015
  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. CreateScrip(ctx context.Context, in *common.CreateScripRequest, opts ...grpc.CallOption) (*common.ScripID, error)
  50. // 删除纸条
  51. DeleteScrip(ctx context.Context, in *common.DeleteScripRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  52. // 查询自己的小纸条
  53. FindMyScrip(ctx context.Context, in *common.FindScripRequest, opts ...grpc.CallOption) (*common.ScripReply, error)
  54. // 查询别人的小纸条
  55. FindOtherScrip(ctx context.Context, in *common.FindOtherScripRequest, opts ...grpc.CallOption) (*common.ScripReply, error)
  56. // 查询随机纸条列表
  57. FindRecommendScrip(ctx context.Context, in *common.FindScripRequest, opts ...grpc.CallOption) (*common.ScripReply, error)
  58. // 用户查看纸条
  59. PersonLookScrip(ctx context.Context, in *common.PersonLookScripRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  60. // 用户点击回看
  61. PersonClickLookBack(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.ScripInfo, error)
  62. // 回复小纸条
  63. PersonReplyScrip(ctx context.Context, in *common.ReplyScripRequest, opts ...grpc.CallOption) (*common.ChatRecordInfo, error)
  64. // 获取假弹窗
  65. GetWindowInfo(ctx context.Context, in *common.MatchingRequest, opts ...grpc.CallOption) (*WindowInfo, error)
  66. // 随机匹配
  67. GetRandomMatching(ctx context.Context, in *common.MatchingRequest, opts ...grpc.CallOption) (*GetRandomMatchingReply, error)
  68. }
  69. type chatClient struct {
  70. cc grpc.ClientConnInterface
  71. }
  72. func NewChatClient(cc grpc.ClientConnInterface) ChatClient {
  73. return &chatClient{cc}
  74. }
  75. func (c *chatClient) CheckUserPartnerIsRelationship(ctx context.Context, in *common.UserAndPartnerIdentifyIdParam, opts ...grpc.CallOption) (*CheckUserPartnerIsRelationshipReply, error) {
  76. out := new(CheckUserPartnerIsRelationshipReply)
  77. err := c.cc.Invoke(ctx, "/api.chat.Chat/CheckUserPartnerIsRelationship", in, out, opts...)
  78. if err != nil {
  79. return nil, err
  80. }
  81. return out, nil
  82. }
  83. func (c *chatClient) CreateChatRoom(ctx context.Context, in *CreateChatRoomParam, opts ...grpc.CallOption) (*RoomReply, error) {
  84. out := new(RoomReply)
  85. err := c.cc.Invoke(ctx, "/api.chat.Chat/CreateChatRoom", in, out, opts...)
  86. if err != nil {
  87. return nil, err
  88. }
  89. return out, nil
  90. }
  91. func (c *chatClient) FindOnlinePersonList(ctx context.Context, in *common.ListPageAndPersonRequest, opts ...grpc.CallOption) (*common.RecommendPersonListReply, error) {
  92. out := new(common.RecommendPersonListReply)
  93. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindOnlinePersonList", in, out, opts...)
  94. if err != nil {
  95. return nil, err
  96. }
  97. return out, nil
  98. }
  99. func (c *chatClient) FindRecommendPersonList(ctx context.Context, in *FindRecommendPersonListRequest, opts ...grpc.CallOption) (*common.RecommendPersonListReply, error) {
  100. out := new(common.RecommendPersonListReply)
  101. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindRecommendPersonList", in, out, opts...)
  102. if err != nil {
  103. return nil, err
  104. }
  105. return out, nil
  106. }
  107. func (c *chatClient) PartnerFindRoomList(ctx context.Context, in *PartnerFindRoomListRequest, opts ...grpc.CallOption) (*PartnerFindRoomListReply, error) {
  108. out := new(PartnerFindRoomListReply)
  109. err := c.cc.Invoke(ctx, "/api.chat.Chat/PartnerFindRoomList", in, out, opts...)
  110. if err != nil {
  111. return nil, err
  112. }
  113. return out, nil
  114. }
  115. func (c *chatClient) UserFindRoomList(ctx context.Context, in *UserFindRoomListRequest, opts ...grpc.CallOption) (*UserFindRoomListReply, error) {
  116. out := new(UserFindRoomListReply)
  117. err := c.cc.Invoke(ctx, "/api.chat.Chat/UserFindRoomList", in, out, opts...)
  118. if err != nil {
  119. return nil, err
  120. }
  121. return out, nil
  122. }
  123. func (c *chatClient) Receive(ctx context.Context, in *ReceiveRequest, opts ...grpc.CallOption) (*ReceiveReply, error) {
  124. out := new(ReceiveReply)
  125. err := c.cc.Invoke(ctx, "/api.chat.Chat/Receive", in, out, opts...)
  126. if err != nil {
  127. return nil, err
  128. }
  129. return out, nil
  130. }
  131. func (c *chatClient) FindChatRecordList(ctx context.Context, in *FindChatRecordListRequest, opts ...grpc.CallOption) (*common.ChatRecordListReply, error) {
  132. out := new(common.ChatRecordListReply)
  133. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindChatRecordList", in, out, opts...)
  134. if err != nil {
  135. return nil, err
  136. }
  137. return out, nil
  138. }
  139. func (c *chatClient) FindChatRoomMsg(ctx context.Context, in *FindChatRoomMsgRequest, opts ...grpc.CallOption) (*common.ChatRoomMsg, error) {
  140. out := new(common.ChatRoomMsg)
  141. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindChatRoomMsg", in, out, opts...)
  142. if err != nil {
  143. return nil, err
  144. }
  145. return out, nil
  146. }
  147. func (c *chatClient) SetBlackChat(ctx context.Context, in *SetBlackChatParam, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  148. out := new(emptypb.Empty)
  149. err := c.cc.Invoke(ctx, "/api.chat.Chat/SetBlackChat", in, out, opts...)
  150. if err != nil {
  151. return nil, err
  152. }
  153. return out, nil
  154. }
  155. func (c *chatClient) DeleteChat(ctx context.Context, in *SetBlackChatParam, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  156. out := new(emptypb.Empty)
  157. err := c.cc.Invoke(ctx, "/api.chat.Chat/DeleteChat", in, out, opts...)
  158. if err != nil {
  159. return nil, err
  160. }
  161. return out, nil
  162. }
  163. func (c *chatClient) Report(ctx context.Context, in *common.ReportRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  164. out := new(emptypb.Empty)
  165. err := c.cc.Invoke(ctx, "/api.chat.Chat/Report", in, out, opts...)
  166. if err != nil {
  167. return nil, err
  168. }
  169. return out, nil
  170. }
  171. func (c *chatClient) PartnerGetAward(ctx context.Context, in *PartnerGetAwardRequest, opts ...grpc.CallOption) (*PartnerGetAwardReply, error) {
  172. out := new(PartnerGetAwardReply)
  173. err := c.cc.Invoke(ctx, "/api.chat.Chat/PartnerGetAward", in, out, opts...)
  174. if err != nil {
  175. return nil, err
  176. }
  177. return out, nil
  178. }
  179. func (c *chatClient) FindRoomCardMsg(ctx context.Context, in *FindRoomCardMsgRequest, opts ...grpc.CallOption) (*common.RoomChatMsg, error) {
  180. out := new(common.RoomChatMsg)
  181. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindRoomCardMsg", in, out, opts...)
  182. if err != nil {
  183. return nil, err
  184. }
  185. return out, nil
  186. }
  187. func (c *chatClient) FindNotReplyNum(ctx context.Context, in *common.IdentifyIdRequest, opts ...grpc.CallOption) (*FindNotReplyNumReply, error) {
  188. out := new(FindNotReplyNumReply)
  189. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindNotReplyNum", in, out, opts...)
  190. if err != nil {
  191. return nil, err
  192. }
  193. return out, nil
  194. }
  195. func (c *chatClient) CreateScrip(ctx context.Context, in *common.CreateScripRequest, opts ...grpc.CallOption) (*common.ScripID, error) {
  196. out := new(common.ScripID)
  197. err := c.cc.Invoke(ctx, "/api.chat.Chat/CreateScrip", in, out, opts...)
  198. if err != nil {
  199. return nil, err
  200. }
  201. return out, nil
  202. }
  203. func (c *chatClient) DeleteScrip(ctx context.Context, in *common.DeleteScripRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  204. out := new(emptypb.Empty)
  205. err := c.cc.Invoke(ctx, "/api.chat.Chat/DeleteScrip", in, out, opts...)
  206. if err != nil {
  207. return nil, err
  208. }
  209. return out, nil
  210. }
  211. func (c *chatClient) FindMyScrip(ctx context.Context, in *common.FindScripRequest, opts ...grpc.CallOption) (*common.ScripReply, error) {
  212. out := new(common.ScripReply)
  213. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindMyScrip", in, out, opts...)
  214. if err != nil {
  215. return nil, err
  216. }
  217. return out, nil
  218. }
  219. func (c *chatClient) FindOtherScrip(ctx context.Context, in *common.FindOtherScripRequest, opts ...grpc.CallOption) (*common.ScripReply, error) {
  220. out := new(common.ScripReply)
  221. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindOtherScrip", in, out, opts...)
  222. if err != nil {
  223. return nil, err
  224. }
  225. return out, nil
  226. }
  227. func (c *chatClient) FindRecommendScrip(ctx context.Context, in *common.FindScripRequest, opts ...grpc.CallOption) (*common.ScripReply, error) {
  228. out := new(common.ScripReply)
  229. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindRecommendScrip", in, out, opts...)
  230. if err != nil {
  231. return nil, err
  232. }
  233. return out, nil
  234. }
  235. func (c *chatClient) PersonLookScrip(ctx context.Context, in *common.PersonLookScripRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  236. out := new(emptypb.Empty)
  237. err := c.cc.Invoke(ctx, "/api.chat.Chat/PersonLookScrip", in, out, opts...)
  238. if err != nil {
  239. return nil, err
  240. }
  241. return out, nil
  242. }
  243. func (c *chatClient) PersonClickLookBack(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.ScripInfo, error) {
  244. out := new(common.ScripInfo)
  245. err := c.cc.Invoke(ctx, "/api.chat.Chat/PersonClickLookBack", in, out, opts...)
  246. if err != nil {
  247. return nil, err
  248. }
  249. return out, nil
  250. }
  251. func (c *chatClient) PersonReplyScrip(ctx context.Context, in *common.ReplyScripRequest, opts ...grpc.CallOption) (*common.ChatRecordInfo, error) {
  252. out := new(common.ChatRecordInfo)
  253. err := c.cc.Invoke(ctx, "/api.chat.Chat/PersonReplyScrip", in, out, opts...)
  254. if err != nil {
  255. return nil, err
  256. }
  257. return out, nil
  258. }
  259. func (c *chatClient) GetWindowInfo(ctx context.Context, in *common.MatchingRequest, opts ...grpc.CallOption) (*WindowInfo, error) {
  260. out := new(WindowInfo)
  261. err := c.cc.Invoke(ctx, "/api.chat.Chat/GetWindowInfo", in, out, opts...)
  262. if err != nil {
  263. return nil, err
  264. }
  265. return out, nil
  266. }
  267. func (c *chatClient) GetRandomMatching(ctx context.Context, in *common.MatchingRequest, opts ...grpc.CallOption) (*GetRandomMatchingReply, error) {
  268. out := new(GetRandomMatchingReply)
  269. err := c.cc.Invoke(ctx, "/api.chat.Chat/GetRandomMatching", in, out, opts...)
  270. if err != nil {
  271. return nil, err
  272. }
  273. return out, nil
  274. }
  275. // ChatServer is the server API for Chat service.
  276. // All implementations must embed UnimplementedChatServer
  277. // for forward compatibility
  278. type ChatServer interface {
  279. // 检查用户是否与接待员聊天
  280. CheckUserPartnerIsRelationship(context.Context, *common.UserAndPartnerIdentifyIdParam) (*CheckUserPartnerIsRelationshipReply, error)
  281. // 创建聊天房间
  282. CreateChatRoom(context.Context, *CreateChatRoomParam) (*RoomReply, error)
  283. // 查询在线人的列表
  284. FindOnlinePersonList(context.Context, *common.ListPageAndPersonRequest) (*common.RecommendPersonListReply, error)
  285. // 查询推荐人的列表
  286. FindRecommendPersonList(context.Context, *FindRecommendPersonListRequest) (*common.RecommendPersonListReply, error)
  287. // 接待员查询房间列表
  288. PartnerFindRoomList(context.Context, *PartnerFindRoomListRequest) (*PartnerFindRoomListReply, error)
  289. // 用户查询房间列表
  290. UserFindRoomList(context.Context, *UserFindRoomListRequest) (*UserFindRoomListReply, error)
  291. Receive(context.Context, *ReceiveRequest) (*ReceiveReply, error)
  292. // 查询聊天记录
  293. FindChatRecordList(context.Context, *FindChatRecordListRequest) (*common.ChatRecordListReply, error)
  294. // 房间信息
  295. FindChatRoomMsg(context.Context, *FindChatRoomMsgRequest) (*common.ChatRoomMsg, error)
  296. // 拉黑
  297. SetBlackChat(context.Context, *SetBlackChatParam) (*emptypb.Empty, error)
  298. // 删除房间
  299. DeleteChat(context.Context, *SetBlackChatParam) (*emptypb.Empty, error)
  300. // 拉黑
  301. Report(context.Context, *common.ReportRequest) (*emptypb.Empty, error)
  302. // 接待员领取开通奖励
  303. PartnerGetAward(context.Context, *PartnerGetAwardRequest) (*PartnerGetAwardReply, error)
  304. // 房间信息
  305. FindRoomCardMsg(context.Context, *FindRoomCardMsgRequest) (*common.RoomChatMsg, error)
  306. // 查询未处理的数据
  307. FindNotReplyNum(context.Context, *common.IdentifyIdRequest) (*FindNotReplyNumReply, error)
  308. // 创建纸条
  309. CreateScrip(context.Context, *common.CreateScripRequest) (*common.ScripID, error)
  310. // 删除纸条
  311. DeleteScrip(context.Context, *common.DeleteScripRequest) (*emptypb.Empty, error)
  312. // 查询自己的小纸条
  313. FindMyScrip(context.Context, *common.FindScripRequest) (*common.ScripReply, error)
  314. // 查询别人的小纸条
  315. FindOtherScrip(context.Context, *common.FindOtherScripRequest) (*common.ScripReply, error)
  316. // 查询随机纸条列表
  317. FindRecommendScrip(context.Context, *common.FindScripRequest) (*common.ScripReply, error)
  318. // 用户查看纸条
  319. PersonLookScrip(context.Context, *common.PersonLookScripRequest) (*emptypb.Empty, error)
  320. // 用户点击回看
  321. PersonClickLookBack(context.Context, *common.PersonParam) (*common.ScripInfo, error)
  322. // 回复小纸条
  323. PersonReplyScrip(context.Context, *common.ReplyScripRequest) (*common.ChatRecordInfo, error)
  324. // 获取假弹窗
  325. GetWindowInfo(context.Context, *common.MatchingRequest) (*WindowInfo, error)
  326. // 随机匹配
  327. GetRandomMatching(context.Context, *common.MatchingRequest) (*GetRandomMatchingReply, error)
  328. mustEmbedUnimplementedChatServer()
  329. }
  330. // UnimplementedChatServer must be embedded to have forward compatible implementations.
  331. type UnimplementedChatServer struct {
  332. }
  333. func (UnimplementedChatServer) CheckUserPartnerIsRelationship(context.Context, *common.UserAndPartnerIdentifyIdParam) (*CheckUserPartnerIsRelationshipReply, error) {
  334. return nil, status.Errorf(codes.Unimplemented, "method CheckUserPartnerIsRelationship not implemented")
  335. }
  336. func (UnimplementedChatServer) CreateChatRoom(context.Context, *CreateChatRoomParam) (*RoomReply, error) {
  337. return nil, status.Errorf(codes.Unimplemented, "method CreateChatRoom not implemented")
  338. }
  339. func (UnimplementedChatServer) FindOnlinePersonList(context.Context, *common.ListPageAndPersonRequest) (*common.RecommendPersonListReply, error) {
  340. return nil, status.Errorf(codes.Unimplemented, "method FindOnlinePersonList not implemented")
  341. }
  342. func (UnimplementedChatServer) FindRecommendPersonList(context.Context, *FindRecommendPersonListRequest) (*common.RecommendPersonListReply, error) {
  343. return nil, status.Errorf(codes.Unimplemented, "method FindRecommendPersonList not implemented")
  344. }
  345. func (UnimplementedChatServer) PartnerFindRoomList(context.Context, *PartnerFindRoomListRequest) (*PartnerFindRoomListReply, error) {
  346. return nil, status.Errorf(codes.Unimplemented, "method PartnerFindRoomList not implemented")
  347. }
  348. func (UnimplementedChatServer) UserFindRoomList(context.Context, *UserFindRoomListRequest) (*UserFindRoomListReply, error) {
  349. return nil, status.Errorf(codes.Unimplemented, "method UserFindRoomList not implemented")
  350. }
  351. func (UnimplementedChatServer) Receive(context.Context, *ReceiveRequest) (*ReceiveReply, error) {
  352. return nil, status.Errorf(codes.Unimplemented, "method Receive not implemented")
  353. }
  354. func (UnimplementedChatServer) FindChatRecordList(context.Context, *FindChatRecordListRequest) (*common.ChatRecordListReply, error) {
  355. return nil, status.Errorf(codes.Unimplemented, "method FindChatRecordList not implemented")
  356. }
  357. func (UnimplementedChatServer) FindChatRoomMsg(context.Context, *FindChatRoomMsgRequest) (*common.ChatRoomMsg, error) {
  358. return nil, status.Errorf(codes.Unimplemented, "method FindChatRoomMsg not implemented")
  359. }
  360. func (UnimplementedChatServer) SetBlackChat(context.Context, *SetBlackChatParam) (*emptypb.Empty, error) {
  361. return nil, status.Errorf(codes.Unimplemented, "method SetBlackChat not implemented")
  362. }
  363. func (UnimplementedChatServer) DeleteChat(context.Context, *SetBlackChatParam) (*emptypb.Empty, error) {
  364. return nil, status.Errorf(codes.Unimplemented, "method DeleteChat not implemented")
  365. }
  366. func (UnimplementedChatServer) Report(context.Context, *common.ReportRequest) (*emptypb.Empty, error) {
  367. return nil, status.Errorf(codes.Unimplemented, "method Report not implemented")
  368. }
  369. func (UnimplementedChatServer) PartnerGetAward(context.Context, *PartnerGetAwardRequest) (*PartnerGetAwardReply, error) {
  370. return nil, status.Errorf(codes.Unimplemented, "method PartnerGetAward not implemented")
  371. }
  372. func (UnimplementedChatServer) FindRoomCardMsg(context.Context, *FindRoomCardMsgRequest) (*common.RoomChatMsg, error) {
  373. return nil, status.Errorf(codes.Unimplemented, "method FindRoomCardMsg not implemented")
  374. }
  375. func (UnimplementedChatServer) FindNotReplyNum(context.Context, *common.IdentifyIdRequest) (*FindNotReplyNumReply, error) {
  376. return nil, status.Errorf(codes.Unimplemented, "method FindNotReplyNum not implemented")
  377. }
  378. func (UnimplementedChatServer) CreateScrip(context.Context, *common.CreateScripRequest) (*common.ScripID, error) {
  379. return nil, status.Errorf(codes.Unimplemented, "method CreateScrip not implemented")
  380. }
  381. func (UnimplementedChatServer) DeleteScrip(context.Context, *common.DeleteScripRequest) (*emptypb.Empty, error) {
  382. return nil, status.Errorf(codes.Unimplemented, "method DeleteScrip not implemented")
  383. }
  384. func (UnimplementedChatServer) FindMyScrip(context.Context, *common.FindScripRequest) (*common.ScripReply, error) {
  385. return nil, status.Errorf(codes.Unimplemented, "method FindMyScrip not implemented")
  386. }
  387. func (UnimplementedChatServer) FindOtherScrip(context.Context, *common.FindOtherScripRequest) (*common.ScripReply, error) {
  388. return nil, status.Errorf(codes.Unimplemented, "method FindOtherScrip not implemented")
  389. }
  390. func (UnimplementedChatServer) FindRecommendScrip(context.Context, *common.FindScripRequest) (*common.ScripReply, error) {
  391. return nil, status.Errorf(codes.Unimplemented, "method FindRecommendScrip not implemented")
  392. }
  393. func (UnimplementedChatServer) PersonLookScrip(context.Context, *common.PersonLookScripRequest) (*emptypb.Empty, error) {
  394. return nil, status.Errorf(codes.Unimplemented, "method PersonLookScrip not implemented")
  395. }
  396. func (UnimplementedChatServer) PersonClickLookBack(context.Context, *common.PersonParam) (*common.ScripInfo, error) {
  397. return nil, status.Errorf(codes.Unimplemented, "method PersonClickLookBack not implemented")
  398. }
  399. func (UnimplementedChatServer) PersonReplyScrip(context.Context, *common.ReplyScripRequest) (*common.ChatRecordInfo, error) {
  400. return nil, status.Errorf(codes.Unimplemented, "method PersonReplyScrip not implemented")
  401. }
  402. func (UnimplementedChatServer) GetWindowInfo(context.Context, *common.MatchingRequest) (*WindowInfo, error) {
  403. return nil, status.Errorf(codes.Unimplemented, "method GetWindowInfo not implemented")
  404. }
  405. func (UnimplementedChatServer) GetRandomMatching(context.Context, *common.MatchingRequest) (*GetRandomMatchingReply, error) {
  406. return nil, status.Errorf(codes.Unimplemented, "method GetRandomMatching not implemented")
  407. }
  408. func (UnimplementedChatServer) mustEmbedUnimplementedChatServer() {}
  409. // UnsafeChatServer may be embedded to opt out of forward compatibility for this service.
  410. // Use of this interface is not recommended, as added methods to ChatServer will
  411. // result in compilation errors.
  412. type UnsafeChatServer interface {
  413. mustEmbedUnimplementedChatServer()
  414. }
  415. func RegisterChatServer(s grpc.ServiceRegistrar, srv ChatServer) {
  416. s.RegisterService(&Chat_ServiceDesc, srv)
  417. }
  418. func _Chat_CheckUserPartnerIsRelationship_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  419. in := new(common.UserAndPartnerIdentifyIdParam)
  420. if err := dec(in); err != nil {
  421. return nil, err
  422. }
  423. if interceptor == nil {
  424. return srv.(ChatServer).CheckUserPartnerIsRelationship(ctx, in)
  425. }
  426. info := &grpc.UnaryServerInfo{
  427. Server: srv,
  428. FullMethod: "/api.chat.Chat/CheckUserPartnerIsRelationship",
  429. }
  430. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  431. return srv.(ChatServer).CheckUserPartnerIsRelationship(ctx, req.(*common.UserAndPartnerIdentifyIdParam))
  432. }
  433. return interceptor(ctx, in, info, handler)
  434. }
  435. func _Chat_CreateChatRoom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  436. in := new(CreateChatRoomParam)
  437. if err := dec(in); err != nil {
  438. return nil, err
  439. }
  440. if interceptor == nil {
  441. return srv.(ChatServer).CreateChatRoom(ctx, in)
  442. }
  443. info := &grpc.UnaryServerInfo{
  444. Server: srv,
  445. FullMethod: "/api.chat.Chat/CreateChatRoom",
  446. }
  447. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  448. return srv.(ChatServer).CreateChatRoom(ctx, req.(*CreateChatRoomParam))
  449. }
  450. return interceptor(ctx, in, info, handler)
  451. }
  452. func _Chat_FindOnlinePersonList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  453. in := new(common.ListPageAndPersonRequest)
  454. if err := dec(in); err != nil {
  455. return nil, err
  456. }
  457. if interceptor == nil {
  458. return srv.(ChatServer).FindOnlinePersonList(ctx, in)
  459. }
  460. info := &grpc.UnaryServerInfo{
  461. Server: srv,
  462. FullMethod: "/api.chat.Chat/FindOnlinePersonList",
  463. }
  464. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  465. return srv.(ChatServer).FindOnlinePersonList(ctx, req.(*common.ListPageAndPersonRequest))
  466. }
  467. return interceptor(ctx, in, info, handler)
  468. }
  469. func _Chat_FindRecommendPersonList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  470. in := new(FindRecommendPersonListRequest)
  471. if err := dec(in); err != nil {
  472. return nil, err
  473. }
  474. if interceptor == nil {
  475. return srv.(ChatServer).FindRecommendPersonList(ctx, in)
  476. }
  477. info := &grpc.UnaryServerInfo{
  478. Server: srv,
  479. FullMethod: "/api.chat.Chat/FindRecommendPersonList",
  480. }
  481. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  482. return srv.(ChatServer).FindRecommendPersonList(ctx, req.(*FindRecommendPersonListRequest))
  483. }
  484. return interceptor(ctx, in, info, handler)
  485. }
  486. func _Chat_PartnerFindRoomList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  487. in := new(PartnerFindRoomListRequest)
  488. if err := dec(in); err != nil {
  489. return nil, err
  490. }
  491. if interceptor == nil {
  492. return srv.(ChatServer).PartnerFindRoomList(ctx, in)
  493. }
  494. info := &grpc.UnaryServerInfo{
  495. Server: srv,
  496. FullMethod: "/api.chat.Chat/PartnerFindRoomList",
  497. }
  498. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  499. return srv.(ChatServer).PartnerFindRoomList(ctx, req.(*PartnerFindRoomListRequest))
  500. }
  501. return interceptor(ctx, in, info, handler)
  502. }
  503. func _Chat_UserFindRoomList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  504. in := new(UserFindRoomListRequest)
  505. if err := dec(in); err != nil {
  506. return nil, err
  507. }
  508. if interceptor == nil {
  509. return srv.(ChatServer).UserFindRoomList(ctx, in)
  510. }
  511. info := &grpc.UnaryServerInfo{
  512. Server: srv,
  513. FullMethod: "/api.chat.Chat/UserFindRoomList",
  514. }
  515. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  516. return srv.(ChatServer).UserFindRoomList(ctx, req.(*UserFindRoomListRequest))
  517. }
  518. return interceptor(ctx, in, info, handler)
  519. }
  520. func _Chat_Receive_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  521. in := new(ReceiveRequest)
  522. if err := dec(in); err != nil {
  523. return nil, err
  524. }
  525. if interceptor == nil {
  526. return srv.(ChatServer).Receive(ctx, in)
  527. }
  528. info := &grpc.UnaryServerInfo{
  529. Server: srv,
  530. FullMethod: "/api.chat.Chat/Receive",
  531. }
  532. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  533. return srv.(ChatServer).Receive(ctx, req.(*ReceiveRequest))
  534. }
  535. return interceptor(ctx, in, info, handler)
  536. }
  537. func _Chat_FindChatRecordList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  538. in := new(FindChatRecordListRequest)
  539. if err := dec(in); err != nil {
  540. return nil, err
  541. }
  542. if interceptor == nil {
  543. return srv.(ChatServer).FindChatRecordList(ctx, in)
  544. }
  545. info := &grpc.UnaryServerInfo{
  546. Server: srv,
  547. FullMethod: "/api.chat.Chat/FindChatRecordList",
  548. }
  549. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  550. return srv.(ChatServer).FindChatRecordList(ctx, req.(*FindChatRecordListRequest))
  551. }
  552. return interceptor(ctx, in, info, handler)
  553. }
  554. func _Chat_FindChatRoomMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  555. in := new(FindChatRoomMsgRequest)
  556. if err := dec(in); err != nil {
  557. return nil, err
  558. }
  559. if interceptor == nil {
  560. return srv.(ChatServer).FindChatRoomMsg(ctx, in)
  561. }
  562. info := &grpc.UnaryServerInfo{
  563. Server: srv,
  564. FullMethod: "/api.chat.Chat/FindChatRoomMsg",
  565. }
  566. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  567. return srv.(ChatServer).FindChatRoomMsg(ctx, req.(*FindChatRoomMsgRequest))
  568. }
  569. return interceptor(ctx, in, info, handler)
  570. }
  571. func _Chat_SetBlackChat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  572. in := new(SetBlackChatParam)
  573. if err := dec(in); err != nil {
  574. return nil, err
  575. }
  576. if interceptor == nil {
  577. return srv.(ChatServer).SetBlackChat(ctx, in)
  578. }
  579. info := &grpc.UnaryServerInfo{
  580. Server: srv,
  581. FullMethod: "/api.chat.Chat/SetBlackChat",
  582. }
  583. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  584. return srv.(ChatServer).SetBlackChat(ctx, req.(*SetBlackChatParam))
  585. }
  586. return interceptor(ctx, in, info, handler)
  587. }
  588. func _Chat_DeleteChat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  589. in := new(SetBlackChatParam)
  590. if err := dec(in); err != nil {
  591. return nil, err
  592. }
  593. if interceptor == nil {
  594. return srv.(ChatServer).DeleteChat(ctx, in)
  595. }
  596. info := &grpc.UnaryServerInfo{
  597. Server: srv,
  598. FullMethod: "/api.chat.Chat/DeleteChat",
  599. }
  600. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  601. return srv.(ChatServer).DeleteChat(ctx, req.(*SetBlackChatParam))
  602. }
  603. return interceptor(ctx, in, info, handler)
  604. }
  605. func _Chat_Report_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  606. in := new(common.ReportRequest)
  607. if err := dec(in); err != nil {
  608. return nil, err
  609. }
  610. if interceptor == nil {
  611. return srv.(ChatServer).Report(ctx, in)
  612. }
  613. info := &grpc.UnaryServerInfo{
  614. Server: srv,
  615. FullMethod: "/api.chat.Chat/Report",
  616. }
  617. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  618. return srv.(ChatServer).Report(ctx, req.(*common.ReportRequest))
  619. }
  620. return interceptor(ctx, in, info, handler)
  621. }
  622. func _Chat_PartnerGetAward_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  623. in := new(PartnerGetAwardRequest)
  624. if err := dec(in); err != nil {
  625. return nil, err
  626. }
  627. if interceptor == nil {
  628. return srv.(ChatServer).PartnerGetAward(ctx, in)
  629. }
  630. info := &grpc.UnaryServerInfo{
  631. Server: srv,
  632. FullMethod: "/api.chat.Chat/PartnerGetAward",
  633. }
  634. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  635. return srv.(ChatServer).PartnerGetAward(ctx, req.(*PartnerGetAwardRequest))
  636. }
  637. return interceptor(ctx, in, info, handler)
  638. }
  639. func _Chat_FindRoomCardMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  640. in := new(FindRoomCardMsgRequest)
  641. if err := dec(in); err != nil {
  642. return nil, err
  643. }
  644. if interceptor == nil {
  645. return srv.(ChatServer).FindRoomCardMsg(ctx, in)
  646. }
  647. info := &grpc.UnaryServerInfo{
  648. Server: srv,
  649. FullMethod: "/api.chat.Chat/FindRoomCardMsg",
  650. }
  651. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  652. return srv.(ChatServer).FindRoomCardMsg(ctx, req.(*FindRoomCardMsgRequest))
  653. }
  654. return interceptor(ctx, in, info, handler)
  655. }
  656. func _Chat_FindNotReplyNum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  657. in := new(common.IdentifyIdRequest)
  658. if err := dec(in); err != nil {
  659. return nil, err
  660. }
  661. if interceptor == nil {
  662. return srv.(ChatServer).FindNotReplyNum(ctx, in)
  663. }
  664. info := &grpc.UnaryServerInfo{
  665. Server: srv,
  666. FullMethod: "/api.chat.Chat/FindNotReplyNum",
  667. }
  668. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  669. return srv.(ChatServer).FindNotReplyNum(ctx, req.(*common.IdentifyIdRequest))
  670. }
  671. return interceptor(ctx, in, info, handler)
  672. }
  673. func _Chat_CreateScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  674. in := new(common.CreateScripRequest)
  675. if err := dec(in); err != nil {
  676. return nil, err
  677. }
  678. if interceptor == nil {
  679. return srv.(ChatServer).CreateScrip(ctx, in)
  680. }
  681. info := &grpc.UnaryServerInfo{
  682. Server: srv,
  683. FullMethod: "/api.chat.Chat/CreateScrip",
  684. }
  685. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  686. return srv.(ChatServer).CreateScrip(ctx, req.(*common.CreateScripRequest))
  687. }
  688. return interceptor(ctx, in, info, handler)
  689. }
  690. func _Chat_DeleteScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  691. in := new(common.DeleteScripRequest)
  692. if err := dec(in); err != nil {
  693. return nil, err
  694. }
  695. if interceptor == nil {
  696. return srv.(ChatServer).DeleteScrip(ctx, in)
  697. }
  698. info := &grpc.UnaryServerInfo{
  699. Server: srv,
  700. FullMethod: "/api.chat.Chat/DeleteScrip",
  701. }
  702. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  703. return srv.(ChatServer).DeleteScrip(ctx, req.(*common.DeleteScripRequest))
  704. }
  705. return interceptor(ctx, in, info, handler)
  706. }
  707. func _Chat_FindMyScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  708. in := new(common.FindScripRequest)
  709. if err := dec(in); err != nil {
  710. return nil, err
  711. }
  712. if interceptor == nil {
  713. return srv.(ChatServer).FindMyScrip(ctx, in)
  714. }
  715. info := &grpc.UnaryServerInfo{
  716. Server: srv,
  717. FullMethod: "/api.chat.Chat/FindMyScrip",
  718. }
  719. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  720. return srv.(ChatServer).FindMyScrip(ctx, req.(*common.FindScripRequest))
  721. }
  722. return interceptor(ctx, in, info, handler)
  723. }
  724. func _Chat_FindOtherScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  725. in := new(common.FindOtherScripRequest)
  726. if err := dec(in); err != nil {
  727. return nil, err
  728. }
  729. if interceptor == nil {
  730. return srv.(ChatServer).FindOtherScrip(ctx, in)
  731. }
  732. info := &grpc.UnaryServerInfo{
  733. Server: srv,
  734. FullMethod: "/api.chat.Chat/FindOtherScrip",
  735. }
  736. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  737. return srv.(ChatServer).FindOtherScrip(ctx, req.(*common.FindOtherScripRequest))
  738. }
  739. return interceptor(ctx, in, info, handler)
  740. }
  741. func _Chat_FindRecommendScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  742. in := new(common.FindScripRequest)
  743. if err := dec(in); err != nil {
  744. return nil, err
  745. }
  746. if interceptor == nil {
  747. return srv.(ChatServer).FindRecommendScrip(ctx, in)
  748. }
  749. info := &grpc.UnaryServerInfo{
  750. Server: srv,
  751. FullMethod: "/api.chat.Chat/FindRecommendScrip",
  752. }
  753. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  754. return srv.(ChatServer).FindRecommendScrip(ctx, req.(*common.FindScripRequest))
  755. }
  756. return interceptor(ctx, in, info, handler)
  757. }
  758. func _Chat_PersonLookScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  759. in := new(common.PersonLookScripRequest)
  760. if err := dec(in); err != nil {
  761. return nil, err
  762. }
  763. if interceptor == nil {
  764. return srv.(ChatServer).PersonLookScrip(ctx, in)
  765. }
  766. info := &grpc.UnaryServerInfo{
  767. Server: srv,
  768. FullMethod: "/api.chat.Chat/PersonLookScrip",
  769. }
  770. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  771. return srv.(ChatServer).PersonLookScrip(ctx, req.(*common.PersonLookScripRequest))
  772. }
  773. return interceptor(ctx, in, info, handler)
  774. }
  775. func _Chat_PersonClickLookBack_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  776. in := new(common.PersonParam)
  777. if err := dec(in); err != nil {
  778. return nil, err
  779. }
  780. if interceptor == nil {
  781. return srv.(ChatServer).PersonClickLookBack(ctx, in)
  782. }
  783. info := &grpc.UnaryServerInfo{
  784. Server: srv,
  785. FullMethod: "/api.chat.Chat/PersonClickLookBack",
  786. }
  787. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  788. return srv.(ChatServer).PersonClickLookBack(ctx, req.(*common.PersonParam))
  789. }
  790. return interceptor(ctx, in, info, handler)
  791. }
  792. func _Chat_PersonReplyScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  793. in := new(common.ReplyScripRequest)
  794. if err := dec(in); err != nil {
  795. return nil, err
  796. }
  797. if interceptor == nil {
  798. return srv.(ChatServer).PersonReplyScrip(ctx, in)
  799. }
  800. info := &grpc.UnaryServerInfo{
  801. Server: srv,
  802. FullMethod: "/api.chat.Chat/PersonReplyScrip",
  803. }
  804. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  805. return srv.(ChatServer).PersonReplyScrip(ctx, req.(*common.ReplyScripRequest))
  806. }
  807. return interceptor(ctx, in, info, handler)
  808. }
  809. func _Chat_GetWindowInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  810. in := new(common.MatchingRequest)
  811. if err := dec(in); err != nil {
  812. return nil, err
  813. }
  814. if interceptor == nil {
  815. return srv.(ChatServer).GetWindowInfo(ctx, in)
  816. }
  817. info := &grpc.UnaryServerInfo{
  818. Server: srv,
  819. FullMethod: "/api.chat.Chat/GetWindowInfo",
  820. }
  821. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  822. return srv.(ChatServer).GetWindowInfo(ctx, req.(*common.MatchingRequest))
  823. }
  824. return interceptor(ctx, in, info, handler)
  825. }
  826. func _Chat_GetRandomMatching_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  827. in := new(common.MatchingRequest)
  828. if err := dec(in); err != nil {
  829. return nil, err
  830. }
  831. if interceptor == nil {
  832. return srv.(ChatServer).GetRandomMatching(ctx, in)
  833. }
  834. info := &grpc.UnaryServerInfo{
  835. Server: srv,
  836. FullMethod: "/api.chat.Chat/GetRandomMatching",
  837. }
  838. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  839. return srv.(ChatServer).GetRandomMatching(ctx, req.(*common.MatchingRequest))
  840. }
  841. return interceptor(ctx, in, info, handler)
  842. }
  843. // Chat_ServiceDesc is the grpc.ServiceDesc for Chat service.
  844. // It's only intended for direct use with grpc.RegisterService,
  845. // and not to be introspected or modified (even as a copy)
  846. var Chat_ServiceDesc = grpc.ServiceDesc{
  847. ServiceName: "api.chat.Chat",
  848. HandlerType: (*ChatServer)(nil),
  849. Methods: []grpc.MethodDesc{
  850. {
  851. MethodName: "CheckUserPartnerIsRelationship",
  852. Handler: _Chat_CheckUserPartnerIsRelationship_Handler,
  853. },
  854. {
  855. MethodName: "CreateChatRoom",
  856. Handler: _Chat_CreateChatRoom_Handler,
  857. },
  858. {
  859. MethodName: "FindOnlinePersonList",
  860. Handler: _Chat_FindOnlinePersonList_Handler,
  861. },
  862. {
  863. MethodName: "FindRecommendPersonList",
  864. Handler: _Chat_FindRecommendPersonList_Handler,
  865. },
  866. {
  867. MethodName: "PartnerFindRoomList",
  868. Handler: _Chat_PartnerFindRoomList_Handler,
  869. },
  870. {
  871. MethodName: "UserFindRoomList",
  872. Handler: _Chat_UserFindRoomList_Handler,
  873. },
  874. {
  875. MethodName: "Receive",
  876. Handler: _Chat_Receive_Handler,
  877. },
  878. {
  879. MethodName: "FindChatRecordList",
  880. Handler: _Chat_FindChatRecordList_Handler,
  881. },
  882. {
  883. MethodName: "FindChatRoomMsg",
  884. Handler: _Chat_FindChatRoomMsg_Handler,
  885. },
  886. {
  887. MethodName: "SetBlackChat",
  888. Handler: _Chat_SetBlackChat_Handler,
  889. },
  890. {
  891. MethodName: "DeleteChat",
  892. Handler: _Chat_DeleteChat_Handler,
  893. },
  894. {
  895. MethodName: "Report",
  896. Handler: _Chat_Report_Handler,
  897. },
  898. {
  899. MethodName: "PartnerGetAward",
  900. Handler: _Chat_PartnerGetAward_Handler,
  901. },
  902. {
  903. MethodName: "FindRoomCardMsg",
  904. Handler: _Chat_FindRoomCardMsg_Handler,
  905. },
  906. {
  907. MethodName: "FindNotReplyNum",
  908. Handler: _Chat_FindNotReplyNum_Handler,
  909. },
  910. {
  911. MethodName: "CreateScrip",
  912. Handler: _Chat_CreateScrip_Handler,
  913. },
  914. {
  915. MethodName: "DeleteScrip",
  916. Handler: _Chat_DeleteScrip_Handler,
  917. },
  918. {
  919. MethodName: "FindMyScrip",
  920. Handler: _Chat_FindMyScrip_Handler,
  921. },
  922. {
  923. MethodName: "FindOtherScrip",
  924. Handler: _Chat_FindOtherScrip_Handler,
  925. },
  926. {
  927. MethodName: "FindRecommendScrip",
  928. Handler: _Chat_FindRecommendScrip_Handler,
  929. },
  930. {
  931. MethodName: "PersonLookScrip",
  932. Handler: _Chat_PersonLookScrip_Handler,
  933. },
  934. {
  935. MethodName: "PersonClickLookBack",
  936. Handler: _Chat_PersonClickLookBack_Handler,
  937. },
  938. {
  939. MethodName: "PersonReplyScrip",
  940. Handler: _Chat_PersonReplyScrip_Handler,
  941. },
  942. {
  943. MethodName: "GetWindowInfo",
  944. Handler: _Chat_GetWindowInfo_Handler,
  945. },
  946. {
  947. MethodName: "GetRandomMatching",
  948. Handler: _Chat_GetRandomMatching_Handler,
  949. },
  950. },
  951. Streams: []grpc.StreamDesc{},
  952. Metadata: "chat.proto",
  953. }