36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
using Dlhis.Canteen.MealSupplementRecord.Request;
|
|
using Dlhis.Canteen.MealSupplementRecord.Response;
|
|
using Dlhis.Canteen.MealSupplementRecord.Services;
|
|
using Kurisu.Core.DataAccess.Dto;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace Dlhis.Canteen.MealSupplementRecord.Controller;
|
|
|
|
/// <summary>
|
|
/// 原始餐补
|
|
/// </summary>
|
|
[Authorize]
|
|
[Route("api/[controller]")]
|
|
[ApiController]
|
|
public class MealSupplementRecordController
|
|
{
|
|
private readonly IMealSupplementRecordService _mealSupplementRecordService;
|
|
|
|
public MealSupplementRecordController(IMealSupplementRecordService mealSupplementRecordService)
|
|
{
|
|
_mealSupplementRecordService = mealSupplementRecordService;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 餐补分页
|
|
/// </summary>
|
|
/// <param name="request"></param>
|
|
/// <returns></returns>
|
|
[HttpGet("page")]
|
|
public async Task<Pagination<MealSupplementRecordResponse>> MealSupplementRecordPageAsync([FromQuery] MealSupplementRecordRequest request)
|
|
{
|
|
return await _mealSupplementRecordService.GetPageAsync(request);
|
|
}
|
|
}
|