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