using Admin.NET.Core;
using System.ComponentModel.DataAnnotations;
namespace Admin.NET.Application;
///
/// 员工管理基础输入参数
///
public class EmployeeBaseInput
{
///
/// 名字
///
public virtual string? Name { get; set; }
///
/// 职务
///
public virtual string? Job { get; set; }
///
/// 性别
///
public virtual string? Sex { get; set; }
///
/// 联系方式
///
public virtual string? Tel { get; set; }
///
/// 邮箱
///
public virtual string? Email { get; set; }
///
/// 地址
///
public virtual string? Address { get; set; }
///
/// 入职日期
///
public virtual string? Date { get; set; }
///
/// 年龄
///
public virtual int? Age { get; set; }
///
/// 身份证号
///
public virtual string? IDNumber { get; set; }
///
/// 部门ID
///
public virtual long? DepartmentId { get; set; }
///
/// 入职日期
///
public DateTime? DateOnBoard { get; set; }
///
/// 备注
///
public virtual string? Remarks { get; set; }
///
/// 创建时间
///
public virtual DateTime? CreateTime { get; set; }
///
/// 更新时间
///
public virtual DateTime? UpdateTime { get; set; }
///
/// 创建者Id
///
public virtual long? CreateUserId { get; set; }
///
/// 创建者姓名
///
public virtual string? CreateUserName { get; set; }
///
/// 修改者Id
///
public virtual long? UpdateUserId { get; set; }
///
/// 修改者姓名
///
public virtual string? UpdateUserName { get; set; }
///
/// 软删除
///
public virtual bool IsDelete { get; set; }
}
///
/// 员工管理分页查询输入参数
///
public class EmployeeInput : BasePageInput
{
///
/// 关键字查询
///
public string? SearchKey { get; set; }
///
/// 名字
///
public string? Name { get; set; }
///
/// 职务
///
public string? Job { get; set; }
///
/// 性别
///
public string? Sex { get; set; }
///
/// 联系方式
///
public string? Tel { get; set; }
///
/// 邮箱
///
public string? Email { get; set; }
///
/// 地址
///
public string? Address { get; set; }
///
/// 入职日期
///
public string? Date { get; set; }
///
/// 年龄
///
public int? Age { get; set; }
///
/// 身份证号
///
public string? IDNumber { get; set; }
///
/// 部门ID
///
public long? DepartmentId { get; set; }
///
/// 入职日期
///
public DateTime? DateOnBoard { get; set; }
///
/// 备注
///
public string? Remarks { get; set; }
}
///
/// 员工管理增加输入参数
///
public class AddEmployeeInput : EmployeeBaseInput
{
///
/// 软删除
///
[Required(ErrorMessage = "软删除不能为空")]
public override bool IsDelete { get; set; }
}
///
/// 员工管理删除输入参数
///
public class DeleteEmployeeInput : BaseIdInput
{
}
///
/// 员工管理更新输入参数
///
public class UpdateEmployeeInput : EmployeeBaseInput
{
///
/// 主键Id
///
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
///
/// 员工管理主键查询输入参数
///
public class QueryByIdEmployeeInput : DeleteEmployeeInput
{
}