statistics_grpc.pb.go 31 KB

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