You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
using BBWY.Server.Business;
|
|
|
|
using BBWY.Server.Model.Dto;
|
|
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
|
|
namespace BBWY.Server.API.Controllers
|
|
|
|
{
|
|
|
|
public class AfterSaleOrderController : BaseApiController
|
|
|
|
{
|
|
|
|
private AfterSaleOrderBusiness afterSaleOrderBusiness;
|
|
|
|
|
|
|
|
public AfterSaleOrderController(IHttpContextAccessor httpContextAccessor, AfterSaleOrderBusiness afterSaleOrderBusiness) : base(httpContextAccessor)
|
|
|
|
{
|
|
|
|
this.afterSaleOrderBusiness = afterSaleOrderBusiness;
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取服务单列表
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="request"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpPost]
|
|
|
|
public AfterSaleOrderListResponse GetAfterSaleOrderList([FromBody] SearchAfterSaleOrderRequest request)
|
|
|
|
{
|
|
|
|
return afterSaleOrderBusiness.GetAfterSaleOrderList(request);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取单个服务单
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="afterSaleOrderId"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpGet]
|
|
|
|
public AfterSaleOrderResponse GetAfterSaleOrderById([FromRoute]long afterSaleOrderId)
|
|
|
|
{
|
|
|
|
return afterSaleOrderBusiness.GetAfterSaleOrderById(afterSaleOrderId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|