Skip to content

Commit 772874b

Browse files
committed
升级 APIJSON, apijson-framework 8.1.6,apijson-fastjson2, apijson-jackson 1.1.6
1 parent 7e558f1 commit 772874b

6 files changed

Lines changed: 12 additions & 11 deletions

File tree

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

APIJSON-Java-Server/APIJSONBoot-MultiDataSource/pom.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>apijson.boot</groupId>
77
<artifactId>apijson-boot-multi-datasource</artifactId>
8-
<version>8.1.5</version>
8+
<version>8.1.6</version>
99
<packaging>jar</packaging>
1010

1111
<name>APIJSONBoot-MultiDataSource</name>
@@ -59,23 +59,23 @@
5959
<dependency>
6060
<groupId>com.github.Tencent</groupId>
6161
<artifactId>APIJSON</artifactId>
62-
<version>8.1.5</version>
62+
<version>8.1.6</version>
6363
</dependency>
6464
<dependency>
6565
<groupId>com.github.APIJSON</groupId>
6666
<artifactId>apijson-framework</artifactId>
67-
<version>8.1.5</version>
67+
<version>8.1.6</version>
6868
</dependency>
69-
<!-- fastjson2, gson 等 JSON 库插件选其中一个即可 <<<<<<<<<<<<<<< -->
69+
<!-- fastjson2, jackson, gson 等 JSON 库插件选其中一个即可 <<<<<<<<<<<<<<< -->
7070
<dependency>
7171
<groupId>com.github.APIJSON</groupId>
7272
<artifactId>apijson-fastjson2</artifactId>
73-
<version>1.1.5</version>
73+
<version>1.1.6</version>
7474
</dependency>
7575
<!-- <dependency>-->
7676
<!-- <groupId>com.github.APIJSON</groupId>-->
7777
<!-- <artifactId>apijson-jackson</artifactId>-->
78-
<!-- <version>1.1.5</version>-->
78+
<!-- <version>1.1.6</version>-->
7979
<!-- </dependency>-->
8080
<!-- <dependency>-->
8181
<!-- <groupId>com.github.APIJSON</groupId>-->

APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/java/apijson/demo/DemoSQLConfig.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,32 +76,33 @@ public DemoSQLConfig(RequestMethod method, String table) {
7676

7777
@Override
7878
public AbstractSQLConfig<Long, JSONObject, JSONArray> getSQLConfig(
79-
RequestMethod method, String database, String schema, String datasource, String table) {
79+
RequestMethod method, String database, String datasource, String namespace
80+
, String catalog, String schema, String table) {
8081
return new DemoSQLConfig(method, table);
8182
}
8283

8384
//取消注释来实现自定义各个表的主键名
8485
// @Override
85-
// public String getIdKey(String database, String schema, String datasource, String table) {
86+
// public String getIdKey(String database, String datasource, String namespace, String catalog, String schema, String table) {
8687
// // return "_id"; // SurrealDB 强制用 id 作为主键名,surrealdb.java 查不到也改不了,所以需要另外加主键
8788
// return StringUtil.firstCase(table + "Id"); // userId, comemntId ...
8889
// // return StringUtil.toLowerCase(t) + "_id"; // user_id, comemnt_id ...
8990
// // return StringUtil.toUpperCase(t) + "_ID"; // USER_ID, COMMENT_ID ...
9091
// }
9192

9293
@Override
93-
public String getUserIdKey(String database, String schema, String datasource, String table) {
94+
public String getUserIdKey(String database, String datasource, String namespace, String catalog, String schema, String table) {
9495
return USER_.equals(table) || PRIVACY_.equals(table) ? ID : USER_ID; // id / userId
9596
}
9697

9798
// 取消注释来实现数据库自增 id
9899
// @Override
99-
// public Long newId(RequestMethod method, String database, String schema, String datasource, String table) {
100+
// public Long newId(RequestMethod method, String database, String datasource, String namespace, String catalog, String schema, String table) {
100101
// return null; // return null 则不生成 id,一般用于数据库自增 id
101102
// }
102103

103104
// @Override
104-
// public void onMissingKey4Combine(String name, JSONMap request, String combine, String item, String key) throws Exception {
105+
// public void onMissingKey4Combine(String name, JSONObject request, String combine, String item, String key) throws Exception {
105106
//// super.onMissingKey4Combine(name, request, combine, item, key);
106107
// }
107108
};

0 commit comments

Comments
 (0)