package cn.reghao.autodop.common.msg.rpc.dto.app;

import cn.reghao.jdkutil.result.Result;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author reghao
 * @date 2021-05-28 13:48:01
 */
@Data
public class DeployResult {
    private String buildLogId;
    private String machineId;
    private String machineIpv4;
    private LocalDateTime deployTime;
    private Result result;
    private AppStatus appStatus;

    public DeployResult(String buildLogId, String machineId, String machineIpv4) {
        this.buildLogId = buildLogId;
        this.machineId = machineId;
        this.machineIpv4 = machineIpv4;
        this.deployTime = LocalDateTime.now();
    }
}
