Browse Source

[fix]统一400数据格式

master
贾荣国Home 3 years ago
parent
commit
57b054f171
  1. 6
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Parts/PartCreateDtoValidator.cs

6
WebApiService/src/Win_in.Sfs.Scp.WebApi.Application.Contracts/Parts/PartCreateDtoValidator.cs

@ -8,9 +8,9 @@ public class PartCreateDtoValidator : AbstractValidator<PartCreateDto>
public PartCreateDtoValidator()
{
RuleFor(x => x.Code).MaximumLength(64).NotEmpty();
RuleFor(x => x.Name).MaximumLength(64).NotNull();
RuleFor(x => x.Desc1).MaximumLength(1024).NotNull();
RuleFor(x => x.Desc2).MaximumLength(1024);
RuleFor(x => x.Name).MaximumLength(1024);
RuleFor(x => x.Desc1).MaximumLength(64);
RuleFor(x => x.Desc2).MaximumLength(64);
RuleFor(x => x.Status).MaximumLength(64).NotNull();
RuleFor(x => x.IsMakePart).NotNull();
RuleFor(x => x.IsBuyPart).NotNull();

Loading…
Cancel
Save