statistics_grpc.pb.go 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599
  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. package statistics
  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. // StatisticsClient is the client API for Statistics 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 StatisticsClient interface {
  19. // 观看用户主页
  20. LookPerson(ctx context.Context, in *PersonMessage, opts ...grpc.CallOption) (*emptypb.Empty, error)
  21. // 关注用户
  22. LikePerson(ctx context.Context, in *PersonMessage, opts ...grpc.CallOption) (*emptypb.Empty, error)
  23. // 取关用户
  24. UnLikePerson(ctx context.Context, in *PersonMessage, opts ...grpc.CallOption) (*emptypb.Empty, error)
  25. // 获取喜欢以及访问统计信息
  26. GetLookAndLikeStatisticsMessage(ctx context.Context, in *GetLookAndLikeStatisticsMessageRequest, opts ...grpc.CallOption) (*LookAndLikeMessageReply, error)
  27. // 获取访问统计信息
  28. GetLookStatisticsMessage(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*LookMessageReply, error)
  29. // 减少"喜欢我的"的未读数
  30. ReduceLikeUnreadNum(ctx context.Context, in *PersonMessage, opts ...grpc.CallOption) (*emptypb.Empty, error)
  31. // 解锁"看过我的"的记录
  32. UnlockLookRecord(ctx context.Context, in *UnlockLookRecordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  33. // 查看看过我的列表
  34. FindLookList(ctx context.Context, in *GetLookAndLikeListRequest, opts ...grpc.CallOption) (*LookAndLikeListReply, error)
  35. // 查看我喜欢的列表
  36. FindLikeList(ctx context.Context, in *GetLookAndLikeListRequest, opts ...grpc.CallOption) (*LookAndLikeListReply, error)
  37. // 查看喜欢我的列表
  38. FindLikedList(ctx context.Context, in *GetLookAndLikeListRequest, opts ...grpc.CallOption) (*LookAndLikeListReply, error)
  39. // 获取我是否喜欢(关注)该用户
  40. GetIsLike(ctx context.Context, in *PersonMessage, opts ...grpc.CallOption) (*common.IsLike, error)
  41. // 统计订阅消息
  42. StatisticsSubscribeMessage(ctx context.Context, in *StatisticsSubscribeMessageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  43. // 减少订阅消息
  44. ReduceSubscribeMessage(ctx context.Context, in *ReduceSubscribeMessageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  45. // 获取订阅了签到的人
  46. GetSignUser(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*common.PersonIDList, error)
  47. }
  48. type statisticsClient struct {
  49. cc grpc.ClientConnInterface
  50. }
  51. func NewStatisticsClient(cc grpc.ClientConnInterface) StatisticsClient {
  52. return &statisticsClient{cc}
  53. }
  54. func (c *statisticsClient) LookPerson(ctx context.Context, in *PersonMessage, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  55. out := new(emptypb.Empty)
  56. err := c.cc.Invoke(ctx, "/api.statistics.Statistics/LookPerson", in, out, opts...)
  57. if err != nil {
  58. return nil, err
  59. }
  60. return out, nil
  61. }
  62. func (c *statisticsClient) LikePerson(ctx context.Context, in *PersonMessage, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  63. out := new(emptypb.Empty)
  64. err := c.cc.Invoke(ctx, "/api.statistics.Statistics/LikePerson", in, out, opts...)
  65. if err != nil {
  66. return nil, err
  67. }
  68. return out, nil
  69. }
  70. func (c *statisticsClient) UnLikePerson(ctx context.Context, in *PersonMessage, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  71. out := new(emptypb.Empty)
  72. err := c.cc.Invoke(ctx, "/api.statistics.Statistics/UnLikePerson", in, out, opts...)
  73. if err != nil {
  74. return nil, err
  75. }
  76. return out, nil
  77. }
  78. func (c *statisticsClient) GetLookAndLikeStatisticsMessage(ctx context.Context, in *GetLookAndLikeStatisticsMessageRequest, opts ...grpc.CallOption) (*LookAndLikeMessageReply, error) {
  79. out := new(LookAndLikeMessageReply)
  80. err := c.cc.Invoke(ctx, "/api.statistics.Statistics/GetLookAndLikeStatisticsMessage", in, out, opts...)
  81. if err != nil {
  82. return nil, err
  83. }
  84. return out, nil
  85. }
  86. func (c *statisticsClient) GetLookStatisticsMessage(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*LookMessageReply, error) {
  87. out := new(LookMessageReply)
  88. err := c.cc.Invoke(ctx, "/api.statistics.Statistics/GetLookStatisticsMessage", in, out, opts...)
  89. if err != nil {
  90. return nil, err
  91. }
  92. return out, nil
  93. }
  94. func (c *statisticsClient) ReduceLikeUnreadNum(ctx context.Context, in *PersonMessage, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  95. out := new(emptypb.Empty)
  96. err := c.cc.Invoke(ctx, "/api.statistics.Statistics/ReduceLikeUnreadNum", in, out, opts...)
  97. if err != nil {
  98. return nil, err
  99. }
  100. return out, nil
  101. }
  102. func (c *statisticsClient) UnlockLookRecord(ctx context.Context, in *UnlockLookRecordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  103. out := new(emptypb.Empty)
  104. err := c.cc.Invoke(ctx, "/api.statistics.Statistics/UnlockLookRecord", in, out, opts...)
  105. if err != nil {
  106. return nil, err
  107. }
  108. return out, nil
  109. }
  110. func (c *statisticsClient) FindLookList(ctx context.Context, in *GetLookAndLikeListRequest, opts ...grpc.CallOption) (*LookAndLikeListReply, error) {
  111. out := new(LookAndLikeListReply)
  112. err := c.cc.Invoke(ctx, "/api.statistics.Statistics/FindLookList", in, out, opts...)
  113. if err != nil {
  114. return nil, err
  115. }
  116. return out, nil
  117. }
  118. func (c *statisticsClient) FindLikeList(ctx context.Context, in *GetLookAndLikeListRequest, opts ...grpc.CallOption) (*LookAndLikeListReply, error) {
  119. out := new(LookAndLikeListReply)
  120. err := c.cc.Invoke(ctx, "/api.statistics.Statistics/FindLikeList", in, out, opts...)
  121. if err != nil {
  122. return nil, err
  123. }
  124. return out, nil
  125. }
  126. func (c *statisticsClient) FindLikedList(ctx context.Context, in *GetLookAndLikeListRequest, opts ...grpc.CallOption) (*LookAndLikeListReply, error) {
  127. out := new(LookAndLikeListReply)
  128. err := c.cc.Invoke(ctx, "/api.statistics.Statistics/FindLikedList", in, out, opts...)
  129. if err != nil {
  130. return nil, err
  131. }
  132. return out, nil
  133. }
  134. func (c *statisticsClient) GetIsLike(ctx context.Context, in *PersonMessage, opts ...grpc.CallOption) (*common.IsLike, error) {
  135. out := new(common.IsLike)
  136. err := c.cc.Invoke(ctx, "/api.statistics.Statistics/GetIsLike", in, out, opts...)
  137. if err != nil {
  138. return nil, err
  139. }
  140. return out, nil
  141. }
  142. func (c *statisticsClient) StatisticsSubscribeMessage(ctx context.Context, in *StatisticsSubscribeMessageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  143. out := new(emptypb.Empty)
  144. err := c.cc.Invoke(ctx, "/api.statistics.Statistics/StatisticsSubscribeMessage", in, out, opts...)
  145. if err != nil {
  146. return nil, err
  147. }
  148. return out, nil
  149. }
  150. func (c *statisticsClient) ReduceSubscribeMessage(ctx context.Context, in *ReduceSubscribeMessageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  151. out := new(emptypb.Empty)
  152. err := c.cc.Invoke(ctx, "/api.statistics.Statistics/ReduceSubscribeMessage", in, out, opts...)
  153. if err != nil {
  154. return nil, err
  155. }
  156. return out, nil
  157. }
  158. func (c *statisticsClient) GetSignUser(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*common.PersonIDList, error) {
  159. out := new(common.PersonIDList)
  160. err := c.cc.Invoke(ctx, "/api.statistics.Statistics/GetSignUser", in, out, opts...)
  161. if err != nil {
  162. return nil, err
  163. }
  164. return out, nil
  165. }
  166. // StatisticsServer is the server API for Statistics service.
  167. // All implementations must embed UnimplementedStatisticsServer
  168. // for forward compatibility
  169. type StatisticsServer interface {
  170. // 观看用户主页
  171. LookPerson(context.Context, *PersonMessage) (*emptypb.Empty, error)
  172. // 关注用户
  173. LikePerson(context.Context, *PersonMessage) (*emptypb.Empty, error)
  174. // 取关用户
  175. UnLikePerson(context.Context, *PersonMessage) (*emptypb.Empty, error)
  176. // 获取喜欢以及访问统计信息
  177. GetLookAndLikeStatisticsMessage(context.Context, *GetLookAndLikeStatisticsMessageRequest) (*LookAndLikeMessageReply, error)
  178. // 获取访问统计信息
  179. GetLookStatisticsMessage(context.Context, *common.PersonParam) (*LookMessageReply, error)
  180. // 减少"喜欢我的"的未读数
  181. ReduceLikeUnreadNum(context.Context, *PersonMessage) (*emptypb.Empty, error)
  182. // 解锁"看过我的"的记录
  183. UnlockLookRecord(context.Context, *UnlockLookRecordRequest) (*emptypb.Empty, error)
  184. // 查看看过我的列表
  185. FindLookList(context.Context, *GetLookAndLikeListRequest) (*LookAndLikeListReply, error)
  186. // 查看我喜欢的列表
  187. FindLikeList(context.Context, *GetLookAndLikeListRequest) (*LookAndLikeListReply, error)
  188. // 查看喜欢我的列表
  189. FindLikedList(context.Context, *GetLookAndLikeListRequest) (*LookAndLikeListReply, error)
  190. // 获取我是否喜欢(关注)该用户
  191. GetIsLike(context.Context, *PersonMessage) (*common.IsLike, error)
  192. // 统计订阅消息
  193. StatisticsSubscribeMessage(context.Context, *StatisticsSubscribeMessageRequest) (*emptypb.Empty, error)
  194. // 减少订阅消息
  195. ReduceSubscribeMessage(context.Context, *ReduceSubscribeMessageRequest) (*emptypb.Empty, error)
  196. // 获取订阅了签到的人
  197. GetSignUser(context.Context, *emptypb.Empty) (*common.PersonIDList, error)
  198. mustEmbedUnimplementedStatisticsServer()
  199. }
  200. // UnimplementedStatisticsServer must be embedded to have forward compatible implementations.
  201. type UnimplementedStatisticsServer struct {
  202. }
  203. func (UnimplementedStatisticsServer) LookPerson(context.Context, *PersonMessage) (*emptypb.Empty, error) {
  204. return nil, status.Errorf(codes.Unimplemented, "method LookPerson not implemented")
  205. }
  206. func (UnimplementedStatisticsServer) LikePerson(context.Context, *PersonMessage) (*emptypb.Empty, error) {
  207. return nil, status.Errorf(codes.Unimplemented, "method LikePerson not implemented")
  208. }
  209. func (UnimplementedStatisticsServer) UnLikePerson(context.Context, *PersonMessage) (*emptypb.Empty, error) {
  210. return nil, status.Errorf(codes.Unimplemented, "method UnLikePerson not implemented")
  211. }
  212. func (UnimplementedStatisticsServer) GetLookAndLikeStatisticsMessage(context.Context, *GetLookAndLikeStatisticsMessageRequest) (*LookAndLikeMessageReply, error) {
  213. return nil, status.Errorf(codes.Unimplemented, "method GetLookAndLikeStatisticsMessage not implemented")
  214. }
  215. func (UnimplementedStatisticsServer) GetLookStatisticsMessage(context.Context, *common.PersonParam) (*LookMessageReply, error) {
  216. return nil, status.Errorf(codes.Unimplemented, "method GetLookStatisticsMessage not implemented")
  217. }
  218. func (UnimplementedStatisticsServer) ReduceLikeUnreadNum(context.Context, *PersonMessage) (*emptypb.Empty, error) {
  219. return nil, status.Errorf(codes.Unimplemented, "method ReduceLikeUnreadNum not implemented")
  220. }
  221. func (UnimplementedStatisticsServer) UnlockLookRecord(context.Context, *UnlockLookRecordRequest) (*emptypb.Empty, error) {
  222. return nil, status.Errorf(codes.Unimplemented, "method UnlockLookRecord not implemented")
  223. }
  224. func (UnimplementedStatisticsServer) FindLookList(context.Context, *GetLookAndLikeListRequest) (*LookAndLikeListReply, error) {
  225. return nil, status.Errorf(codes.Unimplemented, "method FindLookList not implemented")
  226. }
  227. func (UnimplementedStatisticsServer) FindLikeList(context.Context, *GetLookAndLikeListRequest) (*LookAndLikeListReply, error) {
  228. return nil, status.Errorf(codes.Unimplemented, "method FindLikeList not implemented")
  229. }
  230. func (UnimplementedStatisticsServer) FindLikedList(context.Context, *GetLookAndLikeListRequest) (*LookAndLikeListReply, error) {
  231. return nil, status.Errorf(codes.Unimplemented, "method FindLikedList not implemented")
  232. }
  233. func (UnimplementedStatisticsServer) GetIsLike(context.Context, *PersonMessage) (*common.IsLike, error) {
  234. return nil, status.Errorf(codes.Unimplemented, "method GetIsLike not implemented")
  235. }
  236. func (UnimplementedStatisticsServer) StatisticsSubscribeMessage(context.Context, *StatisticsSubscribeMessageRequest) (*emptypb.Empty, error) {
  237. return nil, status.Errorf(codes.Unimplemented, "method StatisticsSubscribeMessage not implemented")
  238. }
  239. func (UnimplementedStatisticsServer) ReduceSubscribeMessage(context.Context, *ReduceSubscribeMessageRequest) (*emptypb.Empty, error) {
  240. return nil, status.Errorf(codes.Unimplemented, "method ReduceSubscribeMessage not implemented")
  241. }
  242. func (UnimplementedStatisticsServer) GetSignUser(context.Context, *emptypb.Empty) (*common.PersonIDList, error) {
  243. return nil, status.Errorf(codes.Unimplemented, "method GetSignUser not implemented")
  244. }
  245. func (UnimplementedStatisticsServer) mustEmbedUnimplementedStatisticsServer() {}
  246. // UnsafeStatisticsServer may be embedded to opt out of forward compatibility for this service.
  247. // Use of this interface is not recommended, as added methods to StatisticsServer will
  248. // result in compilation errors.
  249. type UnsafeStatisticsServer interface {
  250. mustEmbedUnimplementedStatisticsServer()
  251. }
  252. func RegisterStatisticsServer(s grpc.ServiceRegistrar, srv StatisticsServer) {
  253. s.RegisterService(&Statistics_ServiceDesc, srv)
  254. }
  255. func _Statistics_LookPerson_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  256. in := new(PersonMessage)
  257. if err := dec(in); err != nil {
  258. return nil, err
  259. }
  260. if interceptor == nil {
  261. return srv.(StatisticsServer).LookPerson(ctx, in)
  262. }
  263. info := &grpc.UnaryServerInfo{
  264. Server: srv,
  265. FullMethod: "/api.statistics.Statistics/LookPerson",
  266. }
  267. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  268. return srv.(StatisticsServer).LookPerson(ctx, req.(*PersonMessage))
  269. }
  270. return interceptor(ctx, in, info, handler)
  271. }
  272. func _Statistics_LikePerson_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  273. in := new(PersonMessage)
  274. if err := dec(in); err != nil {
  275. return nil, err
  276. }
  277. if interceptor == nil {
  278. return srv.(StatisticsServer).LikePerson(ctx, in)
  279. }
  280. info := &grpc.UnaryServerInfo{
  281. Server: srv,
  282. FullMethod: "/api.statistics.Statistics/LikePerson",
  283. }
  284. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  285. return srv.(StatisticsServer).LikePerson(ctx, req.(*PersonMessage))
  286. }
  287. return interceptor(ctx, in, info, handler)
  288. }
  289. func _Statistics_UnLikePerson_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  290. in := new(PersonMessage)
  291. if err := dec(in); err != nil {
  292. return nil, err
  293. }
  294. if interceptor == nil {
  295. return srv.(StatisticsServer).UnLikePerson(ctx, in)
  296. }
  297. info := &grpc.UnaryServerInfo{
  298. Server: srv,
  299. FullMethod: "/api.statistics.Statistics/UnLikePerson",
  300. }
  301. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  302. return srv.(StatisticsServer).UnLikePerson(ctx, req.(*PersonMessage))
  303. }
  304. return interceptor(ctx, in, info, handler)
  305. }
  306. func _Statistics_GetLookAndLikeStatisticsMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  307. in := new(GetLookAndLikeStatisticsMessageRequest)
  308. if err := dec(in); err != nil {
  309. return nil, err
  310. }
  311. if interceptor == nil {
  312. return srv.(StatisticsServer).GetLookAndLikeStatisticsMessage(ctx, in)
  313. }
  314. info := &grpc.UnaryServerInfo{
  315. Server: srv,
  316. FullMethod: "/api.statistics.Statistics/GetLookAndLikeStatisticsMessage",
  317. }
  318. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  319. return srv.(StatisticsServer).GetLookAndLikeStatisticsMessage(ctx, req.(*GetLookAndLikeStatisticsMessageRequest))
  320. }
  321. return interceptor(ctx, in, info, handler)
  322. }
  323. func _Statistics_GetLookStatisticsMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  324. in := new(common.PersonParam)
  325. if err := dec(in); err != nil {
  326. return nil, err
  327. }
  328. if interceptor == nil {
  329. return srv.(StatisticsServer).GetLookStatisticsMessage(ctx, in)
  330. }
  331. info := &grpc.UnaryServerInfo{
  332. Server: srv,
  333. FullMethod: "/api.statistics.Statistics/GetLookStatisticsMessage",
  334. }
  335. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  336. return srv.(StatisticsServer).GetLookStatisticsMessage(ctx, req.(*common.PersonParam))
  337. }
  338. return interceptor(ctx, in, info, handler)
  339. }
  340. func _Statistics_ReduceLikeUnreadNum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  341. in := new(PersonMessage)
  342. if err := dec(in); err != nil {
  343. return nil, err
  344. }
  345. if interceptor == nil {
  346. return srv.(StatisticsServer).ReduceLikeUnreadNum(ctx, in)
  347. }
  348. info := &grpc.UnaryServerInfo{
  349. Server: srv,
  350. FullMethod: "/api.statistics.Statistics/ReduceLikeUnreadNum",
  351. }
  352. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  353. return srv.(StatisticsServer).ReduceLikeUnreadNum(ctx, req.(*PersonMessage))
  354. }
  355. return interceptor(ctx, in, info, handler)
  356. }
  357. func _Statistics_UnlockLookRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  358. in := new(UnlockLookRecordRequest)
  359. if err := dec(in); err != nil {
  360. return nil, err
  361. }
  362. if interceptor == nil {
  363. return srv.(StatisticsServer).UnlockLookRecord(ctx, in)
  364. }
  365. info := &grpc.UnaryServerInfo{
  366. Server: srv,
  367. FullMethod: "/api.statistics.Statistics/UnlockLookRecord",
  368. }
  369. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  370. return srv.(StatisticsServer).UnlockLookRecord(ctx, req.(*UnlockLookRecordRequest))
  371. }
  372. return interceptor(ctx, in, info, handler)
  373. }
  374. func _Statistics_FindLookList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  375. in := new(GetLookAndLikeListRequest)
  376. if err := dec(in); err != nil {
  377. return nil, err
  378. }
  379. if interceptor == nil {
  380. return srv.(StatisticsServer).FindLookList(ctx, in)
  381. }
  382. info := &grpc.UnaryServerInfo{
  383. Server: srv,
  384. FullMethod: "/api.statistics.Statistics/FindLookList",
  385. }
  386. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  387. return srv.(StatisticsServer).FindLookList(ctx, req.(*GetLookAndLikeListRequest))
  388. }
  389. return interceptor(ctx, in, info, handler)
  390. }
  391. func _Statistics_FindLikeList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  392. in := new(GetLookAndLikeListRequest)
  393. if err := dec(in); err != nil {
  394. return nil, err
  395. }
  396. if interceptor == nil {
  397. return srv.(StatisticsServer).FindLikeList(ctx, in)
  398. }
  399. info := &grpc.UnaryServerInfo{
  400. Server: srv,
  401. FullMethod: "/api.statistics.Statistics/FindLikeList",
  402. }
  403. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  404. return srv.(StatisticsServer).FindLikeList(ctx, req.(*GetLookAndLikeListRequest))
  405. }
  406. return interceptor(ctx, in, info, handler)
  407. }
  408. func _Statistics_FindLikedList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  409. in := new(GetLookAndLikeListRequest)
  410. if err := dec(in); err != nil {
  411. return nil, err
  412. }
  413. if interceptor == nil {
  414. return srv.(StatisticsServer).FindLikedList(ctx, in)
  415. }
  416. info := &grpc.UnaryServerInfo{
  417. Server: srv,
  418. FullMethod: "/api.statistics.Statistics/FindLikedList",
  419. }
  420. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  421. return srv.(StatisticsServer).FindLikedList(ctx, req.(*GetLookAndLikeListRequest))
  422. }
  423. return interceptor(ctx, in, info, handler)
  424. }
  425. func _Statistics_GetIsLike_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  426. in := new(PersonMessage)
  427. if err := dec(in); err != nil {
  428. return nil, err
  429. }
  430. if interceptor == nil {
  431. return srv.(StatisticsServer).GetIsLike(ctx, in)
  432. }
  433. info := &grpc.UnaryServerInfo{
  434. Server: srv,
  435. FullMethod: "/api.statistics.Statistics/GetIsLike",
  436. }
  437. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  438. return srv.(StatisticsServer).GetIsLike(ctx, req.(*PersonMessage))
  439. }
  440. return interceptor(ctx, in, info, handler)
  441. }
  442. func _Statistics_StatisticsSubscribeMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  443. in := new(StatisticsSubscribeMessageRequest)
  444. if err := dec(in); err != nil {
  445. return nil, err
  446. }
  447. if interceptor == nil {
  448. return srv.(StatisticsServer).StatisticsSubscribeMessage(ctx, in)
  449. }
  450. info := &grpc.UnaryServerInfo{
  451. Server: srv,
  452. FullMethod: "/api.statistics.Statistics/StatisticsSubscribeMessage",
  453. }
  454. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  455. return srv.(StatisticsServer).StatisticsSubscribeMessage(ctx, req.(*StatisticsSubscribeMessageRequest))
  456. }
  457. return interceptor(ctx, in, info, handler)
  458. }
  459. func _Statistics_ReduceSubscribeMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  460. in := new(ReduceSubscribeMessageRequest)
  461. if err := dec(in); err != nil {
  462. return nil, err
  463. }
  464. if interceptor == nil {
  465. return srv.(StatisticsServer).ReduceSubscribeMessage(ctx, in)
  466. }
  467. info := &grpc.UnaryServerInfo{
  468. Server: srv,
  469. FullMethod: "/api.statistics.Statistics/ReduceSubscribeMessage",
  470. }
  471. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  472. return srv.(StatisticsServer).ReduceSubscribeMessage(ctx, req.(*ReduceSubscribeMessageRequest))
  473. }
  474. return interceptor(ctx, in, info, handler)
  475. }
  476. func _Statistics_GetSignUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  477. in := new(emptypb.Empty)
  478. if err := dec(in); err != nil {
  479. return nil, err
  480. }
  481. if interceptor == nil {
  482. return srv.(StatisticsServer).GetSignUser(ctx, in)
  483. }
  484. info := &grpc.UnaryServerInfo{
  485. Server: srv,
  486. FullMethod: "/api.statistics.Statistics/GetSignUser",
  487. }
  488. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  489. return srv.(StatisticsServer).GetSignUser(ctx, req.(*emptypb.Empty))
  490. }
  491. return interceptor(ctx, in, info, handler)
  492. }
  493. // Statistics_ServiceDesc is the grpc.ServiceDesc for Statistics service.
  494. // It's only intended for direct use with grpc.RegisterService,
  495. // and not to be introspected or modified (even as a copy)
  496. var Statistics_ServiceDesc = grpc.ServiceDesc{
  497. ServiceName: "api.statistics.Statistics",
  498. HandlerType: (*StatisticsServer)(nil),
  499. Methods: []grpc.MethodDesc{
  500. {
  501. MethodName: "LookPerson",
  502. Handler: _Statistics_LookPerson_Handler,
  503. },
  504. {
  505. MethodName: "LikePerson",
  506. Handler: _Statistics_LikePerson_Handler,
  507. },
  508. {
  509. MethodName: "UnLikePerson",
  510. Handler: _Statistics_UnLikePerson_Handler,
  511. },
  512. {
  513. MethodName: "GetLookAndLikeStatisticsMessage",
  514. Handler: _Statistics_GetLookAndLikeStatisticsMessage_Handler,
  515. },
  516. {
  517. MethodName: "GetLookStatisticsMessage",
  518. Handler: _Statistics_GetLookStatisticsMessage_Handler,
  519. },
  520. {
  521. MethodName: "ReduceLikeUnreadNum",
  522. Handler: _Statistics_ReduceLikeUnreadNum_Handler,
  523. },
  524. {
  525. MethodName: "UnlockLookRecord",
  526. Handler: _Statistics_UnlockLookRecord_Handler,
  527. },
  528. {
  529. MethodName: "FindLookList",
  530. Handler: _Statistics_FindLookList_Handler,
  531. },
  532. {
  533. MethodName: "FindLikeList",
  534. Handler: _Statistics_FindLikeList_Handler,
  535. },
  536. {
  537. MethodName: "FindLikedList",
  538. Handler: _Statistics_FindLikedList_Handler,
  539. },
  540. {
  541. MethodName: "GetIsLike",
  542. Handler: _Statistics_GetIsLike_Handler,
  543. },
  544. {
  545. MethodName: "StatisticsSubscribeMessage",
  546. Handler: _Statistics_StatisticsSubscribeMessage_Handler,
  547. },
  548. {
  549. MethodName: "ReduceSubscribeMessage",
  550. Handler: _Statistics_ReduceSubscribeMessage_Handler,
  551. },
  552. {
  553. MethodName: "GetSignUser",
  554. Handler: _Statistics_GetSignUser_Handler,
  555. },
  556. },
  557. Streams: []grpc.StreamDesc{},
  558. Metadata: "statistics.proto",
  559. }