DepartmentView.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace OASystem.Domain.ViewModels.QiYeWeChat
  7. {
  8. /// <summary>
  9. /// 部门详情
  10. /// </summary>
  11. public class DepartmentView
  12. {
  13. /// <summary>
  14. /// 部门Id
  15. /// </summary>
  16. public long id { get; set; }
  17. /// <summary>
  18. /// 部门名称
  19. /// </summary>
  20. public string? name { get; set; }
  21. /// <summary>
  22. /// 部门负责人的UserID;第三方仅通讯录应用可获取
  23. /// </summary>
  24. public List<string>? department_leader { get; set; }
  25. /// <summary>
  26. /// 父部门id。根部门为1
  27. /// </summary>
  28. public int parentid { get; set; }
  29. /// <summary>
  30. /// 在父部门中的次序值。order值大的排序靠前。值范围是[0, 2^32)
  31. /// </summary>
  32. public long order { get; set; }
  33. }
  34. /// <summary>
  35. /// 部门列表
  36. /// </summary>
  37. public class DepartmentListView : ResponseBase
  38. {
  39. /// <summary>
  40. /// 部门列表数据
  41. /// </summary>
  42. public List<DepartmentView>? department { get; set; }
  43. }
  44. }