GetCaseProcessReceiveInfoValidator.cs 872 B

1234567891011121314151617181920212223
  1. using DataSharing.Share.Dtos.Province.XieTong.Send;
  2. using FluentValidation;
  3. namespace DataSharing.Application.Validators
  4. {
  5. public class GetCaseProcessReceiveInfoValidator : AbstractValidator<GetCaseProcessReceiveInfo>
  6. {
  7. public GetCaseProcessReceiveInfoValidator()
  8. {
  9. RuleFor(d => d.AreaCode).NotEmpty();
  10. RuleFor(d => d.CaseSerial).NotEmpty();
  11. RuleFor(d => d.DeptName).NotEmpty();
  12. RuleFor(d => d.TacheName).NotEmpty();
  13. RuleFor(d => d.ProcessTime).NotEmpty();
  14. RuleFor(d => d.ProcessName).NotEmpty();
  15. RuleFor(d => d.ProcessNote).NotEmpty();
  16. // RuleFor(d => d.TrowGuid).NotEmpty();
  17. RuleFor(d => d.CliengGuid).NotEmpty();
  18. RuleFor(d => d.EndAreaCode).NotEmpty();
  19. RuleFor(d => d.EndAreaName).NotEmpty();
  20. }
  21. }
  22. }