using DS.Module.Core; using DS.WMS.Core.Flow.Dtos; using DS.WMS.Core.Flow.Interface; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.AdminApi.Controllers; /// /// 流程模板模块 /// public class FlowTemplateController : ApiController { private readonly IFlowTemplateService _invokeService; /// /// 构造函数 /// /// public FlowTemplateController(IFlowTemplateService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GeFlowTemplateList")] public DataResult> GetListByPage([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditFlowTemplate")] public DataResult EditFlowTemplate([FromBody] FlowTemplateReq model) { var res = _invokeService.EditFlowTemplate(model); return res; } /// /// 详情 /// /// /// [HttpGet] [Route("GetFlowTemplateInfo")] public DataResult GetFlowTemplateInfo([FromQuery] string id) { var res = _invokeService.GetFlowTemplateInfo(id); return res; } }