chat_grpc.pb.go 41 KB

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