Chat2DB/chat2db-server
SwallowGG d383444213 delete demo data error 2024-10-29 17:33:01 +08:00
..
chat2db-plugins feat:support download task 2024-10-28 14:42:14 +08:00
chat2db-server-domain delete demo data error 2024-10-29 17:33:01 +08:00
chat2db-server-start Merge pull request #1484 from congyuluo/identifier-refactorings 2024-10-28 13:53:32 +08:00
chat2db-server-test Some typos and unit tests. 2024-07-03 20:09:37 +08:00
chat2db-server-tools Merge branch 'dev' into 1402_Changes 2024-10-28 14:02:45 +08:00
chat2db-server-web feat:support download task 2024-10-28 14:42:14 +08:00
chat2db-server-web-start Refactored Identifiers 2024-07-29 16:02:44 -07:00
chat2db-spi Merge branch 'dev' into 1402_Changes 2024-10-28 14:02:45 +08:00
.apifox-helper.properties Part of the English translation work, and some typos in the original project were corrected. 2024-02-29 22:55:03 +08:00
.easy.api.config Part of the English translation work, and some typos in the original project were corrected. 2024-02-29 22:55:03 +08:00
.gitignore Part of the English translation work, and some typos in the original project were corrected. 2024-02-29 22:55:03 +08:00
README.md Update README.md 2023-10-19 13:26:50 +08:00
identifier.sqlite merge mongo 2023-11-26 23:46:04 +08:00
lombok.config Part of the English translation work, and some typos in the original project were corrected. 2024-02-29 22:55:03 +08:00
pom.xml [fix]:下掉bson 2024-05-31 19:25:22 +08:00

README.md

内部协作规范

接口规范

不会使用的参照:https://yuque.antfin-inc.com/docs/share/8a5ff21a-6367-4c77-9e3c-1d5ae9570060?# 《yapi》

国际化处理方案

  • messages.properties 文件下新增code
    • 规范是 作用域.描述 ,比如 dataSource.sqlAnalysisError
  • 方案1在需要提示用户的地方抛出业务异常
// 框架会将 dataSource.sqlAnalysisError 翻译成对应的异常,并返回给前端
throw new BusinessException("dataSource.sqlAnalysisError");
  • 方案2不用异常直接获取国际化
// 直接可以获取国际化翻译的文案
I18nUtils.getMessage("dataSource.sqlAnalysisError")

国际化中文乱码

Editor -> File Encodeings -> Defualt encoding for properties files: 改成 utf-8

编辑国际化文件

建议安装插件 Resource Bundle Editor去编辑,,点击messages.properties,下方有个Resource Bundle 就可以编辑了。