mirror of https://github.com/abpframework/abp.git
1 changed files with 12 additions and 0 deletions
@ -1,15 +1,27 @@ |
|||||
using System; |
using System; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using Volo.Abp.Validation; |
||||
|
using Volo.CmsKit.Blogs; |
||||
|
|
||||
namespace Volo.CmsKit.Admin.Blogs |
namespace Volo.CmsKit.Admin.Blogs |
||||
{ |
{ |
||||
public class CreateUpdateBlogPostDto |
public class CreateUpdateBlogPostDto |
||||
{ |
{ |
||||
|
[Required] |
||||
public Guid BlogId { get; set; } |
public Guid BlogId { get; set; } |
||||
|
|
||||
|
[Required] |
||||
|
[DynamicMaxLength(typeof(BlogPostConsts), nameof(BlogPostConsts.MaxTitleLength))] |
||||
public string Title { get; set; } |
public string Title { get; set; } |
||||
|
|
||||
|
[Required] |
||||
|
[DynamicStringLength( |
||||
|
typeof(BlogPostConsts), |
||||
|
nameof(BlogPostConsts.MaxUrlSlugLength), |
||||
|
nameof(BlogPostConsts.MinUrlSlugLength))] |
||||
public string UrlSlug { get; set; } |
public string UrlSlug { get; set; } |
||||
|
|
||||
|
[DynamicMaxLength(typeof(BlogPostConsts), nameof(BlogPostConsts.MaxShortDescriptionLength))] |
||||
public string ShortDescription { get; set; } |
public string ShortDescription { get; set; } |
||||
} |
} |
||||
} |
} |
||||
|
|||||
Loading…
Reference in new issue