feat 订单聚合接口
This commit is contained in:
@@ -6,6 +6,7 @@ using Kurisu.AspNetCore.DataAccess.SqlSugar.Aop;
|
||||
using Kurisu.Core.DataAccess.Dto;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Org.BouncyCastle.Asn1.Ocsp;
|
||||
|
||||
namespace Dlhis.Canteen.Dishes.Controllers;
|
||||
|
||||
@@ -68,9 +69,20 @@ public class OrdersController : ControllerBase
|
||||
[Transactional]
|
||||
public async Task Booking(BookingMealRequest request)
|
||||
{
|
||||
await _orderService.Booking(request);
|
||||
await _orderService.BookingAsync(request);
|
||||
}
|
||||
|
||||
///// <summary>
|
||||
///// 获取详情
|
||||
///// </summary>
|
||||
///// <param name="no"></param>
|
||||
///// <returns></returns>
|
||||
//[HttpGet("details")]
|
||||
//public async Task<List<OrderDetailResponse>> GetDetailsAsync(string no)
|
||||
//{
|
||||
// return await _orderService.GetDetailsAsync(no);
|
||||
//}
|
||||
|
||||
/// <summary>
|
||||
/// 充值
|
||||
/// </summary>
|
||||
@@ -80,4 +92,14 @@ public class OrdersController : ControllerBase
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 订单聚合数据
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpGet("aggregation")]
|
||||
public async Task<Pagination<OrderAggregationResponse>> GetOrdersAggregationAsync([FromQuery] PageDto page)
|
||||
{
|
||||
return await _orderService.GetOrdersAggregationAsync(page);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user