27 lines
599 B
C#
27 lines
599 B
C#
using Dlhis.Basic.Organization.Response;
|
|
using Dlhis.Basic.Organization.Services;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace Dlhis.Basic.Organization.Controllers;
|
|
|
|
/// <summary>
|
|
/// 人事范围
|
|
/// </summary>
|
|
[Route("api/[controller]")]
|
|
[ApiController]
|
|
public class WerksController : ControllerBase
|
|
{
|
|
private readonly IWerkService _werkService;
|
|
|
|
public WerksController(IWerkService werkService)
|
|
{
|
|
_werkService = werkService;
|
|
}
|
|
|
|
[HttpGet("list")]
|
|
public async Task<List<WerkResponse>> GetListAsync()
|
|
{
|
|
return await _werkService.GetListAsync();
|
|
}
|
|
}
|