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 = "AppEventParam对象", description = "应用操作动态查询参数")
public class AppEventParam 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 = "事件类型: created/published/updated/domain_bound/member_added/status_changed")
    @QueryField(type = QueryType.EQ)
    private String eventType;

    @Schema(description = "事件标题（模糊）")
    private String title;

    @Schema(description = "操作人用户ID")
    @QueryField(type = QueryType.EQ)
    private Long operatorId;

    @Schema(description = "关联ID，如版本ID")
    @QueryField(type = QueryType.EQ)
    private Long refId;

    @Schema(description = "关联类型")
    @QueryField(type = QueryType.EQ)
    private String refType;

    @Schema(description = "状态, 0正常, 1冻结")
    @QueryField(type = QueryType.EQ)
    private Integer status;

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

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

}
