using DS.Module.Core; using DS.WMS.Core.Info.Dtos; using DS.WMS.Core.Info.Interface; using DS.WMS.Core.System.Dtos; using DS.WMS.Core.System.Interface; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.MainApi.Controllers; /// /// 客户收发货人信息-模块 /// public class ClientShipperController : ApiController { private readonly IClientShipperService _invokeService; /// /// 构造函数 /// /// public ClientShipperController(IClientShipperService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetClientShipperList")] public DataResult> GetClientShipperList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditClientShipper")] public DataResult EditClientShipper([FromBody] ClientShipperReq req) { var res = _invokeService.EditClientShipper(req); return res; } /// /// 详情 /// /// /// [HttpGet] [Route("GetClientShipperInfo")] public DataResult GetClientShipperInfo([FromQuery] string id) { var res = _invokeService.GetClientShipperInfo(id); return res; } }