package com.yonge.cooleshow.biz.dal.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yonge.cooleshow.biz.dal.vo.ActivityRegistrationVo;
import com.yonge.cooleshow.biz.dal.dto.search.ActivityRegistrationSearch;
import com.yonge.cooleshow.biz.dal.entity.ActivityRegistration;
import com.yonge.cooleshow.common.enums.YesOrNoEnum;

/**
 * 活动报名表 服务类
 * @author liweifan
 * @date 2022-08-04
 */
public interface ActivityRegistrationService extends IService<ActivityRegistration>  {

	/**
     * 查询详情
     * @author liweifan
 	 * @date 2022-08-04
     */
	ActivityRegistrationVo detail(Long id);

    /**
     * 分页查询
     * @author liweifan
 	 * @date 2022-08-04
     */
    IPage<ActivityRegistrationVo> selectPage(IPage<ActivityRegistrationVo> page, ActivityRegistrationSearch query);

	/**
	 * 是否参与活动
	 *
	 * @param userId 用户id
	 * @param activityId
	 * @return
	 */
    YesOrNoEnum getRegistration(Long userId, Long activityId);

}