using Admin.NET.Core;
using System.ComponentModel.DataAnnotations;
namespace Admin.NET.Application;
///
/// 单位组基础输入参数
///
public class SysUnitGroupBaseInput
{
///
/// 创建时间
///
public virtual DateTime? CreateTime { get; set; }
///
/// 更新时间
///
public virtual DateTime? UpdateTime { get; set; }
///
/// 创建者Id
///
public virtual long? CreateUserId { get; set; }
///
/// 创建者姓名
///
public virtual string CreateUserName { get; set; }
///
/// 修改者Id
///
public virtual long? UpdateUserId { get; set; }
///
/// 修改者姓名
///
public virtual string UpdateUserName { get; set; }
///
/// 创建者部门Id
///
public virtual long? CreateOrgId { get; set; }
///
/// 创建者部门名称
///
public virtual string CreateOrgName { get; set; }
///
/// 软删除
///
public virtual bool IsDelete { get; set; }
///
/// 租户Id
///
public virtual long? TenantId { get; set; }
///
/// 是否启用
///
public virtual bool IsEnable { get; set; }
///
/// 名称
///
public virtual string Name { get; set; }
}
///
/// 单位组分页查询输入参数
///
public class SysUnitGroupInput : BasePageInput
{
///
/// 关键字查询
///
public string SearchKey { get; set; }
///
/// 创建者部门名称
///
public string CreateOrgName { get; set; }
///
/// 是否启用
///
public bool? IsEnable { get; set; }
///
/// 名称
///
public string Name { get; set; }
}
///
/// 单位组增加输入参数
///
public class AddSysUnitGroupInput : SysUnitGroupBaseInput
{
///
/// 软删除
///
[Required(ErrorMessage = "软删除不能为空")]
public override bool IsDelete { get; set; }
///
/// 是否启用
///
[Required(ErrorMessage = "是否启用不能为空")]
public override bool IsEnable { get; set; }
}
///
/// 单位组删除输入参数
///
public class DeleteSysUnitGroupInput : BaseIdInput
{
}
///
/// 单位组更新输入参数
///
public class UpdateSysUnitGroupInput : SysUnitGroupBaseInput
{
///
/// 主键Id
///
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
///
/// 单位组主键查询输入参数
///
public class QueryByIdSysUnitGroupInput : DeleteSysUnitGroupInput
{
}