package com.gxwebsoft.app.param;

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

/**
 * 开发者资源查询参数
 *
 * @author 科技小王子
 * @since 2026-03-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "AppResourceParam对象", description = "开发者资源查询参数")
public class AppResourceParam extends BaseParam {
    private static final long serialVersionUID = 1L;

    @Schema(description = "资源ID")
    @QueryField(type = QueryType.EQ)
    private Long resourceId;

    @Schema(description = "资源类型: server/database/storage/domain/ssl")
    @QueryField(type = QueryType.EQ)
    private String resourceType;

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

    @Schema(description = "服务商")
    @QueryField(type = QueryType.EQ)
    private String provider;

    @Schema(description = "状态")
    @QueryField(type = QueryType.EQ)
    private String status;

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

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

    @Schema(description = "关键词（名称/IP/域名/Host模糊搜索）")
    private String keywords;
}
