From 63465a29c88e4ebc1c26ffb99b418bf51e366eed Mon Sep 17 00:00:00 2001 From: tanglong <842690096@qq.com> Date: Fri, 16 Jan 2026 10:10:50 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VOL.Model/JingShiTiJiao/JingShiResponse.cs | 64 +++++++++++++++++++ .../JingShiTiJiao/JingShiSchoolClassDto.cs | 42 ++++++++++++ VOL.Model/JingShiTiJiao/SportsDataPushDto.cs | 30 +++++++++ VOL.Model/JingShiTiJiao/StudentDetailDto.cs | 43 +++++++++++++ VOL.Model/JingShiTiJiao/StudentDto.cs | 46 +++++++++++++ 5 files changed, 225 insertions(+) create mode 100644 VOL.Model/JingShiTiJiao/JingShiResponse.cs create mode 100644 VOL.Model/JingShiTiJiao/JingShiSchoolClassDto.cs create mode 100644 VOL.Model/JingShiTiJiao/SportsDataPushDto.cs create mode 100644 VOL.Model/JingShiTiJiao/StudentDetailDto.cs create mode 100644 VOL.Model/JingShiTiJiao/StudentDto.cs diff --git a/VOL.Model/JingShiTiJiao/JingShiResponse.cs b/VOL.Model/JingShiTiJiao/JingShiResponse.cs new file mode 100644 index 0000000..690dafc --- /dev/null +++ b/VOL.Model/JingShiTiJiao/JingShiResponse.cs @@ -0,0 +1,64 @@ +using Newtonsoft.Json; + +namespace VOL.Model.JingShiTiJiao +{ + /// + /// 京师接口统一返回结果泛型封装 + /// + /// data 对应的数据类型 + public class JingShiResponse + { + [JsonProperty("code")] + public int Code { get; set; } + + [JsonProperty("msg")] + public string Msg { get; set; } + + [JsonProperty("data")] + public T Data { get; set; } + + /// + /// 判断接口是否成功 + /// + public bool IsSuccess => Code == 0; + } + + /// + /// 老师信息 + /// + 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 GradeList { get; set; } + } + + public class GradeDto + { + [JsonProperty("gradeNo")] + public string GradeNo { get; set; } + + [JsonProperty("gradeName")] + public string GradeName { get; set; } + + [JsonProperty("claArray")] + public List ClassList { get; set; } + } + + public class ClassDto + { + [JsonProperty("classNo")] + public string ClassNo { get; set; } + + [JsonProperty("className")] + public string ClassName { get; set; } + } +} diff --git a/VOL.Model/JingShiTiJiao/JingShiSchoolClassDto.cs b/VOL.Model/JingShiTiJiao/JingShiSchoolClassDto.cs new file mode 100644 index 0000000..92c8f36 --- /dev/null +++ b/VOL.Model/JingShiTiJiao/JingShiSchoolClassDto.cs @@ -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 Grades { get; set; } + } + + public class JingShiGradeDto + { + [JsonProperty("gradeNo")] + public string GradeNo { get; set; } + + [JsonProperty("gradeName")] + public string GradeName { get; set; } + + [JsonProperty("claArray")] + public List Classes { get; set; } + } + + public class JingShiClassDto + { + [JsonProperty("classNo")] + public string ClassNo { get; set; } + + [JsonProperty("className")] + public string ClassName { get; set; } + } +} diff --git a/VOL.Model/JingShiTiJiao/SportsDataPushDto.cs b/VOL.Model/JingShiTiJiao/SportsDataPushDto.cs new file mode 100644 index 0000000..c845939 --- /dev/null +++ b/VOL.Model/JingShiTiJiao/SportsDataPushDto.cs @@ -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 + } +} diff --git a/VOL.Model/JingShiTiJiao/StudentDetailDto.cs b/VOL.Model/JingShiTiJiao/StudentDetailDto.cs new file mode 100644 index 0000000..f2601a8 --- /dev/null +++ b/VOL.Model/JingShiTiJiao/StudentDetailDto.cs @@ -0,0 +1,43 @@ +using Newtonsoft.Json; + +namespace VOL.Model.JingShiTiJiao +{ + /// + /// 学生详情 DTO + /// + 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; } + } +} diff --git a/VOL.Model/JingShiTiJiao/StudentDto.cs b/VOL.Model/JingShiTiJiao/StudentDto.cs new file mode 100644 index 0000000..e679d34 --- /dev/null +++ b/VOL.Model/JingShiTiJiao/StudentDto.cs @@ -0,0 +1,46 @@ +using Newtonsoft.Json; + +namespace VOL.Model.JingShiTiJiao +{ + /// + /// 学生信息 DTO + /// + 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; } + } +}