Quanxue.Zhanghao.Daochu/LearningOfficer.OA.Common/Dtos/Classes/ClassDto.cs

114 lines
2.7 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using LearningOfficer.OA.Common.Enums;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
using UserCenter.Model.Common;
namespace LearningOfficer.OA.Common.Dtos.Classes
{
public class ClassAddDto
{
/// <summary>
/// 备 注:名称
/// 默认值:
///</summary>
public string ClassName { get; set; } = null!;
/// <summary>
/// 备 注:学校id
/// 默认值:
///</summary>
public long SchoolId { get; set; }
///// <summary>
///// 备 注:年级
///// 默认值:
/////</summary>
//public string Grade { get; set; } = null!;
/// <summary>
/// 备 注:届
/// 默认值:
///</summary>
public int GraduationYear { get; set; }
/// <summary>
/// 备 注:学段: 初、高
/// 默认值:
///</summary>
public string GradeLevel { get; set; } = null!;
/// <summary>
/// 备 注:教学层级 1普通本科 2重点本科
/// 默认值:
///</summary>
public TeachingLevelEnum TeachingLevel { get; set; }
///// <summary>
///// 获取年级信息
///// </summary>
//[JsonIgnore]
//public GradeModel GradeInfo
//{
// get
// {
// return GradeHelper.GetStudentGradeBaseByGrade(Grade);
// }
//}
}
public class ClassesUpdateDto
{
/// <summary>
/// 备 注:班级Id
/// 默认值:
///</summary>
public long Id { get; set; }
/// <summary>
/// 备 注:名称
/// 默认值:
///</summary>
public string ClassName { get; set; } = null!;
/// <summary>
/// 备 注:届
/// 默认值:
///</summary>
public int GraduationYear { get; set; }
/// <summary>
/// 备 注:学段: 初、高
/// 默认值:
///</summary>
public string GradeLevel { get; set; } = null!;
///// <summary>
///// 备 注:年级
///// 默认值:
/////</summary>
//public string Grade { get; set; } = null!;
///// <summary>
///// 获取年级信息
///// </summary>
//[JsonIgnore]
//public GradeModel GradeInfo
//{
// get
// {
// return GradeHelper.GetStudentGradeBaseByGrade(Grade);
// }
//}
public TeachingLevelEnum TeachingLevel { get; set; }
}
}