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

import com.qqchen.deploy.backend.deploy.enums.ExternalSystemSyncStatus;
import com.qqchen.deploy.backend.deploy.enums.RepositorySyncType;
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;

/**
 * Git同步历史记录查询参数
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class RepositorySyncHistoryQuery extends BaseQuery {

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

    @QueryField(field = "status")
    private ExternalSystemSyncStatus status;

    @QueryField(field = "syncType")
    private RepositorySyncType syncType;

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