package com.ruoyi.xq.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.xq.domain.Dynamic;
import com.ruoyi.xq.dto.admin.dynamic.DynamicAdminVo;
import com.ruoyi.xq.dto.app.dynamic.DynamicListVo;
import com.ruoyi.xq.dto.app.dynamic.DynamicQuery;
import com.ruoyi.xq.dto.app.dynamic.MyDynamicListVo;
import org.apache.ibatis.annotations.Param;

/**
 * 动态审核Mapper接口
 *
 * @author 77
 * @date 2024-03-04
 */
public interface DynamicMapper extends BaseMapper<Dynamic> {

    Page<DynamicListVo> pageApp(@Param("build") Page<Object> build, @Param("query") DynamicQuery query);

    Page<DynamicAdminVo> pageAdmin(@Param("build") Page<Object> build, @Param("bo") DynamicAdminVo bo);

    Page<MyDynamicListVo> currentPage(@Param("build") Page<Object> build, @Param("currentUserId") Long currentUserId);

}
