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;

/**
 * 部署记录查询条件
 *
 * @author qqchen
 * @since 2025-11-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class DeployRecordQuery extends BaseQuery {

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

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

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

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

    @QueryField(field = "status", type = QueryType.EQUAL)
    private String status;

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

