chat_grpc.pb.go 50 KB

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