chat_grpc.pb.go 67 KB

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