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