highly_profitable_handler.go 1.0 KB

123456789101112131415161718192021222324252627
  1. package handler
  2. import (
  3. "bet24.com/servers/micros/highly_profitable/handler/highly_profitable"
  4. pb "bet24.com/servers/micros/highly_profitable/proto"
  5. "context"
  6. )
  7. func (h *highlyProfitableService) GetHighlyProfitableActivity(ctx context.Context, req *pb.Request, rsp *pb.Response) error {
  8. rsp.List = highly_profitable.GetHighlyProfitableActivity(req.UserId)
  9. return nil
  10. }
  11. func (h *highlyProfitableService) ClaimHighlyProfitableAward(ctx context.Context, req *pb.Request, rsp *pb.Response) error {
  12. rsp.Success, rsp.Items = highly_profitable.ClaimHighlyProfitableAward(req.UserId)
  13. return nil
  14. }
  15. func (h *highlyProfitableService) ActivationHighlyProfitableNotification(ctx context.Context, req *pb.Request, rsp *pb.Response) error {
  16. rsp.Success = highly_profitable.ActivationHighlyProfitableNotification(req.UserId)
  17. return nil
  18. }
  19. func (h *highlyProfitableService) OnUserFinishedRelativeTask(ctx context.Context, req *pb.Request, rsp *pb.Response) error {
  20. highly_profitable.OnUserFinishedRelativeTask(req.UserId)
  21. return nil
  22. }