Department.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using Datory.Annotations;
  2. namespace GxPress.Entity
  3. {
  4. /// <summary>
  5. /// 部门
  6. /// </summary>
  7. [DataTable("tede_department")]
  8. public class Department : Datory.Entity
  9. {
  10. /// <summary>
  11. /// 部门名称
  12. /// </summary>
  13. [DataColumn]
  14. public string Name { get; set; }
  15. /// <summary>
  16. /// 父级部门id
  17. /// </summary>
  18. [DataColumn]
  19. public int ParentId { get; set; }
  20. /// <summary>
  21. /// 部门主管id
  22. /// </summary>
  23. [DataColumn]
  24. public int LeaderId { get; set; }
  25. /// <summary>
  26. /// 排序
  27. /// </summary>
  28. [DataColumn]
  29. public int Sort { get; set; }
  30. }
  31. /// <summary>
  32. /// 部门
  33. /// </summary>
  34. [DataTable("tede_department_user")]
  35. public class DepartmentUser : Datory.Entity
  36. {
  37. /// <summary>
  38. /// 部门Id
  39. /// </summary>
  40. [DataColumn]
  41. public int DepartmentId { get; set; }
  42. /// <summary>
  43. /// 用户ID
  44. /// </summary>
  45. [DataColumn]
  46. public int UserId { get; set; }
  47. }
  48. }