28 lines
777 B
C#
28 lines
777 B
C#
using Dlhis.External.MealSupplement.Request;
|
|
using Dlhis.External.MealSupplement.Services;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace Dlhis.External.MealSupplement.Controller;
|
|
|
|
[Route("api/[controller]")]
|
|
[ApiController]
|
|
public class MealSupplementsController : ControllerBase
|
|
{
|
|
private readonly IMealSupplementService _mealSupplementService;
|
|
|
|
public MealSupplementsController(IMealSupplementService mealSupplementService)
|
|
{
|
|
_mealSupplementService = mealSupplementService;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 接受餐补
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpPost("receive")]
|
|
public async Task DoSupplements(List<MealSupplementReceiveReuqest> requests)
|
|
{
|
|
await _mealSupplementService.DoSupplementsAsync(requests);
|
|
}
|
|
}
|