mirror of https://github.com/abpframework/abp.git
4 changed files with 19 additions and 5 deletions
@ -1,18 +1,25 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Volo.Abp.Validation; |
|||
using Volo.CmsKit.Contents; |
|||
using Volo.CmsKit.Pages; |
|||
|
|||
namespace Volo.CmsKit.Admin.Pages |
|||
{ |
|||
public class CreatePageInputDto |
|||
{ |
|||
[Required] |
|||
[DynamicMaxLength(typeof(PageConsts), nameof(PageConsts.MaxTitleLength))] |
|||
public string Title { get; set; } |
|||
|
|||
[Required] |
|||
[DynamicMaxLength(typeof(PageConsts), nameof(PageConsts.MaxUrlLength))] |
|||
public string Url { get; set; } |
|||
|
|||
[DynamicMaxLength(typeof(PageConsts), nameof(PageConsts.MaxDescriptionLength))] |
|||
public string Description { get; set; } |
|||
|
|||
[Required] |
|||
[DynamicMaxLength(typeof(ContentConsts), nameof(ContentConsts.MaxValueLength))] |
|||
public string Content { get; set; } |
|||
} |
|||
} |
|||
@ -1,18 +1,25 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Volo.Abp.Validation; |
|||
using Volo.CmsKit.Contents; |
|||
using Volo.CmsKit.Pages; |
|||
|
|||
namespace Volo.CmsKit.Admin.Pages |
|||
{ |
|||
public class UpdatePageInputDto |
|||
{ |
|||
[Required] |
|||
[DynamicMaxLength(typeof(PageConsts), nameof(PageConsts.MaxTitleLength))] |
|||
public string Title { get; set; } |
|||
|
|||
[Required] |
|||
[DynamicMaxLength(typeof(PageConsts), nameof(PageConsts.MaxUrlLength))] |
|||
public string Url { get; set; } |
|||
|
|||
[DynamicMaxLength(typeof(PageConsts), nameof(PageConsts.MaxDescriptionLength))] |
|||
public string Description { get; set; } |
|||
|
|||
[Required] |
|||
[DynamicMaxLength(typeof(ContentConsts), nameof(ContentConsts.MaxValueLength))] |
|||
public string Content { get; set; } |
|||
} |
|||
} |
|||
Loading…
Reference in new issue