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.MainApi.Controllers; /// /// 函电信息派车通知服务 /// public class LetterTruckController : ApiController { private readonly IOpLetterTruckService _invokeService; /// /// 构造函数 /// /// public LetterTruckController(IOpLetterTruckService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetOpLetterTruckList")] public DataResult> GetOpLetterTruckList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditOpLetterTruck")] public DataResult EditOpLetterTruck([FromBody] OpLetterTruckReq model) { var res = _invokeService.EditOpLetterTruck(model); return res; } /// /// 详情 /// /// /// [HttpGet] [Route("GetOpLetterTruckInfo")] public DataResult GetOpLetterTruckInfo([FromQuery] string id) { var res = _invokeService.GetOpLetterTruckInfo(id); return res; } }