2023-05-23 23:54:28 +08:00
|
|
|
|
#region copyright
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
// 此代码版权声明为全文件覆盖,如有原作者特别声明,会在下方手动补充
|
|
|
|
|
|
// 此代码版权(除特别声明外的代码)归作者本人Diego所有
|
|
|
|
|
|
// 源代码使用协议遵循本仓库的开源协议及附加协议
|
2023-07-16 17:48:22 +08:00
|
|
|
|
// Gitee源代码仓库:https://gitee.com/diego2098/ThingsGateway
|
2023-05-23 23:54:28 +08:00
|
|
|
|
// Github源代码仓库:https://github.com/kimdiego2098/ThingsGateway
|
2023-07-16 17:48:22 +08:00
|
|
|
|
// 使用文档:https://diego2098.gitee.io/thingsgateway-docs/
|
2023-05-23 23:54:28 +08:00
|
|
|
|
// QQ群:605534569
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
2023-03-04 18:41:11 +08:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
2023-08-07 15:09:53 +08:00
|
|
|
|
using ThingsGateway.Admin.Core;
|
2023-03-04 18:41:11 +08:00
|
|
|
|
|
2023-08-07 15:09:53 +08:00
|
|
|
|
namespace ThingsGateway.Admin.Application;
|
2023-07-12 21:16:38 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2023-08-07 15:09:53 +08:00
|
|
|
|
/// 单页输入参数
|
2023-07-12 21:16:38 +08:00
|
|
|
|
/// </summary>
|
2023-08-07 15:09:53 +08:00
|
|
|
|
public class SpaAddInput : SysResource
|
2023-07-12 21:16:38 +08:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
2023-08-07 15:09:53 +08:00
|
|
|
|
/// 路径
|
2023-07-12 21:16:38 +08:00
|
|
|
|
/// </summary>
|
2023-08-07 15:09:53 +08:00
|
|
|
|
[Required(ErrorMessage = "Component不能为空")]
|
|
|
|
|
|
public override string Component { get; set; }
|
|
|
|
|
|
|
2023-07-12 21:16:38 +08:00
|
|
|
|
/// <summary>
|
2023-08-07 15:09:53 +08:00
|
|
|
|
/// 图标
|
2023-07-12 21:16:38 +08:00
|
|
|
|
/// </summary>
|
2023-08-07 15:09:53 +08:00
|
|
|
|
[Required(ErrorMessage = "Icon不能为空")]
|
|
|
|
|
|
public override string Icon { get; set; }
|
2023-07-12 21:16:38 +08:00
|
|
|
|
|
2023-08-07 15:09:53 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 菜单类型
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public override TargetTypeEnum TargetType { get; set; } = TargetTypeEnum.SELF;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 标题
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Required(ErrorMessage = "Title不能为空")]
|
|
|
|
|
|
public override string Title { get; set; }
|
2023-07-12 21:16:38 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2023-08-07 15:09:53 +08:00
|
|
|
|
/// 单页输入参数
|
2023-07-12 21:16:38 +08:00
|
|
|
|
/// </summary>
|
2023-08-07 15:09:53 +08:00
|
|
|
|
public class SpaPageInput : BasePageInput
|
2023-03-04 18:41:11 +08:00
|
|
|
|
{
|
2023-03-29 16:22:01 +08:00
|
|
|
|
/// <summary>
|
2023-08-07 15:09:53 +08:00
|
|
|
|
/// 跳转类型
|
2023-03-29 16:22:01 +08:00
|
|
|
|
/// </summary>
|
2023-08-07 15:09:53 +08:00
|
|
|
|
public TargetTypeEnum TargetType { get; set; }
|
2023-07-12 21:16:38 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2023-08-07 15:09:53 +08:00
|
|
|
|
/// 单页修改参数
|
2023-07-12 21:16:38 +08:00
|
|
|
|
/// </summary>
|
2023-08-07 15:09:53 +08:00
|
|
|
|
public class SpaEditInput : SpaAddInput
|
2023-07-12 21:16:38 +08:00
|
|
|
|
{
|
2023-03-29 16:22:01 +08:00
|
|
|
|
/// <summary>
|
2023-08-07 15:09:53 +08:00
|
|
|
|
/// ID
|
2023-07-12 21:16:38 +08:00
|
|
|
|
/// </summary>
|
2023-08-07 15:09:53 +08:00
|
|
|
|
[MinValue(1, ErrorMessage = "Id不能为空")]
|
|
|
|
|
|
public override long Id { get; set; }
|
2023-03-04 18:41:11 +08:00
|
|
|
|
}
|