30 lines
741 B
C#
30 lines
741 B
C#
using Dlhis.External.OpenApi.Response;
|
|
using Dlhis.External.OpenApi.Services;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace Dlhis.External.OpenApi.Controllers;
|
|
|
|
[Authorize]
|
|
[Route("api/[controller]")]
|
|
[ApiController]
|
|
public class GainfosController : ControllerBase
|
|
{
|
|
private readonly IGainfoService _gainfoService;
|
|
|
|
public GainfosController(IGainfoService gainfoService)
|
|
{
|
|
_gainfoService = gainfoService;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取山西所有人员
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet("shanxi/all")]
|
|
public async Task<List<GainfoOpenResponse>> GetAllGainfosAsync()
|
|
{
|
|
return await _gainfoService.GetAllGainfosAsync();
|
|
}
|
|
}
|