statistics_grpc.pb.go 25 KB

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