package com.td.WaDa.game.comcnttosnb.service;

import com.td.WaDa.common.pojo.Result;
import com.td.WaDa.common.service.CommonService;
import com.td.WaDa.game.comcnttosnb.pojo.ComCntToSnb;
import com.td.WaDa.game.comcnttosnb.vo.ComCntToSnbVo;

import java.util.Date;
import java.util.List;

/**
 * Cnt转Snb服务实现
 *
 * @author why
 * @date 2022/03/05
 */
public interface ComCntToSnbService extends CommonService<ComCntToSnbVo, ComCntToSnb, Integer> {
    /**
     * 通过userid查看snb领取情况
     *
     * @param userId 用户id
     * @return {@link ComCntToSnbVo}
     */
    ComCntToSnbVo findByUserId(String userId);

    /**
     * 通过userid领取snb
     *
     * @param userId 用户id
     */
    Result<String> receiveByUserId(String userId);


    //根据时间段，导出全部数据
    List<ComCntToSnb> getBetweenTimeList(Date begin, Date end);

}
