using DS.Module.Core; using DS.WMS.Core.FeeModule.Dtos; using DS.WMS.Core.FeeModule.Interface; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.WebApi.Controllers; /// /// 客户整租服务 /// public class WmsRentController : ApiController { private readonly IWmsRentService _invokeService; /// /// 构造函数 /// /// public WmsRentController(IWmsRentService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetWmsRentList")] public DataResult> GetWmsRentList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditWmsRent")] public DataResult EditWmsRent([FromBody] WmsRentInput model) { var res = _invokeService.EditWmsRent(model); return res; } /// /// 获取信息 /// /// /// [HttpGet] [Route("GetWmsRentInfo")] public DataResult GetWmsRentInfo([FromQuery]string id) { var res = _invokeService.GetWmsRentInfo(id); return res; } }