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 LetterSurController : ApiController { private readonly IOpLetterSurService _invokeService; /// /// 构造函数 /// /// public LetterSurController(IOpLetterSurService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetOpLetterSurList")] public DataResult> GetOpLetterSurList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditOpLetterSur")] public DataResult EditOpLetterSur([FromBody] OpLetterSurReq model) { var res = _invokeService.EditOpLetterSur(model); return res; } /// /// 详情 /// /// /// [HttpGet] [Route("GetOpLetterSurInfo")] public DataResult GetOpLetterSurInfo([FromQuery] string id) { var res = _invokeService.GetOpLetterSurInfo(id); return res; } }