mirror of https://github.com/abpframework/abp.git
6 changed files with 109 additions and 9 deletions
@ -0,0 +1,19 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
|
||||
|
namespace Volo.Abp.Application.Services |
||||
|
{ |
||||
|
public interface ICreateAppService<TEntityDto> |
||||
|
: ICreateAppService<TEntityDto, TEntityDto> |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
|
||||
|
public interface ICreateAppService<TGetOutputDto, in TCreateInput> |
||||
|
: IApplicationService |
||||
|
{ |
||||
|
Task<TGetOutputDto> CreateAsync(TCreateInput input); |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace Volo.Abp.Application.Services |
||||
|
{ |
||||
|
public interface ICreateUpdateAppService<TEntityDto, in TKey> |
||||
|
: ICreateUpdateAppService<TEntityDto, TKey, TEntityDto, TEntityDto> |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
|
||||
|
public interface ICreateUpdateAppService<TEntityDto, in TKey, in TCreateUpdateInput> |
||||
|
: ICreateUpdateAppService<TEntityDto, TKey, TCreateUpdateInput, TCreateUpdateInput> |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
|
||||
|
public interface ICreateUpdateAppService<TGetOutputDto, in TKey, in TCreateUpdateInput, in TUpdateInput> |
||||
|
: ICreateAppService<TGetOutputDto, TCreateUpdateInput> |
||||
|
, IUpdateAppService<TGetOutputDto, TKey, TUpdateInput> |
||||
|
, IApplicationService |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,12 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
|
||||
|
namespace Volo.Abp.Application.Services |
||||
|
{ |
||||
|
public interface IDeleteAppService<in TKey> : IApplicationService |
||||
|
{ |
||||
|
Task DeleteAsync(TKey id); |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,28 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
|
||||
|
using Volo.Abp.Application.Dtos; |
||||
|
|
||||
|
namespace Volo.Abp.Application.Services |
||||
|
{ |
||||
|
public interface IReadOnlyAppService<TEntityDto, in TKey> |
||||
|
: IReadOnlyAppService<TEntityDto, TEntityDto, TKey, PagedAndSortedResultRequestDto> |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
|
||||
|
public interface IReadOnlyAppService<TEntityDto, in TKey, in TGetListInput> |
||||
|
: IReadOnlyAppService<TEntityDto, TEntityDto, TKey, TGetListInput> |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
|
||||
|
public interface IReadOnlyAppService<TGetOutputDto, TGetListOutputDto, in TKey, in TGetListInput> |
||||
|
{ |
||||
|
Task<TGetOutputDto> GetAsync(TKey id); |
||||
|
|
||||
|
Task<PagedResultDto<TGetListOutputDto>> GetListAsync(TGetListInput input); |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,19 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
|
||||
|
namespace Volo.Abp.Application.Services |
||||
|
{ |
||||
|
public interface IUpdateAppService<TEntityDto, in TKey> |
||||
|
: IUpdateAppService<TEntityDto, TKey, TEntityDto> |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
|
||||
|
public interface IUpdateAppService<TGetOutputDto, in TKey, in TUpdateInput> |
||||
|
: IApplicationService |
||||
|
{ |
||||
|
Task<TGetOutputDto> UpdateAsync(TKey id, TUpdateInput input); |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue