Student.DTO/DepartDTO.cs
(完整代码) 1KBusing Student.DTO.Attributes;
using Student.Model;
using Student.Model.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace Student.DTO
{
[Description("部门")]
public class DepartDTO
{
/// <summary>
/// 部门编号
/// </summary>
[Display(Name = "部门编号")]
public int Id { get; set; }
/// <summary>
/// 部门名称
/// </summary>
[Display(Name = "部门名称")]
[Required(ErrorMessage = "{0} 不能为空")]
public string DepartName { get; set; }
/// <summary>
/// 部门类别
/// </summary>
[Display(Name = "部门类别")]
public EnumDeptType DeptType { get; set; }
/// <summary>
/// 年组编号
/// </summary>
[IgnoreProperty]
public int? GradeId { get; set; }
/// <summary>
/// 部门类别展示
/// </summary>
[IgnoreProperty]
public string DeptTypeName { get; set; }
/// <summary>
/// 年组名称展示
/// </summary>
[IgnoreProperty]
public string GradeName { get; set; }
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。