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