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 com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 联系表单/销售线索查询参数
 *
 * @author 科技小王子
 * @since 2026-03-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "CmsContactLeadParam对象", description = "联系表单/销售线索查询参数")
public class CmsContactLeadParam extends BaseParam {

    private static final long serialVersionUID = 1L;

    @Schema(description = "线索ID")
    @QueryField(type = QueryType.EQ)
    private Integer leadId;

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

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

    @Schema(description = "单位/公司名称")
    @QueryField(type = QueryType.LIKE)
    private String company;

    @Schema(description = "交付方式: saas/private/hybrid")
    @QueryField(type = QueryType.EQ)
    private String delivery;

    @Schema(description = "来源渠道")
    @QueryField(type = QueryType.EQ)
    private String source;

    @Schema(description = "跟进状态: 0待跟进 1跟进中 2已成交 3无效")
    @QueryField(type = QueryType.EQ)
    private Integer status;

    @Schema(description = "是否删除, 0否, 1是")
    @QueryField(type = QueryType.EQ)
    private Integer deleted;
}
