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.
38 lines
1.1 KiB
38 lines
1.1 KiB
2 years ago
|
using BBWYB.Server.Business;
|
||
|
using Microsoft.AspNetCore.Mvc;
|
||
|
using SDKAdapter.OperationPlatform.Models;
|
||
|
|
||
|
namespace BBWYB.Server.API.Controllers
|
||
|
{
|
||
|
public class ProductController : BaseApiController
|
||
|
{
|
||
|
private ProductBusiness productBusiness;
|
||
|
public ProductController(ProductBusiness productBusiness, IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor)
|
||
|
{
|
||
|
this.productBusiness = productBusiness;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// spu列表查询
|
||
|
/// </summary>
|
||
|
/// <param name="request"></param>
|
||
|
/// <returns></returns>
|
||
|
[HttpPost]
|
||
|
public OP_ProductListResponse GetProductList([FromBody] OP_SearchProductRequest request)
|
||
|
{
|
||
|
return productBusiness.GetProductList(request);
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// sku列表查询
|
||
|
/// </summary>
|
||
|
/// <param name="request"></param>
|
||
|
/// <returns></returns>
|
||
|
[HttpPost]
|
||
|
public OP_ProductSkuListResponse GetProductSkuList([FromBody] OP_SearchProductSkuRequest request)
|
||
|
{
|
||
|
return productBusiness.GetProductSkuList(request);
|
||
|
}
|
||
|
}
|
||
|
}
|