chat_grpc.pb.go 64 KB

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