using YBEE.EQM.Core;
namespace YBEE.EQM.Application
{
///
/// 添加角色参数
///
public class AddSysRoleInput
{
///
/// 角色组ID
///
[Required(ErrorMessage = "角色组ID不能为空")]
public int RoleGroupId { get; set; }
///
/// 角色名称
///
[Required(ErrorMessage = "角色名称不能为空"), StringLength(200, MinimumLength = 1, ErrorMessage = "长度1-200位")]
public string Name { get; set; }
///
/// 备注
///
public string Remark { get; set; }
}
///
/// 更新角色参数
///
public class UpdateSysRoleInput : BaseId
{
///
/// 角色组ID
///
[Required(ErrorMessage = "角色组ID不能为空")]
public int RoleGroupId { get; set; }
///
/// 角色名称
///
[Required(ErrorMessage = "角色名称不能为空"), StringLength(200, MinimumLength = 1, ErrorMessage = "长度1-200位")]
public string Name { get; set; }
///
/// 备注
///
public string Remark { get; set; }
}
///
/// 删除角色参数
///
public class DeleteSysRoleInput : BaseId { }
}