package com.pcloud.book.group.dao;

import com.pcloud.book.group.entity.BookClassifyBuyRecord;
import com.pcloud.common.core.dao.BaseDao;

import java.util.List;

/**
 * @author lily
 * @date 2019/4/19 11:55
 */
public interface BookClassifyBuyRecordDao extends BaseDao<BookClassifyBuyRecord> {
    
    /**
     * @Author:lili
     * @Desr:校验用户是否购买
     * @Date:2019/4/19 12:01
     */
    Boolean checkUserBuy(Long wechatUserId, Long classifyId);

    /**
     * @Author:lili
     * @Desr:校验用户是否购买
     * @Date:2019/4/19 12:01
     */
    List<Long> checkUsersBuy(List<Long> classifyIds, Long wechatUserId);
}
