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;

/**
 * Git仓库分支查询对象
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class RepositoryBranchQuery extends BaseQuery {

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

    @QueryField(field = "is_default_branch")
    private Boolean isDefaultBranch;

    @QueryField(field = "is_protected")
    private Boolean isProtected;

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

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

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

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