//
namespace SafeCampus.System;
public class ButtonPageInput : BasePageInput
{
///
/// 父ID
///
[Required(ErrorMessage = "ParentId不能为空")]
public long? ParentId { get; set; }
}
///
/// 添加按钮参数
///
public class ButtonAddInput : SysResource
{
///
/// 父ID
///
[Required(ErrorMessage = "ParentId不能为空")]
public override long? ParentId { get; set; }
///
/// 标题
///
[Required(ErrorMessage = "Title不能为空")]
public override string Title { get; set; }
///
/// 编码
///
[Required(ErrorMessage = "Code不能为空")]
public override string Code { get; set; }
}
public class ButtonEditInput : ButtonAddInput
{
///
/// ID
///
[IdNotNull(ErrorMessage = "Id不能为空")]
public override long Id { get; set; }
}