chat_grpc.pb.go 65 KB

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