mirror of https://github.com/abpframework/abp.git
14 changed files with 46 additions and 44 deletions
@ -0,0 +1,12 @@ |
|||
using Microsoft.AspNetCore.Cors.Infrastructure; |
|||
|
|||
namespace Microsoft.AspNetCore.Cors |
|||
{ |
|||
public static class AbpCorsPolicyBuilderExtensions |
|||
{ |
|||
public static CorsPolicyBuilder WithAbpExposedHeaders(this CorsPolicyBuilder corsPolicyBuilder) |
|||
{ |
|||
return corsPolicyBuilder.WithExposedHeaders("_AbpErrorFormat"); |
|||
} |
|||
} |
|||
} |
|||
@ -1,9 +0,0 @@ |
|||
using Volo.Abp.Application.Dtos; |
|||
|
|||
namespace Volo.Abp.Identity |
|||
{ |
|||
public class GetIdentityRolesInput : PagedAndSortedResultRequestDto |
|||
{ |
|||
public string Filter { get; set; } |
|||
} |
|||
} |
|||
@ -1,13 +1,21 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Application.Services; |
|||
|
|||
namespace Volo.Abp.Identity |
|||
{ |
|||
public interface IIdentityRoleAppService : ICrudAppService<IdentityRoleDto, Guid, GetIdentityRolesInput, IdentityRoleCreateDto, IdentityRoleUpdateDto> |
|||
public interface IIdentityRoleAppService : IApplicationService |
|||
{ |
|||
//TODO: remove after a better design
|
|||
Task<List<IdentityRoleDto>> GetAllListAsync(); |
|||
Task<ListResultDto<IdentityRoleDto>> GetListAsync(); |
|||
|
|||
Task<IdentityRoleDto> CreateAsync(IdentityRoleCreateDto input); |
|||
|
|||
Task<IdentityRoleDto> GetAsync(Guid id); |
|||
|
|||
Task<IdentityRoleDto> UpdateAsync(Guid id, IdentityRoleUpdateDto input); |
|||
|
|||
Task DeleteAsync(Guid id); |
|||
} |
|||
} |
|||
|
|||
Loading…
Reference in new issue