using DS.Module.Core; using DS.WMS.Core.Code.Dtos; using DS.WMS.Core.Code.Interface; using DS.WMS.Core.Sys.Dtos; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.AdminApi.Controllers; /// /// 船公司信息服务 /// public class CodeCarrierController : ApiController { private readonly ICodeCarrierService _invokeService; /// /// 构造函数 /// /// public CodeCarrierController(ICodeCarrierService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetCodeCarrierList")] public DataResult> GetCodeCarrierList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditCodeCarrier")] public DataResult EditCodeCarrier([FromBody] CodeCarrierReq model) { var res = _invokeService.EditCodeCarrier(model); return res; } /// /// 详情 /// /// /// [HttpGet] [Route("GetCodeCarrierInfo")] public DataResult GetCodeCarrierInfo([FromQuery] string id) { var res = _invokeService.GetCodeCarrierInfo(id); return res; } }