DailypaymentDto.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. using FluentValidation;
  2. using OASystem.Domain.ViewModels;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace OASystem.Domain.Dtos.Statistics
  9. {
  10. public class DailypaymentDto
  11. {
  12. }
  13. public class DailypaymentTypeInitDto:PortDtoBase
  14. {
  15. }
  16. public class DailypaymentTypeDataSaveDto : PortDtoBase
  17. {
  18. public List<int> TypeIds { get; set; }
  19. }
  20. public class DailypaymentRangeDto : DtoBase
  21. {
  22. public string BeginDt { get; set; }
  23. public string EndDt { get; set; }
  24. /// <summary>
  25. /// 类型Data
  26. /// 1 数据 2 excel
  27. /// </summary>
  28. public int Type { get; set; }
  29. }
  30. public class DailypaymentRangeDtoValidator : AbstractValidator<DailypaymentRangeDto>
  31. {
  32. public DailypaymentRangeDtoValidator()
  33. {
  34. RuleFor(x => x.BeginDt).NotEmpty().WithMessage("开始查询日期不能为空!");
  35. RuleFor(x => x.EndDt).NotEmpty().WithMessage("结束查询日期不能为空!");
  36. RuleFor(x => x.Type).NotEmpty().WithMessage("结束查询日期不能为空!");
  37. }
  38. }
  39. }