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

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

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

    @QueryField(field = "visibility")
    private String visibility;

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

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

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

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