PermissionCodes.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. namespace VCommonCoreExample.Authorization
  2. {
  3. public static class PermissionCodes
  4. {
  5. public static class Platform
  6. {
  7. public const string EntryPlatform = nameof(Platform);
  8. public static class Tenant
  9. {
  10. public const string EntryTenant = EntryPlatform + "." + nameof(Tenant);
  11. public const string Query = EntryTenant + "." + nameof(Query);
  12. public const string Create = EntryTenant + "." + nameof(Create);
  13. public const string Update = EntryTenant + "." + nameof(Update);
  14. public const string Delete = EntryTenant + "." + nameof(Delete);
  15. }
  16. //public static class License
  17. //{
  18. // public const string EntryLicense = EntryPlatform + "." + nameof(License);
  19. // public const string Query = EntryLicense + "." + nameof(Query);
  20. // public const string Create = EntryLicense + "." + nameof(Create);
  21. // public const string Update = EntryLicense + "." + nameof(Update);
  22. // public const string Delete = EntryLicense + "." + nameof(Delete);
  23. //}
  24. }
  25. public static class System
  26. {
  27. public const string EntrySystem = nameof(System);
  28. public static class Role
  29. {
  30. public const string EntryRole = EntrySystem + "." + nameof(Role);
  31. public const string Query = EntryRole + "." + nameof(Query);
  32. public const string Create = EntryRole + "." + nameof(Create);
  33. public const string Update = EntryRole + "." + nameof(Update);
  34. public const string Delete = EntryRole + "." + nameof(Delete);
  35. }
  36. public static class Org
  37. {
  38. public const string EntryOrg = EntrySystem + "." + nameof(Org);
  39. public const string Query = EntryOrg + "." + nameof(Query);
  40. public const string Create = EntryOrg + "." + nameof(Create);
  41. public const string Update = EntryOrg + "." + nameof(Update);
  42. public const string Delete = EntryOrg + "." + nameof(Delete);
  43. }
  44. public static class User
  45. {
  46. public const string EntryUser = EntrySystem + "." + nameof(User);
  47. public const string Query = EntryUser + "." + nameof(Query);
  48. public const string Create = EntryUser + "." + nameof(Create);
  49. public const string Update = EntryUser + "." + nameof(Update);
  50. public const string Delete = EntryUser + "." + nameof(Delete);
  51. public const string ResetPassword = EntryUser + "." + nameof(ResetPassword);
  52. }
  53. }
  54. }
  55. }