using Ant.Core.WebApi.Model; using Central.Control.WebApi.Models.Response; using Central.Control.WebApi.Service.Interface; using System.Web.Http; namespace Central.Control.WebApi.Controllers { /// /// 订单相关接口 /// [RoutePrefix("api/product")] public class ProductController : ApiController { private readonly IProductService _productService; /// /// /// /// public ProductController(IProductService productService) { _productService = productService; } /// /// 商品列表 /// /// /// /// /// [HttpGet] [Route("query")] public PagedApiResult Query(string kw = "", int skip = 0, int limit = 1) { return _productService.Query(kw, skip, limit); } } }