package com.qqchen.deploy.backend.deploy.dto;

import com.qqchen.deploy.backend.deploy.enums.DeployRecordStatusEnums;
import com.qqchen.deploy.backend.framework.dto.BaseDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 部署记录DTO
 *
 * @author qqchen
 * @since 2025-11-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "部署记录信息")
public class DeployRecordDTO extends BaseDTO {

    @Schema(description = "工作流实例ID")
    private Long workflowInstanceId;

    @Schema(description = "业务标识")
    private String businessKey;

    @Schema(description = "团队应用配置ID")
    private Long teamApplicationId;

    @Schema(description = "团队ID")
    private Long teamId;

    @Schema(description = "应用ID")
    private Long applicationId;

    @Schema(description = "环境ID")
    private Long environmentId;

    @Schema(description = "部署人")
    private String deployBy;

    @Schema(description = "部署备注")
    private String deployRemark;

    @Schema(description = "部署状态")
    private DeployRecordStatusEnums status;

    @Schema(description = "开始时间")
    private LocalDateTime startTime;

    @Schema(description = "结束时间")
    private LocalDateTime endTime;
}

