mirror of https://github.com/abpframework/abp.git
2 changed files with 5 additions and 3 deletions
@ -1,11 +1,13 @@ |
|||||
using System.ComponentModel.DataAnnotations; |
using System.ComponentModel.DataAnnotations; |
||||
|
using Volo.Abp.Validation; |
||||
using Volo.CmsKit.Ratings; |
using Volo.CmsKit.Ratings; |
||||
|
|
||||
namespace Volo.CmsKit.Public.Ratings |
namespace Volo.CmsKit.Public.Ratings |
||||
{ |
{ |
||||
public class CreateUpdateRatingInput |
public class CreateUpdateRatingInput |
||||
{ |
{ |
||||
[Required, Range(RatingConsts.MinStarCount, RatingConsts.MaxStarCount)] |
[Required] |
||||
|
[DynamicRange(typeof(RatingConsts), typeof(int), nameof(RatingConsts.MinStarCount), nameof(RatingConsts.MaxStarCount))] |
||||
public short StarCount { get; set; } |
public short StarCount { get; set; } |
||||
} |
} |
||||
} |
} |
||||
Loading…
Reference in new issue