using Microsoft.AspNetCore.Http;
namespace OpenAuth.Repository.Domain.workflow;
///
/// 发起流程请求DTO
///
public class InitiateFlowRequest
{
///
/// 流程编码
///
public string FlowCode { get; set; } = string.Empty;
///
/// 业务编号
///
public string BusinessNo { get; set; } = string.Empty;
///
/// 流程标题
///
public string Title { get; set; } = string.Empty;
///
/// 附件列表
///
public List? Attachments { get; set; }
}
///
/// 处理工作项请求DTO
///
public class HandleWorkitemRequest
{
///
/// 工作项ID
///
public long WorkitemId { get; set; }
///
/// 处理意见
///
public string? Comment { get; set; }
///
/// 会签结果(Pass/Reject)
///
public string? AuditResult { get; set; }
}
///
/// 流程查询结果DTO
///
public class FlowQueryResult
{
///
/// 流程实例ID
///
public long InstanceId { get; set; }
///
/// 业务编号
///
public string BusinessNo { get; set; } = string.Empty;
///
/// 流程标题
///
public string Title { get; set; } = string.Empty;
///
/// 当前节点名称
///
public string NodeName { get; set; } = string.Empty;
///
/// 流程状态
///
public string Status { get; set; } = string.Empty;
///
/// 创建时间
///
public DateTime? CreateTime { get; set; }
///
/// 发起人姓名
///
public string InitiatorName { get; set; } = string.Empty;
}