using System.ComponentModel.DataAnnotations;
using Common.Enum;
using Entity.DbModel.System;
namespace Entity.Dto.Req
{
public class RoleReq : BaseIdReq
{
///
/// 状态
///
public virtual StatusEnum Status { get; set; }
}
public class PageRoleReq : BasePageReq
{
///
/// 名称
///
public virtual string Name { get; set; } = "";
///
/// 编码
///
public virtual string Code { get; set; } = "";
}
public class AddRoleReq : SysRole
{
///
/// 名称
///
[Required(ErrorMessage = "角色名称不能为空")]
public override string Name { get; set; }
///
/// 菜单Id集合
///
public List MenuIdList { get; set; }
}
public class UpdateRoleReq : AddRoleReq
{
}
public class DeleteRoleReq : BaseIdReq
{
}
}