using DS.Module.Core;
using DS.WMS.Core.System.Dtos;
using DS.WMS.Core.System.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.MainApi.Controllers;
///
/// 系统编码模块
///
public class SequenceController : ApiController
{
private readonly ISequenceService _invokeService;
///
/// 构造函数
///
///
public SequenceController(ISequenceService invokeService)
{
_invokeService = invokeService;
}
///
/// 列表
///
///
///
[HttpPost]
[Route("GetSequenceList")]
public DataResult> GetSequenceList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
///
/// 编辑
///
///
///
[HttpPost]
[Route("EditSequence")]
public DataResult EditSequence([FromBody] SequenceReq req)
{
var res = _invokeService.EditSequence(req);
return res;
}
///
/// 详情
///
///
///
[HttpGet]
[Route("GetSequenceInfo")]
public DataResult GetSequenceInfo([FromQuery] string id)
{
var res = _invokeService.GetSequenceInfo(id);
return res;
}
}