chat_grpc.pb.go 53 KB

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