PersonInput.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application;
  3. /// <summary>
  4. /// 人员输入参数
  5. /// </summary>
  6. public class AddPersonInput
  7. {
  8. /// <summary>
  9. /// 姓名
  10. /// </summary>
  11. [Required, StringLength(100)]
  12. public string Name { get; set; }
  13. /// <summary>
  14. /// 曾用名
  15. /// </summary>
  16. [StringLength(100)]
  17. public string FormerName { get; set; }
  18. /// <summary>
  19. /// 证件类型
  20. /// </summary>
  21. [Required]
  22. public CertificateType CertificateType { get; set; } = CertificateType.NONE;
  23. /// <summary>
  24. /// 证件号码
  25. /// </summary>
  26. [StringLength(50)]
  27. public string IdNumber { get; set; } = "";
  28. /// <summary>
  29. /// 出生日期
  30. /// </summary>
  31. public DateTime? BirthDate { get; set; }
  32. /// <summary>
  33. /// 性别
  34. /// </summary>
  35. [Required]
  36. public Gender Gender { get; set; } = Gender.UNKNOWN;
  37. /// <summary>
  38. /// 手机号码
  39. /// </summary>
  40. [StringLength(50)]
  41. public string Mobile { get; set; } = "";
  42. /// <summary>
  43. /// 电子邮箱
  44. /// </summary>
  45. [StringLength(200)]
  46. public string Email { get; set; } = "";
  47. /// <summary>
  48. /// 备注
  49. /// </summary>
  50. [StringLength(200)]
  51. public string Remark { get; set; } = "";
  52. }