package com.gxwebsoft.shop.mapper;

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

import java.util.List;

/**
 * 优惠券Mapper
 *
 * @author 科技小王子
 * @since 2025-08-11 23:51:23
 */
public interface ShopCouponMapper extends BaseMapper<ShopCoupon> {

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

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

}
