You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.1 KiB

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