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.
36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
using DS.Module.Core;
|
|
using DS.WMS.Core.Flow.Dtos;
|
|
using DS.WMS.Core.Op.Dtos.TaskInteraction;
|
|
|
|
namespace DS.WMS.Core.Op.Interface.TaskInteraction
|
|
{
|
|
/// <summary>
|
|
/// 交互任务
|
|
/// </summary>
|
|
public interface ITaskService
|
|
{
|
|
/// <summary>
|
|
/// 创建关联任务
|
|
/// </summary>
|
|
/// <param name="request"></param>
|
|
/// <param name="useTransaction">是否使用事务</param>
|
|
/// <returns></returns>
|
|
Task<DataResult> CreateTaskAsync(TaskCreationRequest request, bool useTransaction = true);
|
|
|
|
/// <summary>
|
|
/// 设置任务状态
|
|
/// </summary>
|
|
/// <param name="request"></param>
|
|
/// <param name="useTransaction">是否使用事务</param>
|
|
/// <returns></returns>
|
|
Task<DataResult> SetTaskStatusAsync(TaskUpdateRequest request, bool useTransaction = true);
|
|
|
|
/// <summary>
|
|
/// 审批完成回调更新
|
|
/// </summary>
|
|
/// <param name="callback">回调信息</param>
|
|
/// <returns></returns>
|
|
Task UpdateBusinessAsync(FlowCallback callback);
|
|
}
|
|
}
|