chat_grpc.pb.go 63 KB

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