InforDtos.cs 749 B

1234567891011121314151617181920212223242526272829
  1. using FluentValidation;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace OASystem.Domain.Dtos.Groups
  8. {
  9. public class InforDtos
  10. {
  11. }
  12. public class InforRetrogressTableFileDownloadDto
  13. {
  14. public int GroupId { get; set; }
  15. public int CurrUserId { get; set; }
  16. }
  17. public class InforRetrogressTableFileDownloadDtoValidator : AbstractValidator<InforRetrogressTableFileDownloadDto>
  18. {
  19. public InforRetrogressTableFileDownloadDtoValidator()
  20. {
  21. RuleFor(x => x.GroupId).GreaterThan(0).WithMessage(MsgTips.DiId);
  22. RuleFor(x => x.CurrUserId).GreaterThan(0).WithMessage(MsgTips.DiId);
  23. }
  24. }
  25. }