using DS.Module.Core;
using DS.WMS.Core.Flow.Dtos;
using DS.WMS.Core.Flow.Entity;
using DS.WMS.Core.Op.Entity;
namespace DS.WMS.Core.Flow.Interface;
///
/// 租户端工作流
///
public interface IClientFlowInstanceService
{
///
/// 根据业务ID获取关联工作流
///
/// 工作流类型
/// 业务类型
/// 业务ID
///
Task> GetInstanceByBSIdAsync(AuditType type, BusinessType? businessType = null, params long[] ids);
///
/// 列表查询
///
///
///
DataResult> GetListByPage(PageRequest request);
///
/// 添加编辑
///
///
///
DataResult EditFlowInstance(FlowInstanceReq req);
///
/// 获取详情
///
///
///
DataResult GetFlowInstanceInfo(string id);
///
/// 启动实例
///
///
///
DataResult StartFlowInstance(string id);
///
/// 创建工作流实例
///
///
///
DataResult CreateFlowInstance(CreateFlowInstanceReq req);
///
/// 工作流审批
///
///
///
DataResult AuditFlowInstance(FlowInstanceAuditReq req);
///
/// 工作流审批
///
///
///
DataResult AuditFlowInstance(FlowAuditInfo info);
///
/// 撤销工作流
///
///
///
DataResult WithdrawFlowInstance(CancelFlowInstanceReq req);
///
/// 撤销工作流
///
///
/// 备注
///
Task WithdrawAsync(long[] ids, string? note = null);
///
/// 获取流程操作历史
///
///
///
DataResult> GetFlowInstanceHistoryList(string id);
///
/// 获取工作流实例信息
///
/// 业务ID
/// 业务类型
/// 审批类型
///
DataResult> GetFlowInstances(long businessId, BusinessType? businessType, params AuditType?[] types);
}