|
|
|
@ -20,8 +20,8 @@ namespace Volo.Abp.Application.Services |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public abstract class AsyncCrudAppService<TEntity, TEntityDto, TKey, TGetAllInput> |
|
|
|
: AsyncCrudAppService<TEntity, TEntityDto, TKey, TGetAllInput, TEntityDto, TEntityDto> |
|
|
|
public abstract class AsyncCrudAppService<TEntity, TEntityDto, TKey, TGetListInput> |
|
|
|
: AsyncCrudAppService<TEntity, TEntityDto, TKey, TGetListInput, TEntityDto, TEntityDto> |
|
|
|
where TEntity : class, IEntity<TKey> |
|
|
|
where TEntityDto : IEntityDto<TKey> |
|
|
|
{ |
|
|
|
@ -32,8 +32,8 @@ namespace Volo.Abp.Application.Services |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public abstract class AsyncCrudAppService<TEntity, TEntityDto, TKey, TGetAllInput, TCreateInput> |
|
|
|
: AsyncCrudAppService<TEntity, TEntityDto, TKey, TGetAllInput, TCreateInput, TCreateInput> |
|
|
|
public abstract class AsyncCrudAppService<TEntity, TEntityDto, TKey, TGetListInput, TCreateInput> |
|
|
|
: AsyncCrudAppService<TEntity, TEntityDto, TKey, TGetListInput, TCreateInput, TCreateInput> |
|
|
|
where TEntity : class, IEntity<TKey> |
|
|
|
where TEntityDto : IEntityDto<TKey> |
|
|
|
{ |
|
|
|
@ -44,9 +44,9 @@ namespace Volo.Abp.Application.Services |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public abstract class AsyncCrudAppService<TEntity, TEntityDto, TKey, TGetAllInput, TCreateInput, TUpdateInput> |
|
|
|
: CrudAppServiceBase<TEntity, TEntityDto, TKey, TGetAllInput, TCreateInput, TUpdateInput>, |
|
|
|
IAsyncCrudAppService<TEntityDto, TKey, TGetAllInput, TCreateInput, TUpdateInput> |
|
|
|
public abstract class AsyncCrudAppService<TEntity, TEntityDto, TKey, TGetListInput, TCreateInput, TUpdateInput> |
|
|
|
: CrudAppServiceBase<TEntity, TEntityDto, TKey, TGetListInput, TCreateInput, TUpdateInput>, |
|
|
|
IAsyncCrudAppService<TEntityDto, TKey, TGetListInput, TCreateInput, TUpdateInput> |
|
|
|
where TEntity : class, IEntity<TKey> |
|
|
|
where TEntityDto : IEntityDto<TKey> |
|
|
|
{ |
|
|
|
@ -66,9 +66,9 @@ namespace Volo.Abp.Application.Services |
|
|
|
return MapToEntityDto(entity); |
|
|
|
} |
|
|
|
|
|
|
|
public virtual async Task<PagedResultDto<TEntityDto>> GetListAsync(TGetAllInput input) |
|
|
|
public virtual async Task<PagedResultDto<TEntityDto>> GetListAsync(TGetListInput input) |
|
|
|
{ |
|
|
|
await CheckGetAllPolicyAsync(); |
|
|
|
await CheckGetListPolicyAsync(); |
|
|
|
|
|
|
|
var query = CreateFilteredQuery(input); |
|
|
|
|
|
|
|
@ -128,9 +128,9 @@ namespace Volo.Abp.Application.Services |
|
|
|
await CheckPolicyAsync(GetPolicyName); |
|
|
|
} |
|
|
|
|
|
|
|
protected virtual async Task CheckGetAllPolicyAsync() |
|
|
|
protected virtual async Task CheckGetListPolicyAsync() |
|
|
|
{ |
|
|
|
await CheckPolicyAsync(GetAllPolicyName); |
|
|
|
await CheckPolicyAsync(GetListPolicyName); |
|
|
|
} |
|
|
|
|
|
|
|
protected virtual async Task CheckCreatePolicyAsync() |
|
|
|
|