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 JenkinsJobQuery extends BaseQuery {

    @QueryField(field = "buildable")
    private Boolean buildable;

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

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

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

    @QueryField(field = "nextBuildNumber")
    private Integer nextBuildNumber;

    @QueryField(field = "lastBuildNumber")
    private Integer lastBuildNumber;

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

    @QueryField(field = "healthReportScore")
    private Integer healthReportScore;

    @QueryField(field = "lastBuildTime")
    private LocalDateTime lastBuildTime;

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

    @QueryField(field = "viewId", type = QueryType.EQUAL)
    private Long viewId;

} 