statistics_grpc.pb.go 30 KB

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