package com.gxwebsoft.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.shop.entity.ShopGift;
import com.gxwebsoft.shop.param.ShopGiftParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 礼品卡Mapper
 *
 * @author 科技小王子
 * @since 2025-08-11 18:07:31
 */
public interface ShopGiftMapper extends BaseMapper<ShopGift> {

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

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

}
