chat_grpc.pb.go 68 KB

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