Department.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. /// <summary>
  31. /// 用户成员
  32. /// </summary>
  33. /// <value></value>
  34. public int UserCount { get; set; }
  35. }
  36. /// <summary>
  37. /// 部门
  38. /// </summary>
  39. [DataTable("tede_department_user")]
  40. public class DepartmentUser : Datory.Entity
  41. {
  42. /// <summary>
  43. /// 部门Id
  44. /// </summary>
  45. [DataColumn]
  46. public int DepartmentId { get; set; }
  47. /// <summary>
  48. /// 用户ID
  49. /// </summary>
  50. [DataColumn]
  51. public int UserId { get; set; }
  52. }
  53. }