using System.Collections.Generic;
using System.Threading.Tasks;
using YhCore.Model.Dto;
namespace YhCore.Service.Interfaces
{
///
/// 自由审批流服务(移植旧 BestSchool.Service.ApproveFlow)。
/// 教师查询走教务 SDK(Yh.SchClass.OpenApi)。
///
public interface IFreeApproveService
{
/// 获取自己的自由流程节点(dataid 为空时取最大 dataid)。
Task> GetFleeFlowAsync(int userId, int? dataid);
/// 保存自由流程审核人,返回首步骤 SerID。
Task EditFleeFlowAsync(int userId, string schSerId, int? dataid, string flowUids, bool isFlowNull);
/// 添加审核意见(写 flowtranctInfo,actionstatus=-1)。
Task AddShenheRemarkAsync(int userId, int? dataid, string remark, int freestepid);
/// 获取 freestepid 之后的自由流程节点。
Task> GetAfterFleeFlowAsync(int? dataid, int freestepid);
/// 编辑 freestepid 之后的自由流程,返回末步骤 SerID。
Task EditAfterFleeFlowAsync(int? dataid, int freestepid, string flowUids);
/// 查看发起人 + 审核人步骤(自由 / 固定 / 仅记录)。
Task> ShenheFlowAsync(int uid, string ctime, int dataid, int? freestepid, int? flowid);
/// 抄送人列表(按 uids 查用户)。
Task> ChaoSendListAsync(string uids);
}
}