using Dlhis.Middle.Api;
using Dlhis.Middle.Request;
using Dlhis.Middle.Response;
using Kurisu.AspNetCore.DataAccess.SqlSugar.Aop;
using Kurisu.AspNetCore.UnifyResultAndValidation;
using Microsoft.AspNetCore.Mvc;
namespace Dlhis.Middle.Controllers;
///
/// 订单
///
[Route("api/canteen/[controller]")]
[ApiController]
public class OrdersController : ControllerBase
{
private readonly ICanteenApi _canteenApi;
public OrdersController(ICanteenApi canteenApi)
{
_canteenApi = canteenApi;
}
///
/// 消费
///
///
///
[HttpPost]
[IgnoreTenant]
public async Task> AddAsync(OrderAddRequest request)
{
return await _canteenApi.AddAsync(request);
}
}