using Dlhis.External.OpenApi.Request; using Dlhis.External.OpenApi.Response; using Dlhis.External.OpenApi.Services; using Kurisu.AspNetCore.DataAccess.Dto; 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(); } /// /// 获取考勤数据 /// /// /// [HttpGet("attendance/pagination")] public async Task> GetAttendanceRecordPageAsync([FromQuery] DeviceUploadLogMyRecordRequest request) { return await _gainfoService.GetAttendanceRecordPageAsync(request); } }