feat(i18n): 新增国际化消息实体与Mapper支持

新增 I18nMessage 实体、Mapper 接口及 XML 映射文件,移除 MyApplication 类上的 @MapperScan 注解,升级 MyBatis-Plus 与 MyBatis 版本至 3.0.3/3.5.5,为后续多语言功能提供数据层基础。
This commit is contained in:
2025-12-01 20:53:44 +08:00
parent af79ca97d4
commit 683accca83
5 changed files with 88 additions and 3 deletions

View File

@@ -0,0 +1,16 @@
<?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.I18nMessageMapper">
<resultMap id="BaseResultMap" type="com.yolo.keyborad.model.entity.I18nMessage">
<!--@mbg.generated-->
<!--@Table i18n_message-->
<id column="id" jdbcType="BIGINT" property="id" />
<result column="code" jdbcType="VARCHAR" property="code" />
<result column="locale" jdbcType="VARCHAR" property="locale" />
<result column="message" jdbcType="VARCHAR" property="message" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, code, "locale", message
</sql>
</mapper>