using DMS.Core.Models.Triggers;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace DMS.Application.Interfaces.Database;
///
/// 定义了触发器与变量关联管理相关的应用服务操作。
///
public interface ITriggerVariableAppService
{
///
/// 异步为触发器分配或更新一个变量关联。
///
///
Task AssignTriggerVariableAsync(TriggerVariable triggerVariable);
///
/// 异步更新一个已存在的触发器与变量关联。
///
/// 要更新的触发器与变量关联对象。
Task UpdateTriggerVariableAsync(TriggerVariable triggerVariable);
///
/// 异步移除一个触发器与变量关联。
///
/// 要移除的关联的ID。
Task RemoveTriggerVariableAsync(int triggerVariableId);
///
/// 异步获取所有触发器与变量关联。
///
Task> GetAllAsync();
///
/// 批量添加触发器与变量的关联关系
///
/// 触发器与变量的关联列表
/// 异步操作任务
Task> AddTriggerVariablesAsync(List triggerVariables);
}