package com.campus.activity.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.campus.activity.entity.Review;
import com.campus.activity.vo.ReviewVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ReviewMapper extends BaseMapper<Review> {

    IPage<ReviewVO> selectActivityReviews(Page<Review> page, @Param("activityId") Long activityId);

    IPage<ReviewVO> selectMyReviews(Page<Review> page, @Param("userId") Long userId);
}