using DS.Module.Core; using DS.Module.Core.Data; using DS.WMS.Core.Code.Dtos; using DS.WMS.Core.Code.Interface; using DS.WMS.Core.Sea.Dtos; using DS.WMS.Core.Sea.Interface; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.OpApi.Controllers; /// /// 函电信息入货通知服务 /// public class LetterYardController : ApiController { private readonly IOpLetterYardService _invokeService; /// /// 构造函数 /// /// public LetterYardController(IOpLetterYardService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetOpLetterYardList")] public DataResult> GetOpLetterYardList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditOpLetterYard")] public DataResult EditOpLetterYard([FromBody] OpLetterYardReq model) { var res = _invokeService.EditOpLetterYard(model); return res; } /// /// 详情 /// /// /// [HttpGet] [Route("GetOpLetterYardInfo")] public DataResult GetOpLetterYardInfo([FromQuery] string id) { var res = _invokeService.GetOpLetterYardInfo(id); return res; } }