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

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

import java.time.LocalDateTime;

/**
 * 部署记录摘要DTO
 *
 * @author qqchen
 * @since 2025-11-02
 */
@Data
@Schema(description = "部署记录摘要")
public class DeployRecordSummaryDTO {

    @Schema(description = "部署记录ID")
    private Long id;

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

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

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

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

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

    @Schema(description = "持续时间（毫秒）")
    private Long duration;
}

