package com.gxwebsoft.cms.mapper;

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

import java.util.List;

/**
 * 应用参数Mapper
 *
 * @author 科技小王子
 * @since 2024-03-05 15:53:44
 */
public interface WebsiteFieldMapper extends BaseMapper<WebsiteField> {

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

    /**
     * 查询全部
     *
     * @param param 查询参数
     * @return List<User>
     */
    List<WebsiteField> selectListRel(@Param("param") WebsiteFieldParam param);

    int undelete(Integer id);
}
