package com.sonic.frog.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sonic.frog.domain.entity.UserCreateCountStat;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户相册创作次数统计 Dao
 */
@Mapper
public interface UserCreateCountStatDao extends BaseMapper<UserCreateCountStat> {

    /**
     * 增加购买次数
     *
     * @param userId
     * @param count
     */
    void addBuyNum(@Param("userId") Long userId, @Param("count") Integer count);

    /**
     * 获取等待赠送会员次数的列表
     *
     * @return
     */
    List<UserCreateCountStat> getWaitingGiftMemberNumList();
}