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 io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 团队查询条件
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "团队查询条件")
public class TeamQuery extends BaseQuery {

    @QueryField(field = "teamName", type = QueryType.LIKE)
    @Schema(description = "团队名称（模糊查询）")
    private String teamName;

    @QueryField(field = "teamCode", type = QueryType.LIKE)
    @Schema(description = "团队编码（模糊查询）")
    private String teamCode;

    @QueryField(field = "enabled")
    @Schema(description = "是否启用")
    private Boolean enabled;

    @QueryField(field = "ownerId")
    @Schema(description = "负责人ID")
    private Long ownerId;
}

