chat_grpc.pb.go 51 KB

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