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; } /// /// 获取山西所有人员 /// /// [HttpGet("shanxi/all")] public async Task> GetAllGainfosAsync() { return await _gainfoService.GetAllGainfosAsync(); } }