Files
Yi.Admin/Yi.Furion.Net6/Yi.Framework.Infrastructure/Ddd/Services/Abstract/IReadOnlyAppService.cs

25 lines
724 B
C#
Raw Normal View History

2023-04-13 21:12:06 +08:00
using Yi.Framework.Infrastructure.Ddd.Dtos;
namespace Yi.Framework.Infrastructure.Ddd.Services.Abstract
{
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>
: IApplicationService
{
Task<TGetOutputDto> GetAsync(TKey id);
Task<PagedResultDto<TGetListOutputDto>> GetListAsync(TGetListInput input);
}
}