chat_grpc.pb.go 48 KB

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