完善单位定义界面

This commit is contained in:
陈淳
2023-01-04 16:47:24 +08:00
parent 5f6d29a3f8
commit e8e6b928cf
7 changed files with 69 additions and 7 deletions

View File

@@ -36,6 +36,13 @@ namespace Yi.Framework.Service.Base.Crud
protected IRepository<TEntity> Repository { get; set; }
public async Task<List<TGetListOutputDto>> GetListAsync()
{
var entitys = await Repository.GetListAsync();
var entityDtos = await MapToGetListOutputDtosAsync(entitys);
return entityDtos;
}
public async Task<TGetOutputDto> GetByIdAsync(TKey id)
{
var entity = await GetEntityByIdAsync(id);