chat_grpc.pb.go 57 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471
  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. GetMatchingPartnerInfo(ctx context.Context, in *GetMatchingPartnerInfoRequest, opts ...grpc.CallOption) (*common.GetMatchingPartnerInfoReply, error)
  70. // 接待员收藏某条记录
  71. PartnerCollect(ctx context.Context, in *PartnerCollectIDsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  72. // 接待员取消收藏某条记录
  73. PartnerDeleteCollect(ctx context.Context, in *PartnerCollectRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  74. // 查询接待员在本房间的收藏列表
  75. FindChatCollectList(ctx context.Context, in *FindChatRecordListRequest, opts ...grpc.CallOption) (*common.ChatRecordListReply, error)
  76. // 用户解锁语音
  77. UserUnlockVoice(ctx context.Context, in *UserUnlockRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  78. // 用户解锁图片
  79. UserUnlockPicture(ctx context.Context, in *UserUnlockRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  80. // 获取房间的接待员收益
  81. GetRoomProfit(ctx context.Context, in *common.RoomIDRequest, opts ...grpc.CallOption) (*GetRoomProfitReply, error)
  82. // 获取在线人数
  83. GetOnlinePersonNum(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetOnlinePersonNumReply, error)
  84. // 查询用户全部的未读数
  85. FindUserAllUnreadNum(ctx context.Context, in *common.IdentifyIdRequest, opts ...grpc.CallOption) (*UnreadNumReply, error)
  86. // 查询接待员全部的未读数
  87. FindPartnerAllUnreadNum(ctx context.Context, in *common.IdentifyIdRequest, opts ...grpc.CallOption) (*UnreadNumReply, error)
  88. // 用户查询与某人的房间
  89. GetUserRoomByPerson(ctx context.Context, in *common.IdentifyIDsParam, opts ...grpc.CallOption) (*UserRoomInfo, error)
  90. // 接待员查询与某人的房间
  91. GetPartnerRoomByPerson(ctx context.Context, in *common.IdentifyIDsParam, opts ...grpc.CallOption) (*PartnerRoomInfo, error)
  92. }
  93. type chatClient struct {
  94. cc grpc.ClientConnInterface
  95. }
  96. func NewChatClient(cc grpc.ClientConnInterface) ChatClient {
  97. return &chatClient{cc}
  98. }
  99. func (c *chatClient) CheckUserPartnerIsRelationship(ctx context.Context, in *common.UserAndPartnerIdentifyIdParam, opts ...grpc.CallOption) (*CheckUserPartnerIsRelationshipReply, error) {
  100. out := new(CheckUserPartnerIsRelationshipReply)
  101. err := c.cc.Invoke(ctx, "/api.chat.Chat/CheckUserPartnerIsRelationship", in, out, opts...)
  102. if err != nil {
  103. return nil, err
  104. }
  105. return out, nil
  106. }
  107. func (c *chatClient) CreateChatRoom(ctx context.Context, in *CreateChatRoomParam, opts ...grpc.CallOption) (*RoomReply, error) {
  108. out := new(RoomReply)
  109. err := c.cc.Invoke(ctx, "/api.chat.Chat/CreateChatRoom", in, out, opts...)
  110. if err != nil {
  111. return nil, err
  112. }
  113. return out, nil
  114. }
  115. func (c *chatClient) FindOnlinePersonList(ctx context.Context, in *common.ListPageAndPersonRequest, opts ...grpc.CallOption) (*common.RecommendPersonListReply, error) {
  116. out := new(common.RecommendPersonListReply)
  117. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindOnlinePersonList", in, out, opts...)
  118. if err != nil {
  119. return nil, err
  120. }
  121. return out, nil
  122. }
  123. func (c *chatClient) FindRecommendPersonList(ctx context.Context, in *FindRecommendPersonListRequest, opts ...grpc.CallOption) (*common.RecommendPersonListReply, error) {
  124. out := new(common.RecommendPersonListReply)
  125. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindRecommendPersonList", in, out, opts...)
  126. if err != nil {
  127. return nil, err
  128. }
  129. return out, nil
  130. }
  131. func (c *chatClient) PartnerFindRoomList(ctx context.Context, in *PartnerFindRoomListRequest, opts ...grpc.CallOption) (*PartnerFindRoomListReply, error) {
  132. out := new(PartnerFindRoomListReply)
  133. err := c.cc.Invoke(ctx, "/api.chat.Chat/PartnerFindRoomList", in, out, opts...)
  134. if err != nil {
  135. return nil, err
  136. }
  137. return out, nil
  138. }
  139. func (c *chatClient) UserFindRoomList(ctx context.Context, in *UserFindRoomListRequest, opts ...grpc.CallOption) (*UserFindRoomListReply, error) {
  140. out := new(UserFindRoomListReply)
  141. err := c.cc.Invoke(ctx, "/api.chat.Chat/UserFindRoomList", in, out, opts...)
  142. if err != nil {
  143. return nil, err
  144. }
  145. return out, nil
  146. }
  147. func (c *chatClient) Receive(ctx context.Context, in *ReceiveRequest, opts ...grpc.CallOption) (*ReceiveReply, error) {
  148. out := new(ReceiveReply)
  149. err := c.cc.Invoke(ctx, "/api.chat.Chat/Receive", in, out, opts...)
  150. if err != nil {
  151. return nil, err
  152. }
  153. return out, nil
  154. }
  155. func (c *chatClient) FindChatRecordList(ctx context.Context, in *FindChatRecordListRequest, opts ...grpc.CallOption) (*common.ChatRecordListReply, error) {
  156. out := new(common.ChatRecordListReply)
  157. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindChatRecordList", in, out, opts...)
  158. if err != nil {
  159. return nil, err
  160. }
  161. return out, nil
  162. }
  163. func (c *chatClient) FindChatRoomMsg(ctx context.Context, in *FindChatRoomMsgRequest, opts ...grpc.CallOption) (*common.ChatRoomMsg, error) {
  164. out := new(common.ChatRoomMsg)
  165. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindChatRoomMsg", in, out, opts...)
  166. if err != nil {
  167. return nil, err
  168. }
  169. return out, nil
  170. }
  171. func (c *chatClient) SetBlackChat(ctx context.Context, in *SetBlackChatParam, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  172. out := new(emptypb.Empty)
  173. err := c.cc.Invoke(ctx, "/api.chat.Chat/SetBlackChat", in, out, opts...)
  174. if err != nil {
  175. return nil, err
  176. }
  177. return out, nil
  178. }
  179. func (c *chatClient) DeleteChat(ctx context.Context, in *SetBlackChatParam, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  180. out := new(emptypb.Empty)
  181. err := c.cc.Invoke(ctx, "/api.chat.Chat/DeleteChat", in, out, opts...)
  182. if err != nil {
  183. return nil, err
  184. }
  185. return out, nil
  186. }
  187. func (c *chatClient) Report(ctx context.Context, in *common.ReportRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  188. out := new(emptypb.Empty)
  189. err := c.cc.Invoke(ctx, "/api.chat.Chat/Report", in, out, opts...)
  190. if err != nil {
  191. return nil, err
  192. }
  193. return out, nil
  194. }
  195. func (c *chatClient) PartnerGetAward(ctx context.Context, in *PartnerGetAwardRequest, opts ...grpc.CallOption) (*PartnerGetAwardReply, error) {
  196. out := new(PartnerGetAwardReply)
  197. err := c.cc.Invoke(ctx, "/api.chat.Chat/PartnerGetAward", in, out, opts...)
  198. if err != nil {
  199. return nil, err
  200. }
  201. return out, nil
  202. }
  203. func (c *chatClient) FindRoomCardMsg(ctx context.Context, in *FindRoomCardMsgRequest, opts ...grpc.CallOption) (*common.RoomChatMsg, error) {
  204. out := new(common.RoomChatMsg)
  205. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindRoomCardMsg", in, out, opts...)
  206. if err != nil {
  207. return nil, err
  208. }
  209. return out, nil
  210. }
  211. func (c *chatClient) FindNotReplyNum(ctx context.Context, in *common.IdentifyIdRequest, opts ...grpc.CallOption) (*FindNotReplyNumReply, error) {
  212. out := new(FindNotReplyNumReply)
  213. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindNotReplyNum", in, out, opts...)
  214. if err != nil {
  215. return nil, err
  216. }
  217. return out, nil
  218. }
  219. func (c *chatClient) CreateScrip(ctx context.Context, in *common.CreateScripRequest, opts ...grpc.CallOption) (*common.ScripID, error) {
  220. out := new(common.ScripID)
  221. err := c.cc.Invoke(ctx, "/api.chat.Chat/CreateScrip", in, out, opts...)
  222. if err != nil {
  223. return nil, err
  224. }
  225. return out, nil
  226. }
  227. func (c *chatClient) DeleteScrip(ctx context.Context, in *common.DeleteScripRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  228. out := new(emptypb.Empty)
  229. err := c.cc.Invoke(ctx, "/api.chat.Chat/DeleteScrip", in, out, opts...)
  230. if err != nil {
  231. return nil, err
  232. }
  233. return out, nil
  234. }
  235. func (c *chatClient) FindMyScrip(ctx context.Context, in *common.FindScripRequest, opts ...grpc.CallOption) (*common.ScripReply, error) {
  236. out := new(common.ScripReply)
  237. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindMyScrip", in, out, opts...)
  238. if err != nil {
  239. return nil, err
  240. }
  241. return out, nil
  242. }
  243. func (c *chatClient) FindOtherScrip(ctx context.Context, in *common.FindOtherScripRequest, opts ...grpc.CallOption) (*common.ScripReply, error) {
  244. out := new(common.ScripReply)
  245. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindOtherScrip", in, out, opts...)
  246. if err != nil {
  247. return nil, err
  248. }
  249. return out, nil
  250. }
  251. func (c *chatClient) FindRecommendScrip(ctx context.Context, in *common.FindScripRequest, opts ...grpc.CallOption) (*common.ScripReply, error) {
  252. out := new(common.ScripReply)
  253. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindRecommendScrip", in, out, opts...)
  254. if err != nil {
  255. return nil, err
  256. }
  257. return out, nil
  258. }
  259. func (c *chatClient) PersonLookScrip(ctx context.Context, in *common.PersonLookScripRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  260. out := new(emptypb.Empty)
  261. err := c.cc.Invoke(ctx, "/api.chat.Chat/PersonLookScrip", in, out, opts...)
  262. if err != nil {
  263. return nil, err
  264. }
  265. return out, nil
  266. }
  267. func (c *chatClient) PersonClickLookBack(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.ScripInfo, error) {
  268. out := new(common.ScripInfo)
  269. err := c.cc.Invoke(ctx, "/api.chat.Chat/PersonClickLookBack", in, out, opts...)
  270. if err != nil {
  271. return nil, err
  272. }
  273. return out, nil
  274. }
  275. func (c *chatClient) PersonReplyScrip(ctx context.Context, in *common.ReplyScripRequest, opts ...grpc.CallOption) (*common.ChatRecordInfo, error) {
  276. out := new(common.ChatRecordInfo)
  277. err := c.cc.Invoke(ctx, "/api.chat.Chat/PersonReplyScrip", in, out, opts...)
  278. if err != nil {
  279. return nil, err
  280. }
  281. return out, nil
  282. }
  283. func (c *chatClient) GetWindowInfo(ctx context.Context, in *common.MatchingRequest, opts ...grpc.CallOption) (*WindowInfo, error) {
  284. out := new(WindowInfo)
  285. err := c.cc.Invoke(ctx, "/api.chat.Chat/GetWindowInfo", in, out, opts...)
  286. if err != nil {
  287. return nil, err
  288. }
  289. return out, nil
  290. }
  291. func (c *chatClient) GetRandomMatching(ctx context.Context, in *common.MatchingRequest, opts ...grpc.CallOption) (*GetRandomMatchingReply, error) {
  292. out := new(GetRandomMatchingReply)
  293. err := c.cc.Invoke(ctx, "/api.chat.Chat/GetRandomMatching", in, out, opts...)
  294. if err != nil {
  295. return nil, err
  296. }
  297. return out, nil
  298. }
  299. func (c *chatClient) GetMatchingPartnerInfo(ctx context.Context, in *GetMatchingPartnerInfoRequest, opts ...grpc.CallOption) (*common.GetMatchingPartnerInfoReply, error) {
  300. out := new(common.GetMatchingPartnerInfoReply)
  301. err := c.cc.Invoke(ctx, "/api.chat.Chat/GetMatchingPartnerInfo", in, out, opts...)
  302. if err != nil {
  303. return nil, err
  304. }
  305. return out, nil
  306. }
  307. func (c *chatClient) PartnerCollect(ctx context.Context, in *PartnerCollectIDsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  308. out := new(emptypb.Empty)
  309. err := c.cc.Invoke(ctx, "/api.chat.Chat/PartnerCollect", in, out, opts...)
  310. if err != nil {
  311. return nil, err
  312. }
  313. return out, nil
  314. }
  315. func (c *chatClient) PartnerDeleteCollect(ctx context.Context, in *PartnerCollectRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  316. out := new(emptypb.Empty)
  317. err := c.cc.Invoke(ctx, "/api.chat.Chat/PartnerDeleteCollect", in, out, opts...)
  318. if err != nil {
  319. return nil, err
  320. }
  321. return out, nil
  322. }
  323. func (c *chatClient) FindChatCollectList(ctx context.Context, in *FindChatRecordListRequest, opts ...grpc.CallOption) (*common.ChatRecordListReply, error) {
  324. out := new(common.ChatRecordListReply)
  325. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindChatCollectList", in, out, opts...)
  326. if err != nil {
  327. return nil, err
  328. }
  329. return out, nil
  330. }
  331. func (c *chatClient) UserUnlockVoice(ctx context.Context, in *UserUnlockRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  332. out := new(emptypb.Empty)
  333. err := c.cc.Invoke(ctx, "/api.chat.Chat/UserUnlockVoice", in, out, opts...)
  334. if err != nil {
  335. return nil, err
  336. }
  337. return out, nil
  338. }
  339. func (c *chatClient) UserUnlockPicture(ctx context.Context, in *UserUnlockRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  340. out := new(emptypb.Empty)
  341. err := c.cc.Invoke(ctx, "/api.chat.Chat/UserUnlockPicture", in, out, opts...)
  342. if err != nil {
  343. return nil, err
  344. }
  345. return out, nil
  346. }
  347. func (c *chatClient) GetRoomProfit(ctx context.Context, in *common.RoomIDRequest, opts ...grpc.CallOption) (*GetRoomProfitReply, error) {
  348. out := new(GetRoomProfitReply)
  349. err := c.cc.Invoke(ctx, "/api.chat.Chat/GetRoomProfit", in, out, opts...)
  350. if err != nil {
  351. return nil, err
  352. }
  353. return out, nil
  354. }
  355. func (c *chatClient) GetOnlinePersonNum(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetOnlinePersonNumReply, error) {
  356. out := new(GetOnlinePersonNumReply)
  357. err := c.cc.Invoke(ctx, "/api.chat.Chat/GetOnlinePersonNum", in, out, opts...)
  358. if err != nil {
  359. return nil, err
  360. }
  361. return out, nil
  362. }
  363. func (c *chatClient) FindUserAllUnreadNum(ctx context.Context, in *common.IdentifyIdRequest, opts ...grpc.CallOption) (*UnreadNumReply, error) {
  364. out := new(UnreadNumReply)
  365. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindUserAllUnreadNum", in, out, opts...)
  366. if err != nil {
  367. return nil, err
  368. }
  369. return out, nil
  370. }
  371. func (c *chatClient) FindPartnerAllUnreadNum(ctx context.Context, in *common.IdentifyIdRequest, opts ...grpc.CallOption) (*UnreadNumReply, error) {
  372. out := new(UnreadNumReply)
  373. err := c.cc.Invoke(ctx, "/api.chat.Chat/FindPartnerAllUnreadNum", in, out, opts...)
  374. if err != nil {
  375. return nil, err
  376. }
  377. return out, nil
  378. }
  379. func (c *chatClient) GetUserRoomByPerson(ctx context.Context, in *common.IdentifyIDsParam, opts ...grpc.CallOption) (*UserRoomInfo, error) {
  380. out := new(UserRoomInfo)
  381. err := c.cc.Invoke(ctx, "/api.chat.Chat/GetUserRoomByPerson", in, out, opts...)
  382. if err != nil {
  383. return nil, err
  384. }
  385. return out, nil
  386. }
  387. func (c *chatClient) GetPartnerRoomByPerson(ctx context.Context, in *common.IdentifyIDsParam, opts ...grpc.CallOption) (*PartnerRoomInfo, error) {
  388. out := new(PartnerRoomInfo)
  389. err := c.cc.Invoke(ctx, "/api.chat.Chat/GetPartnerRoomByPerson", in, out, opts...)
  390. if err != nil {
  391. return nil, err
  392. }
  393. return out, nil
  394. }
  395. // ChatServer is the server API for Chat service.
  396. // All implementations must embed UnimplementedChatServer
  397. // for forward compatibility
  398. type ChatServer interface {
  399. // 检查用户是否与接待员聊天
  400. CheckUserPartnerIsRelationship(context.Context, *common.UserAndPartnerIdentifyIdParam) (*CheckUserPartnerIsRelationshipReply, error)
  401. // 创建聊天房间
  402. CreateChatRoom(context.Context, *CreateChatRoomParam) (*RoomReply, error)
  403. // 查询在线人的列表
  404. FindOnlinePersonList(context.Context, *common.ListPageAndPersonRequest) (*common.RecommendPersonListReply, error)
  405. // 查询推荐人的列表
  406. FindRecommendPersonList(context.Context, *FindRecommendPersonListRequest) (*common.RecommendPersonListReply, error)
  407. // 接待员查询房间列表
  408. PartnerFindRoomList(context.Context, *PartnerFindRoomListRequest) (*PartnerFindRoomListReply, error)
  409. // 用户查询房间列表
  410. UserFindRoomList(context.Context, *UserFindRoomListRequest) (*UserFindRoomListReply, error)
  411. Receive(context.Context, *ReceiveRequest) (*ReceiveReply, error)
  412. // 查询聊天记录
  413. FindChatRecordList(context.Context, *FindChatRecordListRequest) (*common.ChatRecordListReply, error)
  414. // 房间信息
  415. FindChatRoomMsg(context.Context, *FindChatRoomMsgRequest) (*common.ChatRoomMsg, error)
  416. // 拉黑
  417. SetBlackChat(context.Context, *SetBlackChatParam) (*emptypb.Empty, error)
  418. // 删除房间
  419. DeleteChat(context.Context, *SetBlackChatParam) (*emptypb.Empty, error)
  420. // 拉黑
  421. Report(context.Context, *common.ReportRequest) (*emptypb.Empty, error)
  422. // 接待员领取开通奖励
  423. PartnerGetAward(context.Context, *PartnerGetAwardRequest) (*PartnerGetAwardReply, error)
  424. // 房间信息
  425. FindRoomCardMsg(context.Context, *FindRoomCardMsgRequest) (*common.RoomChatMsg, error)
  426. // 查询未处理的数据
  427. FindNotReplyNum(context.Context, *common.IdentifyIdRequest) (*FindNotReplyNumReply, error)
  428. // 创建纸条
  429. CreateScrip(context.Context, *common.CreateScripRequest) (*common.ScripID, error)
  430. // 删除纸条
  431. DeleteScrip(context.Context, *common.DeleteScripRequest) (*emptypb.Empty, error)
  432. // 查询自己的小纸条
  433. FindMyScrip(context.Context, *common.FindScripRequest) (*common.ScripReply, error)
  434. // 查询别人的小纸条
  435. FindOtherScrip(context.Context, *common.FindOtherScripRequest) (*common.ScripReply, error)
  436. // 查询随机纸条列表
  437. FindRecommendScrip(context.Context, *common.FindScripRequest) (*common.ScripReply, error)
  438. // 用户查看纸条
  439. PersonLookScrip(context.Context, *common.PersonLookScripRequest) (*emptypb.Empty, error)
  440. // 用户点击回看
  441. PersonClickLookBack(context.Context, *common.PersonParam) (*common.ScripInfo, error)
  442. // 回复小纸条
  443. PersonReplyScrip(context.Context, *common.ReplyScripRequest) (*common.ChatRecordInfo, error)
  444. // 获取假弹窗
  445. GetWindowInfo(context.Context, *common.MatchingRequest) (*WindowInfo, error)
  446. // 随机匹配
  447. GetRandomMatching(context.Context, *common.MatchingRequest) (*GetRandomMatchingReply, error)
  448. // 随机匹配接待员
  449. GetMatchingPartnerInfo(context.Context, *GetMatchingPartnerInfoRequest) (*common.GetMatchingPartnerInfoReply, error)
  450. // 接待员收藏某条记录
  451. PartnerCollect(context.Context, *PartnerCollectIDsRequest) (*emptypb.Empty, error)
  452. // 接待员取消收藏某条记录
  453. PartnerDeleteCollect(context.Context, *PartnerCollectRequest) (*emptypb.Empty, error)
  454. // 查询接待员在本房间的收藏列表
  455. FindChatCollectList(context.Context, *FindChatRecordListRequest) (*common.ChatRecordListReply, error)
  456. // 用户解锁语音
  457. UserUnlockVoice(context.Context, *UserUnlockRequest) (*emptypb.Empty, error)
  458. // 用户解锁图片
  459. UserUnlockPicture(context.Context, *UserUnlockRequest) (*emptypb.Empty, error)
  460. // 获取房间的接待员收益
  461. GetRoomProfit(context.Context, *common.RoomIDRequest) (*GetRoomProfitReply, error)
  462. // 获取在线人数
  463. GetOnlinePersonNum(context.Context, *emptypb.Empty) (*GetOnlinePersonNumReply, error)
  464. // 查询用户全部的未读数
  465. FindUserAllUnreadNum(context.Context, *common.IdentifyIdRequest) (*UnreadNumReply, error)
  466. // 查询接待员全部的未读数
  467. FindPartnerAllUnreadNum(context.Context, *common.IdentifyIdRequest) (*UnreadNumReply, error)
  468. // 用户查询与某人的房间
  469. GetUserRoomByPerson(context.Context, *common.IdentifyIDsParam) (*UserRoomInfo, error)
  470. // 接待员查询与某人的房间
  471. GetPartnerRoomByPerson(context.Context, *common.IdentifyIDsParam) (*PartnerRoomInfo, error)
  472. mustEmbedUnimplementedChatServer()
  473. }
  474. // UnimplementedChatServer must be embedded to have forward compatible implementations.
  475. type UnimplementedChatServer struct {
  476. }
  477. func (UnimplementedChatServer) CheckUserPartnerIsRelationship(context.Context, *common.UserAndPartnerIdentifyIdParam) (*CheckUserPartnerIsRelationshipReply, error) {
  478. return nil, status.Errorf(codes.Unimplemented, "method CheckUserPartnerIsRelationship not implemented")
  479. }
  480. func (UnimplementedChatServer) CreateChatRoom(context.Context, *CreateChatRoomParam) (*RoomReply, error) {
  481. return nil, status.Errorf(codes.Unimplemented, "method CreateChatRoom not implemented")
  482. }
  483. func (UnimplementedChatServer) FindOnlinePersonList(context.Context, *common.ListPageAndPersonRequest) (*common.RecommendPersonListReply, error) {
  484. return nil, status.Errorf(codes.Unimplemented, "method FindOnlinePersonList not implemented")
  485. }
  486. func (UnimplementedChatServer) FindRecommendPersonList(context.Context, *FindRecommendPersonListRequest) (*common.RecommendPersonListReply, error) {
  487. return nil, status.Errorf(codes.Unimplemented, "method FindRecommendPersonList not implemented")
  488. }
  489. func (UnimplementedChatServer) PartnerFindRoomList(context.Context, *PartnerFindRoomListRequest) (*PartnerFindRoomListReply, error) {
  490. return nil, status.Errorf(codes.Unimplemented, "method PartnerFindRoomList not implemented")
  491. }
  492. func (UnimplementedChatServer) UserFindRoomList(context.Context, *UserFindRoomListRequest) (*UserFindRoomListReply, error) {
  493. return nil, status.Errorf(codes.Unimplemented, "method UserFindRoomList not implemented")
  494. }
  495. func (UnimplementedChatServer) Receive(context.Context, *ReceiveRequest) (*ReceiveReply, error) {
  496. return nil, status.Errorf(codes.Unimplemented, "method Receive not implemented")
  497. }
  498. func (UnimplementedChatServer) FindChatRecordList(context.Context, *FindChatRecordListRequest) (*common.ChatRecordListReply, error) {
  499. return nil, status.Errorf(codes.Unimplemented, "method FindChatRecordList not implemented")
  500. }
  501. func (UnimplementedChatServer) FindChatRoomMsg(context.Context, *FindChatRoomMsgRequest) (*common.ChatRoomMsg, error) {
  502. return nil, status.Errorf(codes.Unimplemented, "method FindChatRoomMsg not implemented")
  503. }
  504. func (UnimplementedChatServer) SetBlackChat(context.Context, *SetBlackChatParam) (*emptypb.Empty, error) {
  505. return nil, status.Errorf(codes.Unimplemented, "method SetBlackChat not implemented")
  506. }
  507. func (UnimplementedChatServer) DeleteChat(context.Context, *SetBlackChatParam) (*emptypb.Empty, error) {
  508. return nil, status.Errorf(codes.Unimplemented, "method DeleteChat not implemented")
  509. }
  510. func (UnimplementedChatServer) Report(context.Context, *common.ReportRequest) (*emptypb.Empty, error) {
  511. return nil, status.Errorf(codes.Unimplemented, "method Report not implemented")
  512. }
  513. func (UnimplementedChatServer) PartnerGetAward(context.Context, *PartnerGetAwardRequest) (*PartnerGetAwardReply, error) {
  514. return nil, status.Errorf(codes.Unimplemented, "method PartnerGetAward not implemented")
  515. }
  516. func (UnimplementedChatServer) FindRoomCardMsg(context.Context, *FindRoomCardMsgRequest) (*common.RoomChatMsg, error) {
  517. return nil, status.Errorf(codes.Unimplemented, "method FindRoomCardMsg not implemented")
  518. }
  519. func (UnimplementedChatServer) FindNotReplyNum(context.Context, *common.IdentifyIdRequest) (*FindNotReplyNumReply, error) {
  520. return nil, status.Errorf(codes.Unimplemented, "method FindNotReplyNum not implemented")
  521. }
  522. func (UnimplementedChatServer) CreateScrip(context.Context, *common.CreateScripRequest) (*common.ScripID, error) {
  523. return nil, status.Errorf(codes.Unimplemented, "method CreateScrip not implemented")
  524. }
  525. func (UnimplementedChatServer) DeleteScrip(context.Context, *common.DeleteScripRequest) (*emptypb.Empty, error) {
  526. return nil, status.Errorf(codes.Unimplemented, "method DeleteScrip not implemented")
  527. }
  528. func (UnimplementedChatServer) FindMyScrip(context.Context, *common.FindScripRequest) (*common.ScripReply, error) {
  529. return nil, status.Errorf(codes.Unimplemented, "method FindMyScrip not implemented")
  530. }
  531. func (UnimplementedChatServer) FindOtherScrip(context.Context, *common.FindOtherScripRequest) (*common.ScripReply, error) {
  532. return nil, status.Errorf(codes.Unimplemented, "method FindOtherScrip not implemented")
  533. }
  534. func (UnimplementedChatServer) FindRecommendScrip(context.Context, *common.FindScripRequest) (*common.ScripReply, error) {
  535. return nil, status.Errorf(codes.Unimplemented, "method FindRecommendScrip not implemented")
  536. }
  537. func (UnimplementedChatServer) PersonLookScrip(context.Context, *common.PersonLookScripRequest) (*emptypb.Empty, error) {
  538. return nil, status.Errorf(codes.Unimplemented, "method PersonLookScrip not implemented")
  539. }
  540. func (UnimplementedChatServer) PersonClickLookBack(context.Context, *common.PersonParam) (*common.ScripInfo, error) {
  541. return nil, status.Errorf(codes.Unimplemented, "method PersonClickLookBack not implemented")
  542. }
  543. func (UnimplementedChatServer) PersonReplyScrip(context.Context, *common.ReplyScripRequest) (*common.ChatRecordInfo, error) {
  544. return nil, status.Errorf(codes.Unimplemented, "method PersonReplyScrip not implemented")
  545. }
  546. func (UnimplementedChatServer) GetWindowInfo(context.Context, *common.MatchingRequest) (*WindowInfo, error) {
  547. return nil, status.Errorf(codes.Unimplemented, "method GetWindowInfo not implemented")
  548. }
  549. func (UnimplementedChatServer) GetRandomMatching(context.Context, *common.MatchingRequest) (*GetRandomMatchingReply, error) {
  550. return nil, status.Errorf(codes.Unimplemented, "method GetRandomMatching not implemented")
  551. }
  552. func (UnimplementedChatServer) GetMatchingPartnerInfo(context.Context, *GetMatchingPartnerInfoRequest) (*common.GetMatchingPartnerInfoReply, error) {
  553. return nil, status.Errorf(codes.Unimplemented, "method GetMatchingPartnerInfo not implemented")
  554. }
  555. func (UnimplementedChatServer) PartnerCollect(context.Context, *PartnerCollectIDsRequest) (*emptypb.Empty, error) {
  556. return nil, status.Errorf(codes.Unimplemented, "method PartnerCollect not implemented")
  557. }
  558. func (UnimplementedChatServer) PartnerDeleteCollect(context.Context, *PartnerCollectRequest) (*emptypb.Empty, error) {
  559. return nil, status.Errorf(codes.Unimplemented, "method PartnerDeleteCollect not implemented")
  560. }
  561. func (UnimplementedChatServer) FindChatCollectList(context.Context, *FindChatRecordListRequest) (*common.ChatRecordListReply, error) {
  562. return nil, status.Errorf(codes.Unimplemented, "method FindChatCollectList not implemented")
  563. }
  564. func (UnimplementedChatServer) UserUnlockVoice(context.Context, *UserUnlockRequest) (*emptypb.Empty, error) {
  565. return nil, status.Errorf(codes.Unimplemented, "method UserUnlockVoice not implemented")
  566. }
  567. func (UnimplementedChatServer) UserUnlockPicture(context.Context, *UserUnlockRequest) (*emptypb.Empty, error) {
  568. return nil, status.Errorf(codes.Unimplemented, "method UserUnlockPicture not implemented")
  569. }
  570. func (UnimplementedChatServer) GetRoomProfit(context.Context, *common.RoomIDRequest) (*GetRoomProfitReply, error) {
  571. return nil, status.Errorf(codes.Unimplemented, "method GetRoomProfit not implemented")
  572. }
  573. func (UnimplementedChatServer) GetOnlinePersonNum(context.Context, *emptypb.Empty) (*GetOnlinePersonNumReply, error) {
  574. return nil, status.Errorf(codes.Unimplemented, "method GetOnlinePersonNum not implemented")
  575. }
  576. func (UnimplementedChatServer) FindUserAllUnreadNum(context.Context, *common.IdentifyIdRequest) (*UnreadNumReply, error) {
  577. return nil, status.Errorf(codes.Unimplemented, "method FindUserAllUnreadNum not implemented")
  578. }
  579. func (UnimplementedChatServer) FindPartnerAllUnreadNum(context.Context, *common.IdentifyIdRequest) (*UnreadNumReply, error) {
  580. return nil, status.Errorf(codes.Unimplemented, "method FindPartnerAllUnreadNum not implemented")
  581. }
  582. func (UnimplementedChatServer) GetUserRoomByPerson(context.Context, *common.IdentifyIDsParam) (*UserRoomInfo, error) {
  583. return nil, status.Errorf(codes.Unimplemented, "method GetUserRoomByPerson not implemented")
  584. }
  585. func (UnimplementedChatServer) GetPartnerRoomByPerson(context.Context, *common.IdentifyIDsParam) (*PartnerRoomInfo, error) {
  586. return nil, status.Errorf(codes.Unimplemented, "method GetPartnerRoomByPerson not implemented")
  587. }
  588. func (UnimplementedChatServer) mustEmbedUnimplementedChatServer() {}
  589. // UnsafeChatServer may be embedded to opt out of forward compatibility for this service.
  590. // Use of this interface is not recommended, as added methods to ChatServer will
  591. // result in compilation errors.
  592. type UnsafeChatServer interface {
  593. mustEmbedUnimplementedChatServer()
  594. }
  595. func RegisterChatServer(s grpc.ServiceRegistrar, srv ChatServer) {
  596. s.RegisterService(&Chat_ServiceDesc, srv)
  597. }
  598. func _Chat_CheckUserPartnerIsRelationship_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  599. in := new(common.UserAndPartnerIdentifyIdParam)
  600. if err := dec(in); err != nil {
  601. return nil, err
  602. }
  603. if interceptor == nil {
  604. return srv.(ChatServer).CheckUserPartnerIsRelationship(ctx, in)
  605. }
  606. info := &grpc.UnaryServerInfo{
  607. Server: srv,
  608. FullMethod: "/api.chat.Chat/CheckUserPartnerIsRelationship",
  609. }
  610. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  611. return srv.(ChatServer).CheckUserPartnerIsRelationship(ctx, req.(*common.UserAndPartnerIdentifyIdParam))
  612. }
  613. return interceptor(ctx, in, info, handler)
  614. }
  615. func _Chat_CreateChatRoom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  616. in := new(CreateChatRoomParam)
  617. if err := dec(in); err != nil {
  618. return nil, err
  619. }
  620. if interceptor == nil {
  621. return srv.(ChatServer).CreateChatRoom(ctx, in)
  622. }
  623. info := &grpc.UnaryServerInfo{
  624. Server: srv,
  625. FullMethod: "/api.chat.Chat/CreateChatRoom",
  626. }
  627. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  628. return srv.(ChatServer).CreateChatRoom(ctx, req.(*CreateChatRoomParam))
  629. }
  630. return interceptor(ctx, in, info, handler)
  631. }
  632. func _Chat_FindOnlinePersonList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  633. in := new(common.ListPageAndPersonRequest)
  634. if err := dec(in); err != nil {
  635. return nil, err
  636. }
  637. if interceptor == nil {
  638. return srv.(ChatServer).FindOnlinePersonList(ctx, in)
  639. }
  640. info := &grpc.UnaryServerInfo{
  641. Server: srv,
  642. FullMethod: "/api.chat.Chat/FindOnlinePersonList",
  643. }
  644. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  645. return srv.(ChatServer).FindOnlinePersonList(ctx, req.(*common.ListPageAndPersonRequest))
  646. }
  647. return interceptor(ctx, in, info, handler)
  648. }
  649. func _Chat_FindRecommendPersonList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  650. in := new(FindRecommendPersonListRequest)
  651. if err := dec(in); err != nil {
  652. return nil, err
  653. }
  654. if interceptor == nil {
  655. return srv.(ChatServer).FindRecommendPersonList(ctx, in)
  656. }
  657. info := &grpc.UnaryServerInfo{
  658. Server: srv,
  659. FullMethod: "/api.chat.Chat/FindRecommendPersonList",
  660. }
  661. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  662. return srv.(ChatServer).FindRecommendPersonList(ctx, req.(*FindRecommendPersonListRequest))
  663. }
  664. return interceptor(ctx, in, info, handler)
  665. }
  666. func _Chat_PartnerFindRoomList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  667. in := new(PartnerFindRoomListRequest)
  668. if err := dec(in); err != nil {
  669. return nil, err
  670. }
  671. if interceptor == nil {
  672. return srv.(ChatServer).PartnerFindRoomList(ctx, in)
  673. }
  674. info := &grpc.UnaryServerInfo{
  675. Server: srv,
  676. FullMethod: "/api.chat.Chat/PartnerFindRoomList",
  677. }
  678. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  679. return srv.(ChatServer).PartnerFindRoomList(ctx, req.(*PartnerFindRoomListRequest))
  680. }
  681. return interceptor(ctx, in, info, handler)
  682. }
  683. func _Chat_UserFindRoomList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  684. in := new(UserFindRoomListRequest)
  685. if err := dec(in); err != nil {
  686. return nil, err
  687. }
  688. if interceptor == nil {
  689. return srv.(ChatServer).UserFindRoomList(ctx, in)
  690. }
  691. info := &grpc.UnaryServerInfo{
  692. Server: srv,
  693. FullMethod: "/api.chat.Chat/UserFindRoomList",
  694. }
  695. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  696. return srv.(ChatServer).UserFindRoomList(ctx, req.(*UserFindRoomListRequest))
  697. }
  698. return interceptor(ctx, in, info, handler)
  699. }
  700. func _Chat_Receive_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  701. in := new(ReceiveRequest)
  702. if err := dec(in); err != nil {
  703. return nil, err
  704. }
  705. if interceptor == nil {
  706. return srv.(ChatServer).Receive(ctx, in)
  707. }
  708. info := &grpc.UnaryServerInfo{
  709. Server: srv,
  710. FullMethod: "/api.chat.Chat/Receive",
  711. }
  712. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  713. return srv.(ChatServer).Receive(ctx, req.(*ReceiveRequest))
  714. }
  715. return interceptor(ctx, in, info, handler)
  716. }
  717. func _Chat_FindChatRecordList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  718. in := new(FindChatRecordListRequest)
  719. if err := dec(in); err != nil {
  720. return nil, err
  721. }
  722. if interceptor == nil {
  723. return srv.(ChatServer).FindChatRecordList(ctx, in)
  724. }
  725. info := &grpc.UnaryServerInfo{
  726. Server: srv,
  727. FullMethod: "/api.chat.Chat/FindChatRecordList",
  728. }
  729. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  730. return srv.(ChatServer).FindChatRecordList(ctx, req.(*FindChatRecordListRequest))
  731. }
  732. return interceptor(ctx, in, info, handler)
  733. }
  734. func _Chat_FindChatRoomMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  735. in := new(FindChatRoomMsgRequest)
  736. if err := dec(in); err != nil {
  737. return nil, err
  738. }
  739. if interceptor == nil {
  740. return srv.(ChatServer).FindChatRoomMsg(ctx, in)
  741. }
  742. info := &grpc.UnaryServerInfo{
  743. Server: srv,
  744. FullMethod: "/api.chat.Chat/FindChatRoomMsg",
  745. }
  746. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  747. return srv.(ChatServer).FindChatRoomMsg(ctx, req.(*FindChatRoomMsgRequest))
  748. }
  749. return interceptor(ctx, in, info, handler)
  750. }
  751. func _Chat_SetBlackChat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  752. in := new(SetBlackChatParam)
  753. if err := dec(in); err != nil {
  754. return nil, err
  755. }
  756. if interceptor == nil {
  757. return srv.(ChatServer).SetBlackChat(ctx, in)
  758. }
  759. info := &grpc.UnaryServerInfo{
  760. Server: srv,
  761. FullMethod: "/api.chat.Chat/SetBlackChat",
  762. }
  763. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  764. return srv.(ChatServer).SetBlackChat(ctx, req.(*SetBlackChatParam))
  765. }
  766. return interceptor(ctx, in, info, handler)
  767. }
  768. func _Chat_DeleteChat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  769. in := new(SetBlackChatParam)
  770. if err := dec(in); err != nil {
  771. return nil, err
  772. }
  773. if interceptor == nil {
  774. return srv.(ChatServer).DeleteChat(ctx, in)
  775. }
  776. info := &grpc.UnaryServerInfo{
  777. Server: srv,
  778. FullMethod: "/api.chat.Chat/DeleteChat",
  779. }
  780. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  781. return srv.(ChatServer).DeleteChat(ctx, req.(*SetBlackChatParam))
  782. }
  783. return interceptor(ctx, in, info, handler)
  784. }
  785. func _Chat_Report_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  786. in := new(common.ReportRequest)
  787. if err := dec(in); err != nil {
  788. return nil, err
  789. }
  790. if interceptor == nil {
  791. return srv.(ChatServer).Report(ctx, in)
  792. }
  793. info := &grpc.UnaryServerInfo{
  794. Server: srv,
  795. FullMethod: "/api.chat.Chat/Report",
  796. }
  797. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  798. return srv.(ChatServer).Report(ctx, req.(*common.ReportRequest))
  799. }
  800. return interceptor(ctx, in, info, handler)
  801. }
  802. func _Chat_PartnerGetAward_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  803. in := new(PartnerGetAwardRequest)
  804. if err := dec(in); err != nil {
  805. return nil, err
  806. }
  807. if interceptor == nil {
  808. return srv.(ChatServer).PartnerGetAward(ctx, in)
  809. }
  810. info := &grpc.UnaryServerInfo{
  811. Server: srv,
  812. FullMethod: "/api.chat.Chat/PartnerGetAward",
  813. }
  814. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  815. return srv.(ChatServer).PartnerGetAward(ctx, req.(*PartnerGetAwardRequest))
  816. }
  817. return interceptor(ctx, in, info, handler)
  818. }
  819. func _Chat_FindRoomCardMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  820. in := new(FindRoomCardMsgRequest)
  821. if err := dec(in); err != nil {
  822. return nil, err
  823. }
  824. if interceptor == nil {
  825. return srv.(ChatServer).FindRoomCardMsg(ctx, in)
  826. }
  827. info := &grpc.UnaryServerInfo{
  828. Server: srv,
  829. FullMethod: "/api.chat.Chat/FindRoomCardMsg",
  830. }
  831. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  832. return srv.(ChatServer).FindRoomCardMsg(ctx, req.(*FindRoomCardMsgRequest))
  833. }
  834. return interceptor(ctx, in, info, handler)
  835. }
  836. func _Chat_FindNotReplyNum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  837. in := new(common.IdentifyIdRequest)
  838. if err := dec(in); err != nil {
  839. return nil, err
  840. }
  841. if interceptor == nil {
  842. return srv.(ChatServer).FindNotReplyNum(ctx, in)
  843. }
  844. info := &grpc.UnaryServerInfo{
  845. Server: srv,
  846. FullMethod: "/api.chat.Chat/FindNotReplyNum",
  847. }
  848. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  849. return srv.(ChatServer).FindNotReplyNum(ctx, req.(*common.IdentifyIdRequest))
  850. }
  851. return interceptor(ctx, in, info, handler)
  852. }
  853. func _Chat_CreateScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  854. in := new(common.CreateScripRequest)
  855. if err := dec(in); err != nil {
  856. return nil, err
  857. }
  858. if interceptor == nil {
  859. return srv.(ChatServer).CreateScrip(ctx, in)
  860. }
  861. info := &grpc.UnaryServerInfo{
  862. Server: srv,
  863. FullMethod: "/api.chat.Chat/CreateScrip",
  864. }
  865. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  866. return srv.(ChatServer).CreateScrip(ctx, req.(*common.CreateScripRequest))
  867. }
  868. return interceptor(ctx, in, info, handler)
  869. }
  870. func _Chat_DeleteScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  871. in := new(common.DeleteScripRequest)
  872. if err := dec(in); err != nil {
  873. return nil, err
  874. }
  875. if interceptor == nil {
  876. return srv.(ChatServer).DeleteScrip(ctx, in)
  877. }
  878. info := &grpc.UnaryServerInfo{
  879. Server: srv,
  880. FullMethod: "/api.chat.Chat/DeleteScrip",
  881. }
  882. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  883. return srv.(ChatServer).DeleteScrip(ctx, req.(*common.DeleteScripRequest))
  884. }
  885. return interceptor(ctx, in, info, handler)
  886. }
  887. func _Chat_FindMyScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  888. in := new(common.FindScripRequest)
  889. if err := dec(in); err != nil {
  890. return nil, err
  891. }
  892. if interceptor == nil {
  893. return srv.(ChatServer).FindMyScrip(ctx, in)
  894. }
  895. info := &grpc.UnaryServerInfo{
  896. Server: srv,
  897. FullMethod: "/api.chat.Chat/FindMyScrip",
  898. }
  899. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  900. return srv.(ChatServer).FindMyScrip(ctx, req.(*common.FindScripRequest))
  901. }
  902. return interceptor(ctx, in, info, handler)
  903. }
  904. func _Chat_FindOtherScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  905. in := new(common.FindOtherScripRequest)
  906. if err := dec(in); err != nil {
  907. return nil, err
  908. }
  909. if interceptor == nil {
  910. return srv.(ChatServer).FindOtherScrip(ctx, in)
  911. }
  912. info := &grpc.UnaryServerInfo{
  913. Server: srv,
  914. FullMethod: "/api.chat.Chat/FindOtherScrip",
  915. }
  916. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  917. return srv.(ChatServer).FindOtherScrip(ctx, req.(*common.FindOtherScripRequest))
  918. }
  919. return interceptor(ctx, in, info, handler)
  920. }
  921. func _Chat_FindRecommendScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  922. in := new(common.FindScripRequest)
  923. if err := dec(in); err != nil {
  924. return nil, err
  925. }
  926. if interceptor == nil {
  927. return srv.(ChatServer).FindRecommendScrip(ctx, in)
  928. }
  929. info := &grpc.UnaryServerInfo{
  930. Server: srv,
  931. FullMethod: "/api.chat.Chat/FindRecommendScrip",
  932. }
  933. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  934. return srv.(ChatServer).FindRecommendScrip(ctx, req.(*common.FindScripRequest))
  935. }
  936. return interceptor(ctx, in, info, handler)
  937. }
  938. func _Chat_PersonLookScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  939. in := new(common.PersonLookScripRequest)
  940. if err := dec(in); err != nil {
  941. return nil, err
  942. }
  943. if interceptor == nil {
  944. return srv.(ChatServer).PersonLookScrip(ctx, in)
  945. }
  946. info := &grpc.UnaryServerInfo{
  947. Server: srv,
  948. FullMethod: "/api.chat.Chat/PersonLookScrip",
  949. }
  950. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  951. return srv.(ChatServer).PersonLookScrip(ctx, req.(*common.PersonLookScripRequest))
  952. }
  953. return interceptor(ctx, in, info, handler)
  954. }
  955. func _Chat_PersonClickLookBack_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  956. in := new(common.PersonParam)
  957. if err := dec(in); err != nil {
  958. return nil, err
  959. }
  960. if interceptor == nil {
  961. return srv.(ChatServer).PersonClickLookBack(ctx, in)
  962. }
  963. info := &grpc.UnaryServerInfo{
  964. Server: srv,
  965. FullMethod: "/api.chat.Chat/PersonClickLookBack",
  966. }
  967. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  968. return srv.(ChatServer).PersonClickLookBack(ctx, req.(*common.PersonParam))
  969. }
  970. return interceptor(ctx, in, info, handler)
  971. }
  972. func _Chat_PersonReplyScrip_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  973. in := new(common.ReplyScripRequest)
  974. if err := dec(in); err != nil {
  975. return nil, err
  976. }
  977. if interceptor == nil {
  978. return srv.(ChatServer).PersonReplyScrip(ctx, in)
  979. }
  980. info := &grpc.UnaryServerInfo{
  981. Server: srv,
  982. FullMethod: "/api.chat.Chat/PersonReplyScrip",
  983. }
  984. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  985. return srv.(ChatServer).PersonReplyScrip(ctx, req.(*common.ReplyScripRequest))
  986. }
  987. return interceptor(ctx, in, info, handler)
  988. }
  989. func _Chat_GetWindowInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  990. in := new(common.MatchingRequest)
  991. if err := dec(in); err != nil {
  992. return nil, err
  993. }
  994. if interceptor == nil {
  995. return srv.(ChatServer).GetWindowInfo(ctx, in)
  996. }
  997. info := &grpc.UnaryServerInfo{
  998. Server: srv,
  999. FullMethod: "/api.chat.Chat/GetWindowInfo",
  1000. }
  1001. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1002. return srv.(ChatServer).GetWindowInfo(ctx, req.(*common.MatchingRequest))
  1003. }
  1004. return interceptor(ctx, in, info, handler)
  1005. }
  1006. func _Chat_GetRandomMatching_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1007. in := new(common.MatchingRequest)
  1008. if err := dec(in); err != nil {
  1009. return nil, err
  1010. }
  1011. if interceptor == nil {
  1012. return srv.(ChatServer).GetRandomMatching(ctx, in)
  1013. }
  1014. info := &grpc.UnaryServerInfo{
  1015. Server: srv,
  1016. FullMethod: "/api.chat.Chat/GetRandomMatching",
  1017. }
  1018. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1019. return srv.(ChatServer).GetRandomMatching(ctx, req.(*common.MatchingRequest))
  1020. }
  1021. return interceptor(ctx, in, info, handler)
  1022. }
  1023. func _Chat_GetMatchingPartnerInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1024. in := new(GetMatchingPartnerInfoRequest)
  1025. if err := dec(in); err != nil {
  1026. return nil, err
  1027. }
  1028. if interceptor == nil {
  1029. return srv.(ChatServer).GetMatchingPartnerInfo(ctx, in)
  1030. }
  1031. info := &grpc.UnaryServerInfo{
  1032. Server: srv,
  1033. FullMethod: "/api.chat.Chat/GetMatchingPartnerInfo",
  1034. }
  1035. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1036. return srv.(ChatServer).GetMatchingPartnerInfo(ctx, req.(*GetMatchingPartnerInfoRequest))
  1037. }
  1038. return interceptor(ctx, in, info, handler)
  1039. }
  1040. func _Chat_PartnerCollect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1041. in := new(PartnerCollectIDsRequest)
  1042. if err := dec(in); err != nil {
  1043. return nil, err
  1044. }
  1045. if interceptor == nil {
  1046. return srv.(ChatServer).PartnerCollect(ctx, in)
  1047. }
  1048. info := &grpc.UnaryServerInfo{
  1049. Server: srv,
  1050. FullMethod: "/api.chat.Chat/PartnerCollect",
  1051. }
  1052. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1053. return srv.(ChatServer).PartnerCollect(ctx, req.(*PartnerCollectIDsRequest))
  1054. }
  1055. return interceptor(ctx, in, info, handler)
  1056. }
  1057. func _Chat_PartnerDeleteCollect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1058. in := new(PartnerCollectRequest)
  1059. if err := dec(in); err != nil {
  1060. return nil, err
  1061. }
  1062. if interceptor == nil {
  1063. return srv.(ChatServer).PartnerDeleteCollect(ctx, in)
  1064. }
  1065. info := &grpc.UnaryServerInfo{
  1066. Server: srv,
  1067. FullMethod: "/api.chat.Chat/PartnerDeleteCollect",
  1068. }
  1069. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1070. return srv.(ChatServer).PartnerDeleteCollect(ctx, req.(*PartnerCollectRequest))
  1071. }
  1072. return interceptor(ctx, in, info, handler)
  1073. }
  1074. func _Chat_FindChatCollectList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1075. in := new(FindChatRecordListRequest)
  1076. if err := dec(in); err != nil {
  1077. return nil, err
  1078. }
  1079. if interceptor == nil {
  1080. return srv.(ChatServer).FindChatCollectList(ctx, in)
  1081. }
  1082. info := &grpc.UnaryServerInfo{
  1083. Server: srv,
  1084. FullMethod: "/api.chat.Chat/FindChatCollectList",
  1085. }
  1086. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1087. return srv.(ChatServer).FindChatCollectList(ctx, req.(*FindChatRecordListRequest))
  1088. }
  1089. return interceptor(ctx, in, info, handler)
  1090. }
  1091. func _Chat_UserUnlockVoice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1092. in := new(UserUnlockRequest)
  1093. if err := dec(in); err != nil {
  1094. return nil, err
  1095. }
  1096. if interceptor == nil {
  1097. return srv.(ChatServer).UserUnlockVoice(ctx, in)
  1098. }
  1099. info := &grpc.UnaryServerInfo{
  1100. Server: srv,
  1101. FullMethod: "/api.chat.Chat/UserUnlockVoice",
  1102. }
  1103. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1104. return srv.(ChatServer).UserUnlockVoice(ctx, req.(*UserUnlockRequest))
  1105. }
  1106. return interceptor(ctx, in, info, handler)
  1107. }
  1108. func _Chat_UserUnlockPicture_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1109. in := new(UserUnlockRequest)
  1110. if err := dec(in); err != nil {
  1111. return nil, err
  1112. }
  1113. if interceptor == nil {
  1114. return srv.(ChatServer).UserUnlockPicture(ctx, in)
  1115. }
  1116. info := &grpc.UnaryServerInfo{
  1117. Server: srv,
  1118. FullMethod: "/api.chat.Chat/UserUnlockPicture",
  1119. }
  1120. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1121. return srv.(ChatServer).UserUnlockPicture(ctx, req.(*UserUnlockRequest))
  1122. }
  1123. return interceptor(ctx, in, info, handler)
  1124. }
  1125. func _Chat_GetRoomProfit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1126. in := new(common.RoomIDRequest)
  1127. if err := dec(in); err != nil {
  1128. return nil, err
  1129. }
  1130. if interceptor == nil {
  1131. return srv.(ChatServer).GetRoomProfit(ctx, in)
  1132. }
  1133. info := &grpc.UnaryServerInfo{
  1134. Server: srv,
  1135. FullMethod: "/api.chat.Chat/GetRoomProfit",
  1136. }
  1137. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1138. return srv.(ChatServer).GetRoomProfit(ctx, req.(*common.RoomIDRequest))
  1139. }
  1140. return interceptor(ctx, in, info, handler)
  1141. }
  1142. func _Chat_GetOnlinePersonNum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1143. in := new(emptypb.Empty)
  1144. if err := dec(in); err != nil {
  1145. return nil, err
  1146. }
  1147. if interceptor == nil {
  1148. return srv.(ChatServer).GetOnlinePersonNum(ctx, in)
  1149. }
  1150. info := &grpc.UnaryServerInfo{
  1151. Server: srv,
  1152. FullMethod: "/api.chat.Chat/GetOnlinePersonNum",
  1153. }
  1154. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1155. return srv.(ChatServer).GetOnlinePersonNum(ctx, req.(*emptypb.Empty))
  1156. }
  1157. return interceptor(ctx, in, info, handler)
  1158. }
  1159. func _Chat_FindUserAllUnreadNum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1160. in := new(common.IdentifyIdRequest)
  1161. if err := dec(in); err != nil {
  1162. return nil, err
  1163. }
  1164. if interceptor == nil {
  1165. return srv.(ChatServer).FindUserAllUnreadNum(ctx, in)
  1166. }
  1167. info := &grpc.UnaryServerInfo{
  1168. Server: srv,
  1169. FullMethod: "/api.chat.Chat/FindUserAllUnreadNum",
  1170. }
  1171. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1172. return srv.(ChatServer).FindUserAllUnreadNum(ctx, req.(*common.IdentifyIdRequest))
  1173. }
  1174. return interceptor(ctx, in, info, handler)
  1175. }
  1176. func _Chat_FindPartnerAllUnreadNum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1177. in := new(common.IdentifyIdRequest)
  1178. if err := dec(in); err != nil {
  1179. return nil, err
  1180. }
  1181. if interceptor == nil {
  1182. return srv.(ChatServer).FindPartnerAllUnreadNum(ctx, in)
  1183. }
  1184. info := &grpc.UnaryServerInfo{
  1185. Server: srv,
  1186. FullMethod: "/api.chat.Chat/FindPartnerAllUnreadNum",
  1187. }
  1188. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1189. return srv.(ChatServer).FindPartnerAllUnreadNum(ctx, req.(*common.IdentifyIdRequest))
  1190. }
  1191. return interceptor(ctx, in, info, handler)
  1192. }
  1193. func _Chat_GetUserRoomByPerson_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1194. in := new(common.IdentifyIDsParam)
  1195. if err := dec(in); err != nil {
  1196. return nil, err
  1197. }
  1198. if interceptor == nil {
  1199. return srv.(ChatServer).GetUserRoomByPerson(ctx, in)
  1200. }
  1201. info := &grpc.UnaryServerInfo{
  1202. Server: srv,
  1203. FullMethod: "/api.chat.Chat/GetUserRoomByPerson",
  1204. }
  1205. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1206. return srv.(ChatServer).GetUserRoomByPerson(ctx, req.(*common.IdentifyIDsParam))
  1207. }
  1208. return interceptor(ctx, in, info, handler)
  1209. }
  1210. func _Chat_GetPartnerRoomByPerson_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1211. in := new(common.IdentifyIDsParam)
  1212. if err := dec(in); err != nil {
  1213. return nil, err
  1214. }
  1215. if interceptor == nil {
  1216. return srv.(ChatServer).GetPartnerRoomByPerson(ctx, in)
  1217. }
  1218. info := &grpc.UnaryServerInfo{
  1219. Server: srv,
  1220. FullMethod: "/api.chat.Chat/GetPartnerRoomByPerson",
  1221. }
  1222. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1223. return srv.(ChatServer).GetPartnerRoomByPerson(ctx, req.(*common.IdentifyIDsParam))
  1224. }
  1225. return interceptor(ctx, in, info, handler)
  1226. }
  1227. // Chat_ServiceDesc is the grpc.ServiceDesc for Chat service.
  1228. // It's only intended for direct use with grpc.RegisterService,
  1229. // and not to be introspected or modified (even as a copy)
  1230. var Chat_ServiceDesc = grpc.ServiceDesc{
  1231. ServiceName: "api.chat.Chat",
  1232. HandlerType: (*ChatServer)(nil),
  1233. Methods: []grpc.MethodDesc{
  1234. {
  1235. MethodName: "CheckUserPartnerIsRelationship",
  1236. Handler: _Chat_CheckUserPartnerIsRelationship_Handler,
  1237. },
  1238. {
  1239. MethodName: "CreateChatRoom",
  1240. Handler: _Chat_CreateChatRoom_Handler,
  1241. },
  1242. {
  1243. MethodName: "FindOnlinePersonList",
  1244. Handler: _Chat_FindOnlinePersonList_Handler,
  1245. },
  1246. {
  1247. MethodName: "FindRecommendPersonList",
  1248. Handler: _Chat_FindRecommendPersonList_Handler,
  1249. },
  1250. {
  1251. MethodName: "PartnerFindRoomList",
  1252. Handler: _Chat_PartnerFindRoomList_Handler,
  1253. },
  1254. {
  1255. MethodName: "UserFindRoomList",
  1256. Handler: _Chat_UserFindRoomList_Handler,
  1257. },
  1258. {
  1259. MethodName: "Receive",
  1260. Handler: _Chat_Receive_Handler,
  1261. },
  1262. {
  1263. MethodName: "FindChatRecordList",
  1264. Handler: _Chat_FindChatRecordList_Handler,
  1265. },
  1266. {
  1267. MethodName: "FindChatRoomMsg",
  1268. Handler: _Chat_FindChatRoomMsg_Handler,
  1269. },
  1270. {
  1271. MethodName: "SetBlackChat",
  1272. Handler: _Chat_SetBlackChat_Handler,
  1273. },
  1274. {
  1275. MethodName: "DeleteChat",
  1276. Handler: _Chat_DeleteChat_Handler,
  1277. },
  1278. {
  1279. MethodName: "Report",
  1280. Handler: _Chat_Report_Handler,
  1281. },
  1282. {
  1283. MethodName: "PartnerGetAward",
  1284. Handler: _Chat_PartnerGetAward_Handler,
  1285. },
  1286. {
  1287. MethodName: "FindRoomCardMsg",
  1288. Handler: _Chat_FindRoomCardMsg_Handler,
  1289. },
  1290. {
  1291. MethodName: "FindNotReplyNum",
  1292. Handler: _Chat_FindNotReplyNum_Handler,
  1293. },
  1294. {
  1295. MethodName: "CreateScrip",
  1296. Handler: _Chat_CreateScrip_Handler,
  1297. },
  1298. {
  1299. MethodName: "DeleteScrip",
  1300. Handler: _Chat_DeleteScrip_Handler,
  1301. },
  1302. {
  1303. MethodName: "FindMyScrip",
  1304. Handler: _Chat_FindMyScrip_Handler,
  1305. },
  1306. {
  1307. MethodName: "FindOtherScrip",
  1308. Handler: _Chat_FindOtherScrip_Handler,
  1309. },
  1310. {
  1311. MethodName: "FindRecommendScrip",
  1312. Handler: _Chat_FindRecommendScrip_Handler,
  1313. },
  1314. {
  1315. MethodName: "PersonLookScrip",
  1316. Handler: _Chat_PersonLookScrip_Handler,
  1317. },
  1318. {
  1319. MethodName: "PersonClickLookBack",
  1320. Handler: _Chat_PersonClickLookBack_Handler,
  1321. },
  1322. {
  1323. MethodName: "PersonReplyScrip",
  1324. Handler: _Chat_PersonReplyScrip_Handler,
  1325. },
  1326. {
  1327. MethodName: "GetWindowInfo",
  1328. Handler: _Chat_GetWindowInfo_Handler,
  1329. },
  1330. {
  1331. MethodName: "GetRandomMatching",
  1332. Handler: _Chat_GetRandomMatching_Handler,
  1333. },
  1334. {
  1335. MethodName: "GetMatchingPartnerInfo",
  1336. Handler: _Chat_GetMatchingPartnerInfo_Handler,
  1337. },
  1338. {
  1339. MethodName: "PartnerCollect",
  1340. Handler: _Chat_PartnerCollect_Handler,
  1341. },
  1342. {
  1343. MethodName: "PartnerDeleteCollect",
  1344. Handler: _Chat_PartnerDeleteCollect_Handler,
  1345. },
  1346. {
  1347. MethodName: "FindChatCollectList",
  1348. Handler: _Chat_FindChatCollectList_Handler,
  1349. },
  1350. {
  1351. MethodName: "UserUnlockVoice",
  1352. Handler: _Chat_UserUnlockVoice_Handler,
  1353. },
  1354. {
  1355. MethodName: "UserUnlockPicture",
  1356. Handler: _Chat_UserUnlockPicture_Handler,
  1357. },
  1358. {
  1359. MethodName: "GetRoomProfit",
  1360. Handler: _Chat_GetRoomProfit_Handler,
  1361. },
  1362. {
  1363. MethodName: "GetOnlinePersonNum",
  1364. Handler: _Chat_GetOnlinePersonNum_Handler,
  1365. },
  1366. {
  1367. MethodName: "FindUserAllUnreadNum",
  1368. Handler: _Chat_FindUserAllUnreadNum_Handler,
  1369. },
  1370. {
  1371. MethodName: "FindPartnerAllUnreadNum",
  1372. Handler: _Chat_FindPartnerAllUnreadNum_Handler,
  1373. },
  1374. {
  1375. MethodName: "GetUserRoomByPerson",
  1376. Handler: _Chat_GetUserRoomByPerson_Handler,
  1377. },
  1378. {
  1379. MethodName: "GetPartnerRoomByPerson",
  1380. Handler: _Chat_GetPartnerRoomByPerson_Handler,
  1381. },
  1382. },
  1383. Streams: []grpc.StreamDesc{},
  1384. Metadata: "chat.proto",
  1385. }