ClientRole.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using Prism.Mvvm;
  2. using System.Collections.Generic;
  3. using System.Collections.ObjectModel;
  4. namespace SKMC.Api.Client.Access
  5. {
  6. /// <summary>
  7. /// 客户端角色
  8. /// </summary>
  9. public class ClientRole : BindableBase
  10. {
  11. private long _id;
  12. public long Id
  13. {
  14. get { return _id; }
  15. set { _id = value; }
  16. }
  17. private string _code;
  18. public string Code
  19. {
  20. get { return _code; }
  21. set { _code = value; }
  22. }
  23. private string _name;
  24. public string Name
  25. {
  26. get { return _name; }
  27. set { _name = value; }
  28. }
  29. private string _passowrd;
  30. public string Password
  31. {
  32. get { return _passowrd; }
  33. set { _passowrd = value; }
  34. }
  35. public string ShowName
  36. {
  37. get { return $"{_name} {_code}"; }
  38. }
  39. public ObservableCollection<ClientAccess> ClientAccesses { get; set; } = new ObservableCollection<ClientAccess>();
  40. }
  41. }