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