1234567891011121314151617181920212223242526272829303132333435 |
- using FluentValidation;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace OASystem.Domain.Dtos.Tencent
- {
-
-
-
-
- public class VehicleLicenseOCRDto:OCRDtoBase
- {
-
-
-
-
-
- public int CardSide { get; set; }
- }
- public class VehicleLicenseOCRDtoFoalidator : AbstractValidator<VehicleLicenseOCRDto>
- {
- public VehicleLicenseOCRDtoFoalidator()
- {
- Include(new OCRDtoBaseFoalidator());
- RuleFor(it => it.CardSide)
- .InclusiveBetween(0, 2)
- .WithMessage("CardSide参数值超处范围! 0 FRONT(为行驶证主页正面(有红色印章的一面)) 1 BACK(为行驶证副页正面(有号码号牌的一面)) 2 DOUBEL(为行驶证主页正面和副页正面)");
- }
- }
- }
|