using DS.Module.Core;
using DS.WMS.Core.Flow.Dtos;
using DS.WMS.Core.Flow.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.MainApi.Controllers;
///
/// 流程实例模块
///
public class FlowInstanceController : ApiController
{
private readonly IFlowInstanceService _invokeService;
///
/// 构造函数
///
///
public FlowInstanceController(IFlowInstanceService invokeService)
{
_invokeService = invokeService;
}
///
/// 列表
///
///
///
[HttpPost]
[Route("GetFlowInstanceList")]
public DataResult> GetListByPage([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
///
/// 编辑
///
///
///
[HttpPost]
[Route("EditFlowInstance")]
public DataResult EditFlowInstance([FromBody] FlowInstanceReq model)
{
var res = _invokeService.EditFlowInstance(model);
return res;
}
///
/// 详情
///
///
///
[HttpGet]
[Route("GetFlowInstanceInfo")]
public DataResult GetFlowInstanceInfo([FromQuery] string id)
{
var res = _invokeService.GetFlowInstanceInfo(id);
return res;
}
}