<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ai.da.mapper.primary.ChatRobotMapper">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.ai.da.mapper.primary.entity.ChatRobot">
        <id column="id" property="id" />
        <result column="session_id" property="sessionId" />
        <result column="input" property="input" />
        <result column="response_type" property="responseType" />
        <result column="output" property="output" />
        <result column="prompt_tokens" property="promptTokens" />
        <result column="total_cost" property="totalCost" />
        <result column="total_tokens" property="totalTokens" />
        <result column="completion_tokens" property="completionTokens" />
        <result column="user_id" property="userId" />
        <result column="create_time" property="createTime" />
    </resultMap>


</mapper>
