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.

91 lines
2.1 KiB

1 year ago
using GDZZ.Core;
1 year ago
using SqlSugar;
1 year ago
using System;
using System.ComponentModel.DataAnnotations;
namespace GDZZ.Application
{
/// <summary>
/// 职位管理输入参数
/// </summary>
public class PositionInput : PageInputBase
{
1 year ago
/// <summary>
/// 编码
/// </summary>
public virtual string Code { get; set; }
1 year ago
/// <summary>
/// 职位名称
/// </summary>
public virtual string PositionName { get; set; }
/// <summary>
/// 职位等级
/// </summary>
1 year ago
public virtual PositionEnum PositionLevel { get; set; }
1 year ago
/// <summary>
/// 父级
/// </summary>
1 year ago
public long ParentID { get; set; }
/// <summary>
/// 父Ids
/// </summary>
[SugarColumn(ColumnDescription = "父Ids", IsNullable = true)]
public string Pids { get; set; }
/// <summary>
/// 排序
/// </summary>
public int Sort { get; set; }
/// <summary>
/// 状态(字典 0正常 1停用 2删除
/// </summary>
[SugarColumn(ColumnDescription = "状态(字典 0正常 1停用 2删除")]
public CommonStatus Status { get; set; } = CommonStatus.ENABLE;
1 year ago
1 year ago
1 year ago
}
public class AddPositionInput : PositionInput
{
1 year ago
/// <summary>
/// 职位名称
/// </summary>
[Required(ErrorMessage = "机构名称不能为空")]
public override string PositionName { get; set; }
/// <summary>
/// 唯一编码
/// </summary>
public override string Code { get; set; }
1 year ago
}
public class DeletePositionInput
{
/// <summary>
/// 主键Id
/// </summary>
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
public class UpdatePositionInput : PositionInput
{
/// <summary>
/// 主键Id
/// </summary>
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
public class QueryePositionInput : DeletePositionInput
{
}
}