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