package com.gxwebsoft.cms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.cms.entity.CmsContactLead;
import com.gxwebsoft.cms.param.CmsContactLeadParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 联系表单/销售线索Mapper
 *
 * @author 科技小王子
 * @since 2026-03-30
 */
public interface CmsContactLeadMapper extends BaseMapper<CmsContactLead> {

    /**
     * 分页查询
     *
     * @param page  分页对象
     * @param param 查询参数
     * @return List<CmsContactLead>
     */
    List<CmsContactLead> selectPageRel(@Param("page") IPage<CmsContactLead> page,
                                       @Param("param") CmsContactLeadParam param);

    /**
     * 查询全部
     *
     * @param param 查询参数
     * @return List<CmsContactLead>
     */
    List<CmsContactLead> selectListRel(@Param("param") CmsContactLeadParam param);
}
