95 lines
2.6 KiB
C#
95 lines
2.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace VOL.Model.Norm.Response
|
|
{
|
|
/// <summary>
|
|
/// 智慧操场
|
|
/// </summary>
|
|
public class SmartPlaygroundModel
|
|
{
|
|
/// <summary>
|
|
/// 学校信息
|
|
/// </summary>
|
|
public SchoolInfoModel SchoolInfo { get; set; } = new SchoolInfoModel();
|
|
|
|
/// <summary>
|
|
/// 等级占比
|
|
/// </summary>
|
|
public List<RankStatsDto> RankStatsList { get; set; } = new List<RankStatsDto>();
|
|
|
|
/// <summary>
|
|
/// 各项目成绩情况
|
|
/// </summary>
|
|
public Dictionary<string, ResultSituation> ResultSituationDic { get; set; } = new Dictionary<string, ResultSituation>();
|
|
|
|
/// <summary>
|
|
/// 班级运动榜
|
|
/// </summary>
|
|
public List<ClassSportsRankingDto> ClassSportsRankList { get; set; } = new List<ClassSportsRankingDto>();
|
|
|
|
/// <summary>
|
|
/// 年级优良率
|
|
/// </summary>
|
|
public Dictionary<string, GradeExcellentRate> GradeExcellentRateDic { get; set; } = new Dictionary<string, GradeExcellentRate>();
|
|
}
|
|
|
|
public class ResultSituation
|
|
{
|
|
public int Vitality { get; set; }
|
|
public List<TestSituationsModel> TestSituationsList { get; set; } = new List<TestSituationsModel>();
|
|
|
|
public Dictionary<string, VariousSportsProportion> AvgTestResultDic { get; set; } = new Dictionary<string, VariousSportsProportion>();
|
|
|
|
}
|
|
|
|
public class RankStatsDto : TestSituationsModel
|
|
{
|
|
public int MaleRate { get; set; }
|
|
public int FemaleRate { get; set; }
|
|
}
|
|
|
|
public class TestSituationsModel
|
|
{
|
|
public string Rank { get; set; }
|
|
public int Count { get; set; }
|
|
public int Rate { get; set; }
|
|
public int MaleCount { get; set; }
|
|
public int FemaleCount { get; set; }
|
|
|
|
public int ActivityLevel { get; set; }
|
|
}
|
|
public class ClassSportsRankingDto
|
|
{
|
|
/// <summary>
|
|
/// 排名
|
|
/// </summary>
|
|
public int Rank { get; set; }
|
|
|
|
/// <summary>
|
|
/// 班级Id
|
|
/// </summary>
|
|
public int ClassId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 班级名称
|
|
/// </summary>
|
|
public string ClassName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 运动次数
|
|
/// </summary>
|
|
public int Count { get; set; }
|
|
}
|
|
|
|
public class GradeExcellentRate
|
|
{
|
|
public int Rate { get; set; }
|
|
public int MaleRate { get; set; }
|
|
public int FemaleRate { get; set; }
|
|
}
|
|
}
|