mirror of https://github.com/abpframework/abp.git
2 changed files with 8 additions and 0 deletions
@ -1,12 +1,17 @@ |
|||||
using System.ComponentModel.DataAnnotations; |
using System.ComponentModel.DataAnnotations; |
||||
|
using Volo.Abp.Validation; |
||||
|
using Volo.CmsKit.Tags; |
||||
|
|
||||
namespace Volo.CmsKit.Admin.Tags |
namespace Volo.CmsKit.Admin.Tags |
||||
{ |
{ |
||||
public class TagCreateDto |
public class TagCreateDto |
||||
{ |
{ |
||||
[Required] |
[Required] |
||||
|
[DynamicMaxLength(typeof(TagConsts), nameof(TagConsts.MaxEntityTypeLength))] |
||||
public string EntityType { get; set; } |
public string EntityType { get; set; } |
||||
|
|
||||
[Required] |
[Required] |
||||
|
[DynamicMaxLength(typeof(TagConsts), nameof(TagConsts.MaxNameLength))] |
||||
public string Name { get; set; } |
public string Name { get; set; } |
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,10 +1,13 @@ |
|||||
using System.ComponentModel.DataAnnotations; |
using System.ComponentModel.DataAnnotations; |
||||
|
using Volo.Abp.Validation; |
||||
|
using Volo.CmsKit.Tags; |
||||
|
|
||||
namespace Volo.CmsKit.Admin.Tags |
namespace Volo.CmsKit.Admin.Tags |
||||
{ |
{ |
||||
public class TagUpdateDto |
public class TagUpdateDto |
||||
{ |
{ |
||||
[Required] |
[Required] |
||||
|
[DynamicMaxLength(typeof(TagConsts), nameof(TagConsts.MaxNameLength))] |
||||
public string Name { get; set; } |
public string Name { get; set; } |
||||
} |
} |
||||
} |
} |
||||
|
|||||
Loading…
Reference in new issue