消防培训系统服务器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.4 KiB

using AX.FireTrainingSys.Models;
using Microsoft.AspNetCore.Mvc.ModelBinding;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace AX.FireTrainingSys.DTOs
{
/// <summary>
/// 用户信息。
/// </summary>
public class UserInfo
{
/// <summary>
/// 用户帐号(身份证号)。
/// </summary>
[Required]
public string Name { get; set; }
/// <summary>
/// 真实姓名。
/// </summary>
[MaxLength(100)]
public string RealName { get; set; }
/// <summary>
/// 角色类型。
/// </summary>
[BindRequired]
public RoleType RoleType { get; set; }
/// <summary>
/// 是否已启用。
/// </summary>
public bool? Enabled { get; set; }
/// <summary>
/// 创建时间。
/// </summary>
public DateTimeOffset? CreationTime { get; set; }
/// <summary>
/// 职务。
/// </summary>
public List<PostInfo> Posts { get; set; }
}
/// <summary>
/// 个人帐号信息。
/// </summary>
public class ProfileInfo : UserInfo
{
/// <summary>
/// 用户编号。
/// </summary>
public string Id { get; set; }
}
}