예제 #1
0
        public BaseApiResponse BenevolenceRank()
        {
            int getRecordCount = 10;
            var walletAlis     = _walletQueryService.BenevolenceRank(getRecordCount).ToList();

            //添加僵尸数据
            walletAlis.AddRange(FackData());
            walletAlis = walletAlis.OrderByDescending(x => x.Benevolence).ToList();

            return(new BenevolenceRankResponse
            {
                WalletAlises = walletAlis.Select(x => new WalletAlis
                {
                    Id = x.Id,
                    UserId = x.UserId,
                    NickName = x.NickName,
                    Mobile = x.Mobile,
                    Portrait = x.Portrait.ToOssStyleUrl(OssImageStyles.UserPortrait.ToDescription()),
                    Cash = x.Cash,
                    Benevolence = x.Benevolence,
                    Earnings = x.Earnings
                }).ToList()
            });
        }