using DS.Module.Core; using DS.WMS.Core.Code.Dtos; using DS.WMS.Core.Code.Interface; using DS.WMS.Core.Sys.Dtos; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.AdminApi.Controllers; /// /// 商品服务 /// public class CodeGoodsController : ApiController { private readonly ICodeGoodsService _invokeService; /// /// 构造函数 /// /// public CodeGoodsController(ICodeGoodsService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetCodeGoodsList")] public DataResult> GetCodeGoodsList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditCodeGoods")] public DataResult EditCodeGoods([FromBody] CodeGoodsReq model) { var res = _invokeService.EditCodeGoods(model); return res; } /// /// 详情 /// /// /// [HttpGet] [Route("GetCodeGoodsInfo")] public DataResult GetCodeGoodsInfo([FromQuery] string id) { var res = _invokeService.GetCodeGoodsInfo(id); return res; } }