Junjie
2 天以前 63b01db83d9aad8a15276b4236a9a22e4aeef065
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package com.zy.ai.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zy.ai.entity.AiTokenUsage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
 
@Mapper
@Repository
public interface AiTokenUsageMapper extends BaseMapper<AiTokenUsage> {
 
    int incrementTokens(@Param("promptTokens") long promptTokens,
                        @Param("completionTokens") long completionTokens,
                        @Param("totalTokens") long totalTokens,
                        @Param("callCount") long callCount);
}