feat(quota): 新增用户额度总计模块

增加用户免费体验额度配置,支持新用户注册时的额度分配功能
This commit is contained in:
2025-12-16 16:59:56 +08:00
parent cd6eca9cbb
commit 495485cc07
7 changed files with 137 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
<?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.yolo.keyborad.mapper.KeyboardUserQuotaTotalMapper">
<resultMap id="BaseResultMap" type="com.yolo.keyborad.model.entity.KeyboardUserQuotaTotal">
<!--@mbg.generated-->
<!--@Table keyboard_user_quota_total-->
<id column="user_id" jdbcType="BIGINT" property="userId" />
<result column="total_quota" jdbcType="INTEGER" property="totalQuota" />
<result column="used_quota" jdbcType="INTEGER" property="usedQuota" />
<result column="version" jdbcType="INTEGER" property="version" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
user_id, total_quota, used_quota, version, created_at, updated_at
</sql>
</mapper>