using DS.Module.Core; using DS.Module.Core.Data; using DS.WMS.Core.Code.Dtos; using DS.WMS.Core.Code.Interface; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.MainApi.Controllers; /// /// 运输条款服务 /// public class CodeServiceController : ApiController { private readonly ICodeServiceService _invokeService; /// /// 构造函数 /// /// public CodeServiceController(ICodeServiceService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetCodeServiceList")] public DataResult> GetCodeServiceList([FromBody] PageRequest request) { var res = _invokeService.GetClientListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditCodeService")] public DataResult EditCodeService([FromBody] CodeServiceReq model) { var res = _invokeService.EditClientCodeService(model); return res; } /// /// 详情 /// /// /// [HttpGet] [Route("GetCodeServiceInfo")] public DataResult GetCodeServiceInfo([FromQuery] string id) { var res = _invokeService.GetClientCodeServiceInfo(id); return res; } /// /// 获取运输条款列表-基础库 /// /// /// [HttpPost] [Route("GetBasicsCodeServiceList")] public DataResult> GetBasicsCodeServiceList([FromBody] PageRequest request) { var res = _invokeService.GetCodeServiceList(request); return res; } /// /// 导入运输条款类型-基础库 /// /// /// [HttpPost] [Route("ImportCodeService")] public DataResult ImportCodeService([FromBody] IdModel req) { var res = _invokeService.ImportCodeService(req); return res; } /// /// 获取当前租户已有的运输条款 /// /// [HttpGet] [Route("GetExistCodeServiceList")] public DataResult> GetExistCodeServiceList() { var res = _invokeService.GetExistCodeServiceList(); return res; } }