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;

/**
 * GIT分组查询对象
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class RepositoryGroupQuery extends BaseQuery {

    /**
     * 仓库组名
     */
    @QueryField(field = "name", type = QueryType.LIKE)
    private String name;

    /**
     * 仓库组描述
     */
    @QueryField(field = "description", type = QueryType.LIKE)
    private String description;

    /**
     * 外部系统中的组ID
     */
    @QueryField(field = "groupId")
    private Long groupId;

    /**
     * 父级仓库组ID
     */
    @QueryField(field = "parentId")
    private Long parentId;

    /**
     * 仓库组路径
     */
    @QueryField(field = "path", type = QueryType.LIKE)
    private String path;

    /**
     * 外部系统ID
     */
    @QueryField(field = "externalSystemId",type = QueryType.EQUAL)
    private Long externalSystemId;

    /**
     * 头像URL
     */
    @QueryField(field = "avatarUrl", type = QueryType.LIKE)
    private String avatarUrl;

    /**
     * 网页URL
     */
    @QueryField(field = "web_url", type = QueryType.LIKE)
    private String webUrl;

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


} 