statistics_grpc.pb.go 26 KB

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