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 = "project_id")
    private Long projectId;

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

    @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;
} 