Skip to content

Commit bf1831c

Browse files
authored
Update README.md
1 parent e0d6724 commit bf1831c

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,19 @@
2020
<img width="1440" alt="A7DEBE5A-8CBD-4B5F-AF1C-CC0CA5EE6F39" src="https://user-images.githubusercontent.com/5738175/189524772-d2068268-2cb2-479b-b9c0-373c18acce43.png">
2121
<img width="1440" alt="018AD342-6A7B-4D4E-ACC2-523196580221" src="https://user-images.githubusercontent.com/5738175/189524723-a178d4e8-c2ef-4adb-ac0a-9d4b627f42ad.png">
2222

23-
### 部署方法
23+
如果 SQL 语句是 INSERT 插入语句,则可以快速生成 1000+ 条测试数据(表记录),方便前后端联调接口,可按规则生成。
24+
例如
25+
```sql
26+
INSERT INTO sys.apijson_user(id, sex, name) VALUES(${id}, ${sex}, ${name})
27+
```
28+
1000 次参数注入 Random Test:
29+
```js
30+
id: new Date().getTime() // 当前时间毫秒值
31+
sex: RANDOM_IN(0, 1) // 随机从 0, 1 中取值
32+
name: 'Test ' + new Date().toLocaleTimeString() // 通过代码自定义
33+
```
34+
35+
### 快速上手
2436

2537
**本项目前端工具是基于 [APIAuto](https://github.com/TommyLemon/APIAuto) 改造的纯静态 SPA 网页,下载源码解压后:** <br />
2638
可以用浏览器打开 index.html,建议用 [Chrome](https://www.google.com/intl/zh-CN/chrome)[Firefox](https://www.mozilla.org/zh-CN/firefox) (Safari、Edge、IE 等可能有兼容问题),注意此方法不显示 svg 图标。<br />

0 commit comments

Comments
 (0)