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.Op.Dtos; using DS.WMS.Core.Op.Interface; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.OpApi.Controllers; /// /// 函电信息更改通知服务 /// public class LetterChangeController : ApiController { private readonly IOpLetterChangeService _invokeService; /// /// 构造函数 /// /// public LetterChangeController(IOpLetterChangeService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetOpLetterChangeList")] public DataResult> GetOpLetterChangeList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditOpLetterChange")] public DataResult EditOpLetterChange([FromBody] OpLetterChangeReq model) { var res = _invokeService.EditOpLetterChange(model); return res; } /// /// 详情 /// /// /// [HttpGet] [Route("GetOpLetterChangeInfo")] public DataResult GetOpLetterChangeInfo([FromQuery] string id) { var res = _invokeService.GetOpLetterChangeInfo(id); return res; } }