using System;
using System.Collections.Generic;
namespace NPP.SmartSchedue.Api.Contracts.Services.Integration.Output;
///
/// 创建待办结果
///
public class CreateTodoResult
{
///
/// 创建是否成功
///
public bool IsSuccess { get; set; }
///
/// 创建时间
///
public DateTime CreatedTime { get; set; }
///
/// 待办类型
///
public string TodoType { get; set; } = string.Empty;
///
/// 创建的待办数量
///
public int CreatedTodoCount { get; set; }
///
/// 成功创建的待办ID列表
///
public List SuccessfulTodoIds { get; set; } = new();
///
/// 创建失败的负责人ID及失败原因
///
public Dictionary FailedAssignees { get; set; } = new();
///
/// 待办标题
///
public string Title { get; set; } = string.Empty;
///
/// 截止时间
///
public DateTime? DueDate { get; set; }
///
/// 结果摘要
///
public string ResultSummary { get; set; } = string.Empty;
///
/// 错误消息列表
///
public List ErrorMessages { get; set; } = new();
}
///
/// 整合发布验证错误信息
/// 用于发布前验证的错误详情
///
public class IntegrationValidationError
{
///
/// 错误类型
///
public string ErrorType { get; set; } = string.Empty;
///
/// 错误消息
///
public string Message { get; set; } = string.Empty;
///
/// 相关字段名
///
public string RelatedFieldName { get; set; } = string.Empty;
///
/// 相关任务ID列表
///
public List RelatedTaskIds { get; set; } = new();
///
/// 错误代码
///
public string ErrorCode { get; set; } = string.Empty;
///
/// 解决建议
///
public string Suggestion { get; set; } = string.Empty;
}