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 System.ComponentModel.DataAnnotations; |
||||
|
using Volo.Abp.Validation; |
||||
|
using Volo.CmsKit.Contents; |
||||
|
using Volo.CmsKit.Pages; |
||||
|
|
||||
namespace Volo.CmsKit.Admin.Pages |
namespace Volo.CmsKit.Admin.Pages |
||||
{ |
{ |
||||
public class CreatePageInputDto |
public class CreatePageInputDto |
||||
{ |
{ |
||||
[Required] |
[Required] |
||||
|
[DynamicMaxLength(typeof(PageConsts), nameof(PageConsts.MaxTitleLength))] |
||||
public string Title { get; set; } |
public string Title { get; set; } |
||||
|
|
||||
[Required] |
[Required] |
||||
|
[DynamicMaxLength(typeof(PageConsts), nameof(PageConsts.MaxUrlLength))] |
||||
public string Url { get; set; } |
public string Url { get; set; } |
||||
|
|
||||
|
[DynamicMaxLength(typeof(PageConsts), nameof(PageConsts.MaxDescriptionLength))] |
||||
public string Description { get; set; } |
public string Description { get; set; } |
||||
|
|
||||
[Required] |
[Required] |
||||
|
[DynamicMaxLength(typeof(ContentConsts), nameof(ContentConsts.MaxValueLength))] |
||||
public string Content { get; set; } |
public string Content { get; set; } |
||||
} |
} |
||||
} |
} |
||||
@ -1,18 +1,25 @@ |
|||||
using System.ComponentModel.DataAnnotations; |
using System.ComponentModel.DataAnnotations; |
||||
|
using Volo.Abp.Validation; |
||||
|
using Volo.CmsKit.Contents; |
||||
|
using Volo.CmsKit.Pages; |
||||
|
|
||||
namespace Volo.CmsKit.Admin.Pages |
namespace Volo.CmsKit.Admin.Pages |
||||
{ |
{ |
||||
public class UpdatePageInputDto |
public class UpdatePageInputDto |
||||
{ |
{ |
||||
[Required] |
[Required] |
||||
|
[DynamicMaxLength(typeof(PageConsts), nameof(PageConsts.MaxTitleLength))] |
||||
public string Title { get; set; } |
public string Title { get; set; } |
||||
|
|
||||
[Required] |
[Required] |
||||
|
[DynamicMaxLength(typeof(PageConsts), nameof(PageConsts.MaxUrlLength))] |
||||
public string Url { get; set; } |
public string Url { get; set; } |
||||
|
|
||||
|
[DynamicMaxLength(typeof(PageConsts), nameof(PageConsts.MaxDescriptionLength))] |
||||
public string Description { get; set; } |
public string Description { get; set; } |
||||
|
|
||||
[Required] |
[Required] |
||||
|
[DynamicMaxLength(typeof(ContentConsts), nameof(ContentConsts.MaxValueLength))] |
||||
public string Content { get; set; } |
public string Content { get; set; } |
||||
} |
} |
||||
} |
} |
||||
Loading…
Reference in new issue