using System.Collections.Generic;

namespace NPP.SmartSchedue.Api.Contracts.Services.Integration.Output
{
    /// <summary>
    /// 操作结果输出
    /// </summary>
    public class WorkOrderOperationResult
    {
        /// <summary>
        /// 操作是否成功
        /// </summary>
        public bool IsSuccess { get; set; }

        /// <summary>
        /// 操作消息
        /// </summary>
        public string Message { get; set; } = string.Empty;

        /// <summary>
        /// 影响的整合记录ID
        /// </summary>
        public long? AffectedIntegrationRecordId { get; set; }

        /// <summary>
        /// 操作详情数据
        /// </summary>
        public object Data { get; set; }

        /// <summary>
        /// 错误详情（操作失败时）
        /// </summary>
        public List<string> ErrorDetails { get; set; } = new List<string>();
    }
}