chat_grpc.pb.go 67 KB

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