You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

100 lines
2.9 KiB
C#

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