|
|
@ -1,20 +1,13 @@
|
|
|
|
using System;
|
|
|
|
using System;
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
using Volo.Abp.Application.Dtos;
|
|
|
|
using Volo.Abp.Application.Dtos;
|
|
|
|
using Volo.Abp.Validation;
|
|
|
|
|
|
|
|
using Volo.CmsKit.Blogs;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace Volo.CmsKit.Admin.Blogs
|
|
|
|
namespace Volo.CmsKit.Admin.Blogs
|
|
|
|
{
|
|
|
|
{
|
|
|
|
[Serializable]
|
|
|
|
[Serializable]
|
|
|
|
public class BlogDto : EntityDto<Guid>
|
|
|
|
public class BlogDto : EntityDto<Guid>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
[Required]
|
|
|
|
|
|
|
|
[DynamicMaxLength(typeof(BlogConsts), nameof(BlogConsts.MaxNameLength))]
|
|
|
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[Required]
|
|
|
|
|
|
|
|
[DynamicMaxLength(typeof(BlogConsts), nameof(BlogConsts.MaxSlugLength))]
|
|
|
|
|
|
|
|
public string Slug { get; set; }
|
|
|
|
public string Slug { get; set; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|