public async Task <BodyResponse <LoginRewardVM> > Handle(QueryLoginRewardCommand request, CancellationToken cancellationToken)
        {
            //查询本周redis之前的领奖记录
            DateTime tnow       = DateTime.Now;
            var      rewardInfo = await _redis.GetLoginReward(tnow, request.Id);

            return(new BodyResponse <LoginRewardVM>(StatusCodeDefines.Success, null, new LoginRewardVM(GenReward(tnow, rewardInfo))));
        }
Ejemplo n.º 2
0
        public async Task <WrappedResponse <LoginRewardVm> > Handle(QueryLoginRewardCommand request, CancellationToken cancellationToken)
        {
            //查询本周redis之前的领奖记录
            DateTime tnow       = DateTime.Now;
            var      rewardInfo = await _redis.GetLoginReward(tnow, request.Id);

            return(new WrappedResponse <LoginRewardVm>(ResponseStatus.Success, null, new LoginRewardVm(GenReward(tnow, rewardInfo))));
        }