package com.kxs.system.biz.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.kxs.system.api.model.KxsCampUser;
import com.kxs.system.api.vo.admin.camp.SysCampUserPageVO;
import com.kxs.system.api.vo.kxsapp.camp.CampUserPageVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 训练营参与创客(KxsCampUser)表数据库访问层
 *
 * @author 系统
 * @since 2024-04-08 15:44:02
 */
@Mapper
public interface KxsCampUserMapper extends BaseMapper<KxsCampUser> {

    /**
     * 参与创客列表
     *
     * @param page   页
     * @param campId 营地ID
     * @return {@link IPage}<{@link CampUserPageVO}>
     */
    IPage<CampUserPageVO> getByPage(Page<CampUserPageVO> page, @Param("campId") Integer campId);

    /**
     * 后台分页
     *
     * @param page  页
     * @param param 参数
     * @return {@link IPage}<{@link SysCampUserPageVO}>
     */
    IPage<SysCampUserPageVO> getSysByPage(Page<SysCampUserPageVO> page, @Param("param") KxsCampUser param);

    /**
     * 导出组用户
     *
     * @param param 参数
     * @return {@link List}<{@link SysCampUserPageVO}>
     */
    List<SysCampUserPageVO> getSysByPage(@Param("param") KxsCampUser param);

}

