chat_grpc.pb.go 70 KB

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