package com.lesingle.creation.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lesingle.creation.entity.ContestRegistration;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 竞赛报名 Mapper 接口
 */
@Mapper
public interface ContestRegistrationMapper extends BaseMapper<ContestRegistration> {

    /**
     * 分页查询竞赛报名
     *
     * @param page 分页对象
     * @param wrapper 查询条件
     * @return 分页结果
     */
    Page<ContestRegistration> page(@Param("page") Page<ContestRegistration> page, @Param(Constants.WRAPPER) Wrapper<ContestRegistration> wrapper);
}
