package com.gxwebsoft.cms.param;

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 WorkBuddy
 * @since 2026-07-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "CmsMessageParam对象", description = "留言咨询查询参数")
public class CmsMessageParam extends BaseParam {
    private static final long serialVersionUID = 1L;

    @Schema(description = "留言ID")
    @QueryField(type = QueryType.EQ)
    private Integer messageId;

    @Schema(description = "联系人姓名")
    @QueryField(type = QueryType.LIKE)
    private String name;

    @Schema(description = "手机号")
    @QueryField(type = QueryType.EQ)
    private String phone;

    @Schema(description = "类型: 1产品咨询 2意见反馈 3商务合作")
    @QueryField(type = QueryType.EQ)
    private Integer type;

    @Schema(description = "状态: 0待处理 1已回复 2已完成 3已归档")
    @QueryField(type = QueryType.EQ)
    private Integer status;
}
