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