GatherCategoryModel.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using AIPlatform.Protocol.Entities;
  2. using System.ComponentModel.DataAnnotations;
  3. namespace aipmgr.Models
  4. {
  5. public class GatherCategoryModel
  6. {
  7. [Key]
  8. [Display(Name = "主键")]
  9. public long Id { get; set; }
  10. [Display(Name = "所属组织")]
  11. [Required(ErrorMessage = "{0}不能为空")]
  12. public long OrganizationId { get; set; }
  13. [Display(Name = "所属组织")]
  14. [Required]
  15. public string? OrganizationName { get; set; }
  16. [Display(Name = "名称")]
  17. [Required(ErrorMessage = "{0}不能为空")]
  18. public string? Name { get; set; }
  19. [Display(Name = "采集人员")]
  20. public List<EntityBase> Gatherers { get; set; }
  21. [Display(Name = "采集人员")]
  22. public string? GathererName { get; set; }
  23. [Display(Name = "创建时间")]
  24. public DateTime CreateTime { get; set; }
  25. [Display(Name = "采集人员")]
  26. [Required(ErrorMessage = "{0}不能为空")]
  27. public List<string> GatherersValue { get; set; }
  28. public GatherCategoryModel()
  29. {
  30. Gatherers = new List<EntityBase>();
  31. GatherersValue = new List<string>();
  32. }
  33. }
  34. }