12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- 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("test11")]
- public ApiResult<string> Test()
- {
- return _productService.Test();
- }
-
-
-
-
-
-
-
- [HttpGet]
- [Route("query")]
- public PagedApiResult<ProductResponseDto> Query(string kw = "", int skip = 0, int limit = 1)
- {
- return _productService.Query(kw, skip, limit);
- }
- }
- }
|