Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 402925f

Browse files
Merge branch 'master' of https://github.com/APIJSON/APIJSON-Demo
* 'master' of https://github.com/APIJSON/APIJSON-Demo: 删除无用代码 删除无效代码 apijson支持elasticsearch type Update README.md
2 parents 143d8b2 + 2f97c8c commit 402925f

File tree

5 files changed

+16
-278
lines changed

5 files changed

+16
-278
lines changed

‎APIJSON-Java-Server/APIJSONDemo-MultiDataSource-Elasticsearch/README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# APIJSONDemo
22

3-
## 1、支持多数据源
3+
## 支持多数据源
44

55
数据源解析顺序:
66

@@ -48,21 +48,25 @@
4848

4949
![image](https://user-images.githubusercontent.com/12228225/207245545-277ba9a6-e87f-42b3-af55-9d6a37384a1e.png)
5050

51-
## 2、集成elasticsearch-sql
51+
## 集成elasticsearch-sql
5252

5353
换成xpack, 也一样
5454

5555
应用导入: elasticsearch-sql-7.17.5.0.jar
5656

57-
## 3、apijson支持elasticsearch功能点
57+
## apijson elasticsearch type支持
58+
59+
APIJSONSQLConfig.*TABLE_KEY_MAP*.put("ES_blog", "es_blog/doc");
60+
61+
## apijson支持elasticsearch功能点
5862

5963
新增、修改、删除、查询
6064

61-
## 4、elasticsearch-sql不支持RLIKE
65+
## elasticsearch-sql不支持RLIKE
6266

6367
![image](https://user-images.githubusercontent.com/12228225/207245701-ea2560a9-2389-4953-a568-9e85adfb15ad.png)
6468

65-
## 5、apijson支持字段 .keyword
69+
## apijson支持字段 .keyword
6670

6771
```
6872
{
@@ -81,7 +85,7 @@
8185

8286

8387

84-
## 4、示例
88+
## 示例
8589

8690
### 单条插入
8791

‎APIJSON-Java-Server/APIJSONDemo-MultiDataSource-Elasticsearch/src/main/java/apijson/demo/DemoFunctionParser.java

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -77,43 +77,11 @@ public void pwdEncrypt(@NotNull JSONObject current, @NotNull String id, @NotNull
7777
current.put(password, c_password + "_" + System.currentTimeMillis());
7878
}
7979

80-
/***
81-
* 业务表-插入不同表1:n <br/>
82-
* 业务表-批量修改不同表1:n <br/>
83-
* 测试 子表 前置函数调用,修改值是否成果 <br/>
84-
* user_address 表 addr字段
85-
*
86-
* @param current
87-
* @param password
88-
* @return
89-
* @throws Exception
90-
*/
9180
public void childFunTest(@NotNull JSONObject current, @NotNull String addr) throws Exception {
9281
String c_addr = current.getString(addr);
9382
current.put(addr, c_addr + "_" + System.currentTimeMillis());
9483
}
9584

96-
/***
97-
* 没有在外层事物里面
98-
*
99-
* @throws Exception
100-
*/
101-
// private void insertTest() throws Exception {
102-
// String json = "{\n" + " \"User\":{\n" + " \"username\":\"test\",\n"
103-
// + " \"password\": \"233223\",\n" + " \"state\": 1\n" + " },\n" + " \"tag\": \"User\"\n"
104-
// + "}";
105-
// com.alibaba.fastjson.JSONObject requestObject = AbstractParser.parseRequest(json);
106-
// JSONResponse response = new JSONResponse(new FormParser(POST, false).parseResponse(requestObject));
107-
// log.info(response.toJSONString());
108-
// }
109-
//
110-
// private void selectTest() throws Exception {
111-
// String json = "{\n" + " \"User\": {\n" + " \"id\": \"4732209c-5785-4827-b532-5092f154fd94\"\n"
112-
// + " },\n" + " \"tag\": \"User\"\n" + "}";
113-
// com.alibaba.fastjson.JSONObject requestObject = AbstractParser.parseRequest(json);
114-
// JSONResponse response = new JSONResponse(new FormParser(GET, false).parseResponse(requestObject));
115-
// log.info(response.toJSONString());
116-
// }
11785

11886
public void removeKeys(@NotNull JSONObject current, String keys) {
11987
String[] ks = StringUtil.split(keys, ";"); // 用分号 ; 分割

‎APIJSON-Java-Server/APIJSONDemo-MultiDataSource-Elasticsearch/src/main/java/apijson/demo/DynamicJdbcDataSource.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
* 1、应用启动添加数据源
4141
* 2、页面动态添加数据源(数据库存储数据源信息)
4242
*
43-
* @author xy
4443
*
4544
*/
4645
@Data

‎APIJSON-Java-Server/APIJSONDemo-MultiDataSource-Elasticsearch/src/main/java/apijson/demo/ElasticSearchSqlTest.java

Lines changed: 0 additions & 233 deletions
This file was deleted.

‎README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# APIJSON-Demo
2-
腾讯 [APIJSON](https://github.com/Tencent/APIJSON) 各种语言(Java, Swift, JavaScript, Python 等)、各种框架(SpringBoot, JFinal 等) 的 使用示例项目、上手文档、测试数据 SQL 文件 等。<br />
3-
Demo projects with document and SQL files for Tencent [APIJSON](https://github.com/Tencent/APIJSON) with different programming languagesand different frameworks.
2+
腾讯 [APIJSON](https://github.com/Tencent/APIJSON) 各种语言(Java, Swift, JavaScript, Python 等)、各种框架(SpringBoot, JFinal 等)、各种客户端(Web, Android, iOS 等) 的 使用示例项目、上手文档、测试数据 SQL 文件 等。<br />
3+
Demo projects with document and SQL files for Tencent [APIJSON](https://github.com/Tencent/APIJSON) with different programming languages, different frameworks and different clients.
44

55
<br />
66

@@ -12,23 +12,23 @@ Demo projects with document and SQL files for Tencent [APIJSON](https://github.c
1212
#### 1.后端上手
1313
#### 1.Backend
1414

15-
可以跳过这个步骤,直接用APIJSON服务器IP地址 apijson.cn:8080 来测试接口。<br />
15+
可以跳过这个步骤,直接用 APIJSON 官网服务器地址 apijson.cn:8080 来测试接口。<br />
1616
You can skip this step and use 'apijson.cn:8080'. <br />
1717

18-
&nbsp; [APIJSON后端上手 - Java](https://github.com/APIJSON/APIJSON-Demo/tree/master/APIJSON-Java-Server)<br />
18+
&nbsp; [APIJSON 后端上手 - Java](https://github.com/APIJSON/APIJSON-Demo/tree/master/APIJSON-Java-Server)<br />
1919
See https://github.com/APIJSON/APIJSON-Demo/blob/master/APIJSON-Java-Server/README-English.md <br />
2020

2121

2222
#### 2.前端上手
2323
#### 1.FrontEnd
2424

25-
可以跳过这个步骤,直接使用 [APIAuto-机器学习 HTTP 接口工具](https://github.com/TommyLemon/APIAuto)下载客户端App。<br />
25+
可以跳过这个步骤,直接使用 [APIAuto-机器学习 HTTP 接口工具](https://github.com/TommyLemon/APIAuto)下载客户端 App。<br />
2626
You can skip this step and use [APIAuto](https://github.com/TommyLemon/APIAuto) or download App. <br />
2727

2828
&nbsp; [Android](https://github.com/APIJSON/APIJSON-Demo/tree/master/APIJSON-Android) &nbsp;&nbsp; [iOS](https://github.com/APIJSON/APIJSON-Demo/tree/master/APIJSON-iOS) &nbsp;&nbsp; [JavaScript](https://github.com/APIJSON/APIJSON-Demo/tree/master/APIJSON-JavaScript)<br />
2929
See [Android](https://github.com/APIJSON/APIJSON-Demo/blob/master/APIJSON-Android/README-English.md), [iOS](https://github.com/APIJSON/APIJSON-Demo/blob/master/APIJSON-iOS/README-English.md) or [JavaScript](https://github.com/APIJSON/APIJSON-Demo/blob/master/APIJSON-JavaScript/README-English.md)<br />
3030

31-
#### 下载客户端App
31+
#### 下载客户端 App
3232
#### Download App
3333

3434
测试及自动生成代码工具<br />

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /