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.Authentication.JwtBearer;
|
|
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
namespace BBWY.Server.API.Controllers
|
|
|
|
{
|
|
|
|
public class ProductController : BaseApiController
|
|
|
|
{
|
|
|
|
private ProductBusiness productBusiness;
|
|
|
|
|
|
|
|
public ProductController(IHttpContextAccessor httpContextAccessor, ProductBusiness productBusiness) : base(httpContextAccessor)
|
|
|
|
{
|
|
|
|
this.productBusiness = productBusiness;
|
|
|
|
}
|
|
|
|
|
|
|
|
[HttpPost]
|
|
|
|
public ProductListResponse GetProductList([FromBody] SearchProductRequest searchProductRequest)
|
|
|
|
{
|
|
|
|
return productBusiness.GetProductList(searchProductRequest);
|
|
|
|
}
|
|
|
|
|
|
|
|
[HttpPost]
|
|
|
|
public IList<ProductSkuResponse> GetProductSkuList([FromBody] SearchProductSkuRequest searchProductSkuRequest)
|
|
|
|
{
|
|
|
|
return productBusiness.GetProductSkuList(searchProductSkuRequest);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|