using System.ComponentModel.DataAnnotations; namespace Dlhis.Basic.Appointment.Dto; public class AppointmentReceiveItemDto { /// /// 姓名 /// [Required(ErrorMessage = "姓名必填")] public string Name { get; set; } /// /// 手机号 /// [StringLength(11, MinimumLength = 11)] [Required(ErrorMessage = "手机号必填")] public string Phone { get; set; } /// /// 身份证 /// [StringLength(18, MinimumLength = 18)] [Required(ErrorMessage = "身份证必填")] public string IdNo { get; set; } /// /// 备注 /// public string Remark { get; set; } }