using DS.Module.Core; using DS.WMS.Core.System.Dtos; using DS.WMS.Core.System.Entity; using DS.WMS.Core.System.Interface; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.WebApi.Controllers; /// /// /// public class CodeGoodsController : ApiController { private readonly ICodeGoodsService _invokeService; /// /// 构造函数 /// /// public CodeGoodsController(ICodeGoodsService invokeService) { _invokeService = invokeService; } /// /// 商品列表 /// /// /// [HttpPost] [Route("GetGoodList")] public DataResult> GetGoodList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 获取商品信息 /// /// /// [HttpGet] [Route("GetGoodInfo")] public DataResult GetGoodInfo([FromQuery]string id) { var res = _invokeService.GetGoodInfo(id); return res; } }