Content-Length: 418092 | pFad | http://github.com/APIJSON/APIJSON-Node/commit/24590140d9dcb05cc5007228df1d419256fc8ed0

37 Merge pull request #1 from kevinaskin/master · APIJSON/APIJSON-Node@2459014 · GitHub
Skip to content

Commit 2459014

Browse files
authored
Merge pull request #1 from kevinaskin/master
Sync
2 parents 116071c + d99dfd7 commit 2459014

16 files changed

+1312
-1705
lines changed

README.md

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,14 @@ This example repo uses the NestJS swagger module for API documentation. [NestJS
5656

5757
# 使用文档
5858

59+
5960
> 以下例子中 默认存在两张表(Comment, User),实际使用时,需要在添加对应的entity,在service中引入即可
6061
62+
查看当前可用的table 可访问 `GET /table`
63+
64+
- 通用查询接口 `POST /apijson/get`
65+
- 通用新增接口 `POST /apijson/add`
66+
- 通用修改接口 `POST /apijson/update`
6167

6268
已经实现的操作符
6369

@@ -85,7 +91,6 @@ This example repo uses the NestJS swagger module for API documentation. [NestJS
8591
}
8692
}
8793
```
88-
![list](./asserts/list.png)
8994
- \#
9095

9196
操作符名称: 别名
@@ -113,10 +118,6 @@ This example repo uses the NestJS swagger module for API documentation. [NestJS
113118
}
114119
}
115120
```
116-
117-
![column](./asserts/column.png)
118-
119-
120121
- 联表查询
121122

122123
例子:
@@ -132,8 +133,6 @@ This example repo uses the NestJS swagger module for API documentation. [NestJS
132133
}
133134
}
134135
```
135-
![union-query](./asserts/union-query.png)
136-
137136
```json
138137
// 查询所有符合条件的comment 显示 第1页 每页2条
139138
// (因为默认page = 1 count = 10 所以默认最多为10条)
@@ -143,16 +142,14 @@ This example repo uses the NestJS swagger module for API documentation. [NestJS
143142
},
144143
"msgList[]": {
145144
"Comment": {
146-
"userId@": "User/id"
147-
},
148-
"count": 2,
149-
"page": 1
145+
"userId@": "User/id"
146+
},
147+
"count": 2,
148+
"page": 1
150149
}
151150
}
152151

153152
```
154-
![union-list-query](./asserts/union-list-query.png)
155-
156153

157154
- 综合例子
158155

@@ -174,6 +171,4 @@ This example repo uses the NestJS swagger module for API documentation. [NestJS
174171
}
175172
}
176173
}
177-
```
178-
179-
![mix](./asserts/mix.png)
174+
```

asserts/column.png

-41.4 KB
Binary file not shown.

asserts/list.png

-57.2 KB
Binary file not shown.

asserts/mix.png

-83.6 KB
Binary file not shown.

asserts/union-list-query.png

-74.7 KB
Binary file not shown.

asserts/union-query.png

-56.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/APIJSON/APIJSON-Node/commit/24590140d9dcb05cc5007228df1d419256fc8ed0

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy