/// <summary> /// top10 奖金排行榜 /// </summary> /// <returns>top10 奖金排行榜</returns> public GambleRankListResponse GetTop10Rank(Guid managerId) { GambleRankListResponse response = new GambleRankListResponse(); try { List <GambleRankEntity> list = GambleRankMgr.GetRank(10); response.Code = (int)MessageCode.Success; if (list != null && list.Count != 0) { response.Data = list; } GambleRankEntity rank = GambleRankMgr.GetById(managerId); if (rank != null) { response.MyRank = rank.RankIndex; response.MyWinPoints = rank.WinTotalMoney; } } catch (Exception ex) { SystemlogMgr.Error("Gamble.GetTop10Rank", ex); response.Code = (int)MessageCode.Exception; } return(response); }
/// <summary> /// 获取我的排行 /// </summary> /// <param name="managerId">经理ID</param> /// <returns>我的排行</returns> public GambleRankResponse GetMyRank(Guid managerId) { GambleRankResponse response = new GambleRankResponse(); try { GambleRankEntity rank = GambleRankMgr.GetById(managerId); if (rank != null) { response.Data = rank; } response.Code = (int)MessageCode.Success; } catch (Exception ex) { SystemlogMgr.Error("Gamble.GetMyRank", ex); response.Code = (int)MessageCode.Exception; } return(response); }