的
This commit is contained in:
parent
00724136fb
commit
63465a29c8
64
VOL.Model/JingShiTiJiao/JingShiResponse.cs
Normal file
64
VOL.Model/JingShiTiJiao/JingShiResponse.cs
Normal file
@ -0,0 +1,64 @@
|
||||
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; }
|
||||
}
|
||||
}
|
||||
42
VOL.Model/JingShiTiJiao/JingShiSchoolClassDto.cs
Normal file
42
VOL.Model/JingShiTiJiao/JingShiSchoolClassDto.cs
Normal file
@ -0,0 +1,42 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace VOL.Model.JingShiTiJiao
|
||||
{
|
||||
public class JingShiSchoolClassDto
|
||||
{
|
||||
[JsonProperty("schoolNo")]
|
||||
public string SchoolNo { get; set; }
|
||||
|
||||
[JsonProperty("schoolName")]
|
||||
public string SchoolName { get; set; }
|
||||
|
||||
[JsonProperty("array")]
|
||||
public List<JingShiGradeDto> Grades { get; set; }
|
||||
}
|
||||
|
||||
public class JingShiGradeDto
|
||||
{
|
||||
[JsonProperty("gradeNo")]
|
||||
public string GradeNo { get; set; }
|
||||
|
||||
[JsonProperty("gradeName")]
|
||||
public string GradeName { get; set; }
|
||||
|
||||
[JsonProperty("claArray")]
|
||||
public List<JingShiClassDto> Classes { get; set; }
|
||||
}
|
||||
|
||||
public class JingShiClassDto
|
||||
{
|
||||
[JsonProperty("classNo")]
|
||||
public string ClassNo { get; set; }
|
||||
|
||||
[JsonProperty("className")]
|
||||
public string ClassName { get; set; }
|
||||
}
|
||||
}
|
||||
30
VOL.Model/JingShiTiJiao/SportsDataPushDto.cs
Normal file
30
VOL.Model/JingShiTiJiao/SportsDataPushDto.cs
Normal file
@ -0,0 +1,30 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace VOL.Model.JingShiTiJiao
|
||||
{
|
||||
public class SportsDataPushDto
|
||||
{
|
||||
[JsonProperty("studentNo")]
|
||||
public string StudentNo { get; set; }
|
||||
|
||||
[JsonProperty("sportsItem")]
|
||||
public string SportsItem { get; set; }
|
||||
|
||||
[JsonProperty("sportsDate")]
|
||||
public string SportsDate { get; set; } // yyyy-MM-dd
|
||||
|
||||
[JsonProperty("sportsService")]
|
||||
public string SportsService { get; set; } // channel
|
||||
|
||||
[JsonProperty("sportsScene")]
|
||||
public string SportsScene { get; set; }
|
||||
|
||||
[JsonProperty("sportsDetail")]
|
||||
public string SportsDetail { get; set; } // json string
|
||||
}
|
||||
}
|
||||
43
VOL.Model/JingShiTiJiao/StudentDetailDto.cs
Normal file
43
VOL.Model/JingShiTiJiao/StudentDetailDto.cs
Normal file
@ -0,0 +1,43 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace VOL.Model.JingShiTiJiao
|
||||
{
|
||||
/// <summary>
|
||||
/// 学生详情 DTO
|
||||
/// </summary>
|
||||
public class StudentDetailDto
|
||||
{
|
||||
[JsonProperty("stuNo")]
|
||||
public string StuNo { get; set; }
|
||||
|
||||
[JsonProperty("stuName")]
|
||||
public string StuName { get; set; }
|
||||
|
||||
[JsonProperty("school")]
|
||||
public string School { get; set; }
|
||||
|
||||
[JsonProperty("teacherNo")]
|
||||
public string TeacherNo { get; set; }
|
||||
|
||||
[JsonProperty("teacherName")]
|
||||
public string TeacherName { get; set; }
|
||||
|
||||
[JsonProperty("gradeNo")]
|
||||
public string GradeNo { get; set; }
|
||||
|
||||
[JsonProperty("gradeName")]
|
||||
public string GradeName { get; set; }
|
||||
|
||||
[JsonProperty("classNo")]
|
||||
public string ClassNo { get; set; }
|
||||
|
||||
[JsonProperty("className")]
|
||||
public string ClassName { get; set; }
|
||||
|
||||
[JsonProperty("gender")]
|
||||
public string Gender { get; set; }
|
||||
|
||||
[JsonProperty("age")]
|
||||
public int Age { get; set; }
|
||||
}
|
||||
}
|
||||
46
VOL.Model/JingShiTiJiao/StudentDto.cs
Normal file
46
VOL.Model/JingShiTiJiao/StudentDto.cs
Normal file
@ -0,0 +1,46 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace VOL.Model.JingShiTiJiao
|
||||
{
|
||||
/// <summary>
|
||||
/// 学生信息 DTO
|
||||
/// </summary>
|
||||
public class StudentDto
|
||||
{
|
||||
[JsonProperty("stuNo")]
|
||||
public string StuNo { get; set; }
|
||||
|
||||
[JsonProperty("stuName")]
|
||||
public string StuName { get; set; }
|
||||
|
||||
[JsonProperty("school")]
|
||||
public string School { get; set; }
|
||||
|
||||
[JsonProperty("teacherNo")]
|
||||
public string TeacherNo { get; set; }
|
||||
|
||||
[JsonProperty("teacherName")]
|
||||
public string TeacherName { get; set; }
|
||||
|
||||
[JsonProperty("gradeNo")]
|
||||
public string GradeNo { get; set; }
|
||||
|
||||
[JsonProperty("gradeName")]
|
||||
public string GradeName { get; set; }
|
||||
|
||||
[JsonProperty("classNo")]
|
||||
public string ClassNo { get; set; }
|
||||
|
||||
[JsonProperty("className")]
|
||||
public string ClassName { get; set; }
|
||||
|
||||
[JsonProperty("gender")]
|
||||
public string Gender { get; set; }
|
||||
|
||||
[JsonProperty("age")]
|
||||
public int Age { get; set; }
|
||||
|
||||
[JsonProperty("avatar")]
|
||||
public string Avatar { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user