ContactsUtil.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace CollaborativePlatformMain.DFEntity.MessageSubUtil
  7. {
  8. /// <summary>
  9. ///
  10. /// <para>文件名(File Name): ContactsUtil.cs</para>
  11. ///
  12. /// <para>描述(Description): 联系人数据类</para>
  13. ///
  14. /// <para>数据表(Tables): nothing</para>
  15. ///
  16. /// <para>作者(Author): Ou Rui Song</para>
  17. ///
  18. /// <para>日期(Create Date): 2024年4月28日11:04:31</para>
  19. ///
  20. /// 修改记录(Revision History):
  21. /// R1:
  22. /// 修改作者:
  23. /// 修改日期:
  24. /// 修改理由:
  25. ///
  26. /// </summary>
  27. public class ContactsUtil
  28. {
  29. /// <summary>
  30. /// 子级数据
  31. /// </summary>
  32. /// <param name="id"></param>
  33. /// <param name="name"></param>
  34. public ContactsUtil(string id, string name)
  35. {
  36. Id = id;
  37. Name = name;
  38. }
  39. /// <summary>
  40. /// 父级数据
  41. /// </summary>
  42. /// <param name="id"></param>
  43. /// <param name="name"></param>
  44. /// <param name="subDatas"></param>
  45. public ContactsUtil(string id, string name, List<ContactsUtil> subDatas) : this(id, name)
  46. {
  47. SubDatas = subDatas;
  48. }
  49. /// <summary>
  50. /// ID
  51. /// </summary>
  52. public string Id { get; set; }
  53. /// <summary>
  54. /// 名称
  55. /// </summary>
  56. public string Name { get; set; }
  57. /// <summary>
  58. /// 子级数据
  59. /// </summary>
  60. public List<ContactsUtil> SubDatas { get; set; } = new List<ContactsUtil>();
  61. }
  62. }