package com.gxwebsoft.app.param;

import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 应用版本发布记录查询参数
 *
 * @author 科技小王子
 * @since 2026-03-28 21:29:44
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "AppVersionParam对象", description = "应用版本发布记录查询参数")
public class AppVersionParam extends BaseParam {
    private static final long serialVersionUID = 1L;

    @Schema(description = "自增ID")
    @QueryField(type = QueryType.EQ)
    private Long id;

    @Schema(description = "关联应用ID")
    @QueryField(type = QueryType.EQ)
    private Long websiteId;

    @Schema(description = "版本号，如 1.0.0")
    @QueryField(type = QueryType.EQ)
    private String versionNo;

    @Schema(description = "版本名称（模糊）")
    private String versionName;

    @Schema(description = "环境: development/staging/production")
    @QueryField(type = QueryType.EQ)
    private String env;

    @Schema(description = "状态 0=构建中 1=已发布 2=已回滚 3=构建失败")
    @QueryField(type = QueryType.EQ)
    private Integer status;

    @Schema(description = "是否为当前版本")
    @QueryField(type = QueryType.EQ)
    private Boolean isCurrent;

    @Schema(description = "发布人用户ID")
    @QueryField(type = QueryType.EQ)
    private Long publishBy;

    @Schema(description = "用户ID")
    @QueryField(type = QueryType.EQ)
    private Integer userId;

    @Schema(description = "租户ID")
    @QueryField(type = QueryType.EQ)
    private Integer tenantId;

}
