//
namespace SafeCampus.System;
///
/// 组织分页查询参数
///
public class SysOrgPageInput : BasePageInput
{
///
/// 父ID
///
public long ParentId { get; set; }
///
/// 名称
///
public string Name { get; set; }
///
/// 编码
///
public string Code { get; set; }
///
/// 分类
///
public string Category { get; set; }
///
/// 状态
///
public string Status { get; set; }
}
///
/// 组织添加参数
///
public class SysOrgAddInput : SysOrg
{
}
///
/// 组织修改参数
///
public class SysOrgEditInput : SysOrgAddInput
{
///
/// Id
///
[IdNotNull(ErrorMessage = "Id不能为空")]
public override long Id { get; set; }
}
///
/// 组织复制参数
///
public class SysOrgCopyInput
{
///
/// 目标ID
///
public long TargetId { get; set; }
///
/// 组织Id列表
///
[Required(ErrorMessage = "Ids列表不能为空")]
public List? Ids { get; set; }
///
/// 是否包含下级
///
public bool ContainsChild { get; set; } = false;
///
/// 是否包含职位
///
public bool ContainsPosition { get; set; } = false;
}
///
/// 组织导入
///
public class SysOrgImportInput : ImportTemplateInput
{
///
/// 名称
///
[ImporterHeader(Name = "名称")]
[Required(ErrorMessage = "名称不能为空")]
public string Name { get; set; }
///
/// 上级组织
///
[ImporterHeader(Name = "上级组织")]
[Required(ErrorMessage = "上级组织不能为空")]
public string Names { get; set; }
///
/// 分类
///
[ImporterHeader(Name = "分类")]
[Required(ErrorMessage = "分类不能为空")]
public string Category { get; set; }
///
/// 排序码
///
[ImporterHeader(Name = "排序码")]
public int SortCode { get; set; } = 1;
///
/// 主管账号
///
[ImporterHeader(Name = "主管账号")]
[Required(ErrorMessage = "主管账号不能为空")]
public string Director { get; set; }
}
///
/// 组织树查询参数
/// 懒加载用
///
public class SysOrgTreeInput
{
///
/// 父Id
///
public long? ParentId { get; set; }
}