23 lines
543 B
C#
23 lines
543 B
C#
using Dlhis.Basic.Organization.Response;
|
|
using Dlhis.Entity.Basic.Entity;
|
|
using Kurisu.SqlSugar.Services;
|
|
|
|
namespace Dlhis.Basic.Organization.Services.Implements;
|
|
|
|
public class WerkService : IWerkService
|
|
{
|
|
private readonly IDbContext _dbContext;
|
|
|
|
public WerkService(IDbContext dbContext)
|
|
{
|
|
_dbContext = dbContext;
|
|
}
|
|
|
|
public async Task<List<WerkResponse>> GetListAsync()
|
|
{
|
|
return await _dbContext.Queryable<WerkEntity>()
|
|
.Select<WerkResponse>()
|
|
.ToListAsync();
|
|
}
|
|
}
|