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 = "buildNumber")
    private Integer buildNumber;

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

    @QueryField(field = "buildUrl", 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 = "externalSystemId")
    private Long externalSystemId;

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

} 