chat_grpc.pb.go 45 KB

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