ClientAccess.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace SKMC.Api.Client.Access
  7. {
  8. /// <summary>
  9. /// 客户端权限
  10. /// </summary>
  11. public class ClientAccess
  12. {
  13. private long _id;
  14. public long Id
  15. {
  16. get { return _id; }
  17. set { _id = value; }
  18. }
  19. private string _code;
  20. /// <summary>
  21. /// 权限码
  22. /// </summary>
  23. public string Code
  24. {
  25. get { return _code; }
  26. set { _code = value; }
  27. }
  28. private string _name;
  29. public string Name
  30. {
  31. get { return _name; }
  32. set { _name = value; }
  33. }
  34. private long _parentId;
  35. /// <summary>
  36. /// 父节点Id(预留)
  37. /// </summary>
  38. public long ParentId
  39. {
  40. get { return _parentId; }
  41. set { _parentId = value; }
  42. }
  43. private short _type;
  44. /// <summary>
  45. /// 权限类型, 0为UI类可见; 1为操作类可用
  46. /// </summary>
  47. public short Type
  48. {
  49. get { return _type; }
  50. set { _type = value; }
  51. }
  52. /// <summary>
  53. /// 是否管理类权限, 0为非管理类权限; 0为管理类权限
  54. /// </summary>
  55. public short Admin { get; set; }
  56. /// <summary>
  57. /// 当前权限在这些设备状态下时有效
  58. /// </summary>
  59. public byte[] DeviceStatus { get; set; }
  60. }
  61. }