feat(service): 新增多语言支持,按语言筛选主题

- 在查询主题相关接口中增加 local 参数,支持按语言过滤
- 新增 RequestLocaleUtils 工具类解析 Accept-Language 头
- 重构缓存与数据库查询逻辑,优先按语言匹配
- 更新所有涉及主题列表、详情、推荐、搜索的 Service 与 Controller
This commit is contained in:
2026-03-09 11:21:27 +08:00
parent 5e9873bf72
commit 147c05a6f0
7 changed files with 194 additions and 112 deletions

View File

@@ -2,8 +2,8 @@ spring:
datasource:
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://localhost:5432/keyborad_db
username: root
password: 123asd
username: keyborad_db
password: LjwYPLKKRm4Rz5r7
# 生产环境日志配置
logging: