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.
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using Common.Enum;
|
|
|
|
|
using Entity.DbModel.System.SysBaseObject;
|
|
|
|
|
|
|
|
|
|
namespace Entity.Dto.Req
|
|
|
|
|
{
|
|
|
|
|
public class MenuReq
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 标题
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Title { get; set; } = "";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 菜单类型(1目录 2菜单 3按钮)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public MenuTypeEnum? Type { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class AddMenuReq : SysMenu
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Required(ErrorMessage = "菜单名称不能为空")]
|
|
|
|
|
public override string Title { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class UpdateMenuReq : AddMenuReq
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class DeleteMenuReq : BaseIdReq
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|