feat(i18n): 新增多语言国际化支持
引入 II18nService 与 I18nServiceImpl,使 AppleService 及全局异常处理器可按 Accept-Language 返回本地化错误信息;ErrorCode 新增 getCodeAsString;数据库连接改为 keyborad_db。
This commit is contained in:
@@ -5,11 +5,15 @@ package com.yolo.keyborad.mapper;
|
||||
* @date: 2025/12/1 20:40
|
||||
*/
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.yolo.keyborad.model.entity.I18nMessage;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface I18nMessageMapper {
|
||||
|
||||
List<I18nMessage> selectByCodeAndLocale(@Param("code") String code, @Param("locale") String locale);
|
||||
}
|
||||
Reference in New Issue
Block a user