package com.jumeirah.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jumeirah.common.entity.Feedback;
import com.jumeirah.common.param.FeedbackPageParam;
import com.jumeirah.common.param.FeedbackQueryVo;

import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;

/**
 * 意见反馈 Mapper 接口
 *
 * @author giao
 * @since 2020-10-26
 */
@Repository
public interface FeedbackMapper extends BaseMapper<Feedback> {

            /**
             * 根据ID获取查询对象
             *
             * @param id
             * @return
             */
        FeedbackQueryVo getFeedbackById(Serializable id);

            /**
             * 获取分页对象
             *
             * @param page
             * @param feedbackPageParam
             * @return
             */
            IPage<FeedbackQueryVo> getFeedbackPageList(@Param("page") Page page,@Param("param") FeedbackPageParam feedbackPageParam);

        }
