statistics_grpc.pb.go 22 KB

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