65 lines
1.5 KiB
C#
65 lines
1.5 KiB
C#
using Newtonsoft.Json;
|
|
|
|
namespace VOL.Model.JingShiTiJiao
|
|
{
|
|
/// <summary>
|
|
/// 京师接口统一返回结果泛型封装
|
|
/// </summary>
|
|
/// <typeparam name="T">data 对应的数据类型</typeparam>
|
|
public class JingShiResponse<T>
|
|
{
|
|
[JsonProperty("code")]
|
|
public int Code { get; set; }
|
|
|
|
[JsonProperty("msg")]
|
|
public string Msg { get; set; }
|
|
|
|
[JsonProperty("data")]
|
|
public T Data { get; set; }
|
|
|
|
/// <summary>
|
|
/// 判断接口是否成功
|
|
/// </summary>
|
|
public bool IsSuccess => Code == 0;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 老师信息
|
|
/// </summary>
|
|
public class TeacherClassData
|
|
{
|
|
[JsonProperty("school")]
|
|
public string School { get; set; }
|
|
|
|
[JsonProperty("teacherNo")]
|
|
public string TeacherNo { get; set; }
|
|
|
|
[JsonProperty("teacherName")]
|
|
public string TeacherName { get; set; }
|
|
|
|
[JsonProperty("classList")]
|
|
public List<GradeDto> GradeList { get; set; }
|
|
}
|
|
|
|
public class GradeDto
|
|
{
|
|
[JsonProperty("gradeNo")]
|
|
public string GradeNo { get; set; }
|
|
|
|
[JsonProperty("gradeName")]
|
|
public string GradeName { get; set; }
|
|
|
|
[JsonProperty("claArray")]
|
|
public List<ClassDto> ClassList { get; set; }
|
|
}
|
|
|
|
public class ClassDto
|
|
{
|
|
[JsonProperty("classNo")]
|
|
public string ClassNo { get; set; }
|
|
|
|
[JsonProperty("className")]
|
|
public string ClassName { get; set; }
|
|
}
|
|
}
|