namespace Model.Dto.System
{
///
/// 组织架构树节点 DTO(嵌套子级;含数据权限摘要)
///
public class OrgTreeDto
{
public string Id { get; set; }
public string ParentId { get; set; }
public string Name { get; set; }
public string Code { get; set; }
public int OrgType { get; set; }
public int ShiftType { get; set; }
public string? Leader { get; set; }
public string? Phone { get; set; }
public int Sort { get; set; }
public string? Remark { get; set; }
public List Children { get; set; } = new();
/// 直接挂靠用户数
public int UserCount { get; set; }
/// 本组织及下级用户总数
public int TotalUserCount { get; set; }
/// 数据权限摘要:本组织及下级用户的角色+数据范围(去重,如「实验室管理员·本组织及下级」)
public List ScopeSummary { get; set; } = new();
}
///
/// 组织架构编辑 DTO(新增/修改用)
///
public class OrgDto
{
public string Id { get; set; }
public string ParentId { get; set; }
public string Name { get; set; }
public string Code { get; set; }
public int OrgType { get; set; }
public int ShiftType { get; set; }
public string? Leader { get; set; }
public string? Phone { get; set; }
public int Sort { get; set; }
public string? Remark { get; set; }
}
///
/// 组织下拉选项 DTO(用户表单选组织用)
///
public class OrgOptionDto
{
public string Id { get; set; }
public string Name { get; set; }
public int OrgType { get; set; }
}
}