package com.qqchen.deploy.backend.deploy.query;

import com.qqchen.deploy.backend.framework.annotation.QueryField;
import com.qqchen.deploy.backend.framework.enums.QueryType;
import com.qqchen.deploy.backend.framework.query.BaseQuery;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;

/**
 * Jenkins构建信息查询对象
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class JenkinsBuildQuery extends BaseQuery {

    @QueryField(field = "build_number")
    private Integer buildNumber;

    @QueryField(field = "build_status", type = QueryType.LIKE)
    private String buildStatus;

    @QueryField(field = "build_url", type = QueryType.LIKE)
    private String buildUrl;

    @QueryField(field = "duration")
    private Long duration;

    @QueryField(field = "startTime")
    private LocalDateTime starttime;

    @QueryField(field = "actions", type = QueryType.LIKE)
    private String actions;

    @QueryField(field = "external_system_id")
    private Long externalSystemId;

    @QueryField(field = "job_id")
    private Long jobId;

} 