Quanxue.Zhanghao.Daochu/LearningOfficer.OA.Common/Dtos/School/SchoolDto.cs

131 lines
3.0 KiB
C#

using LearningOfficer.OA.Common.Dtos.CloudSchool;
using LearningOfficer.OA.Common.Request;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UserCenter.Model.Enum;
namespace LearningOfficer.OA.Common.Dtos.School
{
public class SchoolAddDto
{
/// <summary>
/// 备 注:名称
/// 默认值:
///</summary>
public string Name { get; set; } = null!;
/// <summary>
/// 备 注:省Id
/// 默认值:
///</summary>
public int Pid { get; set; } = 0;
/// <summary>
/// 备 注:Pname
/// 默认值:
///</summary>
public string Pname { get; set; } = "";
/// <summary>
/// 备 注:市Id
/// 默认值:
///</summary>
public int Cid { get; set; } = 0;
/// <summary>
/// 备 注:
/// 默认值:
///</summary>
public string Cname { get; set; } = "";
/// <summary>
/// 备 注:区Id
/// 默认值:
///</summary>
public int Rid { get; set; } = 0;
/// <summary>
/// 备 注:
/// 默认值:
///</summary>
public string Rname { get; set; } = "";
/// <summary>
/// 备 注:启用状态
/// 默认值:
///</summary>
public bool Enable { get; set; }
/// <summary>
/// 备 注:学校类型
/// 初高中6年制 = 0,
/// 初中3年制 = 100,
/// 高中3年制 = 300,
/// 小学6年制 = 200
///</summary>
public SchoolTypeEnum Type { get; set; } = 0;
/// <summary>
/// 云校id
/// </summary>
public long CloudSchoolId { get; set; }
/// <summary>
/// 云校名称
/// </summary>
public string? CloudSchoolName { get; set; }
}
public class SchoolUpdateDto : SchoolAddDto
{
public long Id { get; set; }
}
public class SchoolViewDto : SchoolAddDto
{
public long Id { get; set; }
/// <summary>
/// 学习官组长Id
/// </summary>
public long LearningOfficerLeaderId { get; set; }
/// <summary>
/// 学习官组长名称
/// </summary>
public string LearningOfficerLeaderName { get; set; }
}
public class SchoolSimpleDto
{
/// <summary>
/// 学校id
/// </summary>
public long SchhoolId { get; set; }
/// <summary>
/// 学习官组长Id
/// </summary>
public long LearningOfficerLeaderId { get; set; }
/// <summary>
/// 学习官组长名称
/// </summary>
public string LearningOfficerLeaderName { get; set; }
}
public class SchoolSearchDto : PageRequest
{
public string? SchoolName { get; set; }
public long? CloudSchoolId { get; set; }
}
}