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; } /// /// 获取模板列表 /// /// /// [HttpPost] [Route("GetFlowTemplateList")] public DataResult> GetFlowTemplateList([FromBody] PageRequest request) { var res = _invokeService.GetFlowTemplateList(request); return res; } }