TenantAppService.cs 1.2 KB

123456789101112131415161718192021222324252627282930
  1. using Abp.Authorization;
  2. using Abp.Domain.Repositories;
  3. using Microsoft.Extensions.DependencyInjection;
  4. using VberAdmin.Authorization;
  5. using VberZero.AppService.MultiTenancy;
  6. using VberZero.Authorization.Roles;
  7. using VberZero.Authorization.Users;
  8. using VberZero.BaseSystem.MultiTenancy;
  9. using VberZero.MultiTenancy;
  10. namespace VberAdmin.BaseSystem.MultiTenancy;
  11. [AbpAuthorize()]
  12. public class TenantAppService : TenantAppServiceBase, ITenantAppService
  13. {
  14. public TenantAppService(IRepository<Tenant, int> repository, VzTenantManager tenantManager, VzUserManager userManager, VzRoleManager roleManager, IVzDbMigrator vzDbMigrator) : base(repository, tenantManager, userManager, roleManager, vzDbMigrator)
  15. {
  16. }
  17. protected override string GetPermissionName => PermissionNames.VberSystemMgTenantMgQuery;
  18. protected override string GetAllPermissionName => PermissionNames.VberSystemMgTenantMgQuery;
  19. protected override string CreatePermissionName => PermissionNames.VberSystemMgTenantMgCreate;
  20. protected override string UpdatePermissionName => PermissionNames.VberSystemMgTenantMgUpdate;
  21. protected override string DeletePermissionName => PermissionNames.VberSystemMgTenantMgDelete;
  22. }