42 lines
1.2 KiB
C#
42 lines
1.2 KiB
C#
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;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取山西所有人员
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet("shanxi/all")]
|
|
public async Task<List<GainfoOpenResponse>> GetAllGainfosAsync()
|
|
{
|
|
return await _gainfoService.GetAllGainfosAsync();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取考勤数据
|
|
/// </summary>
|
|
/// <param name="request"></param>
|
|
/// <returns></returns>
|
|
[HttpGet("attendance/pagination")]
|
|
public async Task<Pagination<DeviceUploadLogResponse>> GetAttendanceRecordPageAsync([FromQuery] DeviceUploadLogMyRecordRequest request)
|
|
{
|
|
return await _gainfoService.GetAttendanceRecordPageAsync(request);
|
|
}
|
|
} |