chat_grpc.pb.go 57 KB

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