package cn.nianxx.thhotel.workflows.reservation.common.result;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/**
 * OPERA 模拟操作响应。包含当前操作状态和 attempt 历史。
 */
public record ReservationOperaOperationResult(
        @JsonProperty("operation_id")
        String operationId,
        @JsonProperty("task_id")
        String taskId,
        @JsonProperty("operation_sequence")
        Integer operationSequence,
        @JsonProperty("operation_code")
        String operationCode,
        @JsonProperty("operation_name")
        String operationName,
        @JsonProperty("operation_status")
        String operationStatus,
        @JsonProperty("attempt_count")
        Integer attemptCount,
        @JsonProperty("last_error_message")
        String lastErrorMessage,
        List<ReservationOperaOperationAttemptResult> attempts
) {
}
