package com.sonic.frog.dao;

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

/**
 * 用户聊天、语音，语音通话扣费统计表 Dao
 */
@Mapper
public interface UserDeductionStatDao extends BaseMapper<UserDeductionStat> {
    /**
     * 获取总的预扣金额
     *
     * @param userId
     * @return
     */
    Long getTotalDeductionAmount(Long userId);
}