12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- using FluentValidation;
- using OASystem.Domain.ViewModels;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace OASystem.Domain.Dtos.Statistics
- {
- public class DailypaymentDto
- {
- }
- public class DailypaymentTypeInitDto:PortDtoBase
- {
-
- }
- public class DailypaymentTypeDataSaveDto : PortDtoBase
- {
- public List<int> TypeIds { get; set; }
- }
- public class DailypaymentRangeDto : DtoBase
- {
- public string BeginDt { get; set; }
- public string EndDt { get; set; }
- /// <summary>
- /// 类型Data
- /// 1 数据 2 excel
- /// </summary>
- public int Type { get; set; }
- }
- public class DailypaymentRangeDtoValidator : AbstractValidator<DailypaymentRangeDto>
- {
- public DailypaymentRangeDtoValidator()
- {
- RuleFor(x => x.BeginDt).NotEmpty().WithMessage("开始查询日期不能为空!");
- RuleFor(x => x.EndDt).NotEmpty().WithMessage("结束查询日期不能为空!");
- RuleFor(x => x.Type).NotEmpty().WithMessage("结束查询日期不能为空!");
- }
-
- }
- }
|