package com.sonic.frog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sonic.frog.domain.entity.AiUserHeartbeatRank;

import java.math.BigDecimal;

public interface AiUserHeartbeatRankService extends IService<AiUserHeartbeatRank> {

    /**
     * 增加或扣减心动值
     * @param userId
     * @param heartbeatVal
     */
    void incrementHeartbeatVal(Long userId, BigDecimal heartbeatVal);

    /**
     * 获取当前用户的榜单数据
     * @param userId
     * @return
     */
    BigDecimal getCurrentUserRank(Long userId);

}
