using DS.Module.Core; using DS.WMS.Core.Code.Dtos; using DS.WMS.Core.Code.Interface; using DS.WMS.Core.System.Dtos; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.AdminApi.Controllers; /// /// 航次信息服务 /// public class CodeVoynoController : ApiController { private readonly ICodeVoynoService _invokeService; /// /// 构造函数 /// /// public CodeVoynoController(ICodeVoynoService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetCodeVoynoList")] public DataResult> GetCodeVoynoList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditCodeVoyno")] public DataResult EditCodeVoyno([FromBody] CodeVoynoReq model) { var res = _invokeService.EditCodeVoyno(model); return res; } /// /// 详情 /// /// /// [HttpGet] [Route("GetCodeVoynoInfo")] public DataResult GetCodeVoynoInfo([FromQuery] string id) { var res = _invokeService.GetCodeVoynoInfo(id); return res; } }