chat_grpc.pb.go 69 KB

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