mirror of https://github.com/abpframework/abp
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.
31 lines
969 B
31 lines
969 B
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using Volo.Abp.Validation;
|
|
using Volo.CmsKit.Blogs;
|
|
|
|
namespace Volo.CmsKit.Admin.Blogs
|
|
{
|
|
[Serializable]
|
|
public class CreateBlogPostDto
|
|
{
|
|
[Required]
|
|
public Guid BlogId { get; set; }
|
|
|
|
[Required]
|
|
[DynamicMaxLength(typeof(BlogPostConsts), nameof(BlogPostConsts.MaxTitleLength))]
|
|
public string Title { get; set; }
|
|
|
|
[Required]
|
|
[DynamicStringLength(typeof(BlogPostConsts), nameof(BlogPostConsts.MaxSlugLength), nameof(BlogPostConsts.MinSlugLength))]
|
|
public string Slug { get; set; }
|
|
|
|
[DynamicMaxLength(typeof(BlogPostConsts), nameof(BlogPostConsts.MaxShortDescriptionLength))]
|
|
public string ShortDescription { get; set; }
|
|
|
|
[DynamicMaxLength(typeof(BlogPostConsts), nameof(BlogPostConsts.MaxContentLength))]
|
|
public string Content { get; set; }
|
|
|
|
public Guid? CoverImage { get; set; }
|
|
}
|
|
}
|