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

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

/**
 * 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);
}
