using FluentValidation;
using System;
using System.Collections.Generic;
using System.Text;

namespace Performance.DtoModels
{
    public class AprAmountAuditRequest
    {
        public class Member
        {
            public string PersonnelNumber { get; set; }
            public string DoctorName { get; set; }
        }
        /// <summary> 绩效ID </summary>
        public int AllotId { get; set; }
        public List<Member> Members { get; set; }
        /// <summary> 审核结果 1、审核通过 2、驳回 </summary>
        public int IsPass { get; set; }
        /// <summary> 备注 </summary>
        public string Remark { get; set; }
    }
    public class AprAmountAuditRequestValidator : AbstractValidator<AprAmountAuditRequest>
    {
        public AprAmountAuditRequestValidator()
        {
            RuleFor(x => x.IsPass).NotNull().NotEmpty().InclusiveBetween(1, 2);
        }
    }
}
