using System.Threading.Tasks;
using GxPress.Common.Page;
using GxPress.Repository.Interface.Order;
using GxPress.Request.Order;
using GxPress.Result.Order;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace GxPress.Api.AdminControllers
{
///
/// 商务管理
///
[Route("api/admin/admin")]
[ApiController]
[Authorize]
public class AdminOrderController : Controller
{
private readonly IOrderRepository orderRepository;
public AdminOrderController(IOrderRepository orderRepository)
{
this.orderRepository = orderRepository;
}
///
/// 订单管理 查询订单
///
///
///
[HttpPost("list")]
public async Task> GetAllOrderAsync(OrderSearchRequest request)
{
return await orderRepository.GetAllOrderAsync(request);
}
///
/// 财务中心
///
///
/// ///
[HttpPost("finance-list")]
public async Task> GetAllOrderFinnceAsync(OrderFinanceSearchRequest request)
{
return await orderRepository.GetAllOrderFinnceAsync(request);
}
}
}