chat_grpc.pb.go 59 KB

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