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 ClientFlowTemplateController : ApiController
{
private readonly IClientFlowTemplateService _invokeService;
///
/// 构造函数
///
///
public ClientFlowTemplateController(IClientFlowTemplateService invokeService)
{
_invokeService = invokeService;
}
///
/// 列表
///
///
///
[HttpPost]
[Route("GetClientFlowTemplateList")]
public DataResult> GetListByPage([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
///
/// 编辑
///
///
///
[HttpPost]
[Route("EditClientFlowTemplate")]
public DataResult EditClientFlowTemplate([FromBody] FlowTemplateReq model)
{
var res = _invokeService.EditClientFlowTemplate(model);
return res;
}
///
/// 详情
///
///
///
[HttpGet]
[Route("GetClientFlowTemplateInfo")]
public DataResult GetClientFlowTemplateInfo([FromQuery] string id)
{
var res = _invokeService.GetClientFlowTemplateInfo(id);
return res;
}
///
/// 导入模板
///
///
///
[HttpGet]
[Route("ImportFlowTemplate")]
public DataResult ImportFlowTemplate([FromQuery] string id)
{
var res = _invokeService.ImportFlowTemplate(id);
return res;
}
///
/// 删除模板
///
///
///
[HttpGet]
[Route("DelFlowTemplate")]
public DataResult DelFlowTemplate([FromQuery] string id)
{
var res = _invokeService.DelFlowTemplate(id);
return res;
}
///
/// 获取模板列表
///
///
///
[HttpPost]
[Route("GetFlowTemplateList")]
public DataResult> GetFlowTemplateList([FromBody] PageRequest request)
{
var res = _invokeService.GetFlowTemplateList(request);
return res;
}
}