package com.xiaoniu.system.pointsgoods.mapper;

import com.xiaoniu.common.mybatis.mapper.BaseMapperPlus;
import com.xiaoniu.system.pointsgoods.domain.TbPointsGoods;
import com.xiaoniu.system.pointsgoods.dto.PointsGoodsQueryDTO;
import com.xiaoniu.system.pointsgoods.vo.PointsGoodsDetailsVO;
import com.xiaoniu.system.pointsgoods.vo.PointsGoodsListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 积分商品信息表 Mapper 接口
 * </p>
 *
 * @author haoxuyang
 * @since 2024-10-29 06:20:13
 */
@Mapper
public interface TbPointsGoodsMapper extends BaseMapperPlus<TbPointsGoodsMapper, TbPointsGoods, TbPointsGoods> {

    /**
     * 积分商品列表
     *
     * @param dto dto
     * @return List<PointsGoodsListVO>
     */
    List<PointsGoodsListVO> pointsGoodsList(PointsGoodsQueryDTO dto);

    /**
     * 积分商品详情
     *
     * @param id id
     * @return PointsGoodsDetailsVO
     */
    PointsGoodsDetailsVO details(@Param("id") Long id);
}
