namespace Admin.NET.Core.Service;

public class OrgInput : BaseIdInput
{
    /// <summary>
    /// 父Id
    /// </summary>
    public virtual long Pid { get; set; }

    /// <summary>
    /// 名称
    /// </summary>
    public virtual string Name { get; set; }

    /// <summary>
    /// 编码
    /// </summary>
    public virtual string Code { get; set; }

    /// <summary>
    /// 排序
    /// </summary>
    public virtual int Order { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    public virtual string Remark { get; set; }

    /// <summary>
    /// 状态
    /// </summary>
    public virtual int Status { get; set; }

    /// <summary>
    /// 级别 例如：省、市、县、区
    /// </summary>
    public virtual string Level { get; set; }
}

public class AddOrgInput : OrgInput
{
    /// <summary>
    /// 名称
    /// </summary>
    [Required(ErrorMessage = "机构名称不能为空")]
    public override string Name { get; set; }
}

public class UpdateOrgInput : AddOrgInput
{
}

public class DeleteOrgInput : BaseIdInput
{
}