package com.qqchen.deploy.backend.deploy.query;

import com.qqchen.deploy.backend.deploy.enums.BuildTypeEnum;
import com.qqchen.deploy.backend.deploy.enums.DevelopmentLanguageTypeEnum;
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
@Schema(description = "应用配置查询")
@EqualsAndHashCode(callSuper = true)
public class DeployAppConfigQuery extends BaseQuery {

    @Schema(description = "环境ID")
    @QueryField(field = "environmentId")
    private Long environmentId;

    @Schema(description = "应用ID")
    @QueryField(field = "applicationId")
    private Long applicationId;

    @Schema(description = "构建类型")
    @QueryField(field = "buildType")
    private BuildTypeEnum buildType;

    @QueryField(field = "languageType", type = QueryType.EQUAL)
    private DevelopmentLanguageTypeEnum languageType;
}