Skip to content

Commit 292f03c

Browse files
committed
feat(data): 更新JSON数据字段命名规范
- 将 createdAt 字段重命名为 created_at - 将 updatedAt 字段重命名为 updated_at - 将 parentId 字段重命名为 parent_id - 将 clientId 字段重命名为 client_id - 将 clientSecret 字段重命名为 client_secret -重构身份提供商配置结构,将其嵌套在 provider 对象中- 调整 JSON 数据结构以符合新的命名约定
1 parent 20cfb85 commit 292f03c

File tree

1 file changed

+24
-22
lines changed

1 file changed

+24
-22
lines changed

src/main/resources/data.json

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -200,17 +200,17 @@
200200
"modelName": "f_api_definition",
201201
"values": [
202202
{
203-
"createdAt": "2024-07-13T23:21:09",
203+
"created_at": "2024-07-13T23:21:09",
204204
"meta": {},
205205
"name": "【示例】学生接口",
206-
"updatedAt": "2024-07-13T23:21:09",
206+
"updated_at": "2024-07-13T23:21:09",
207207
"id": "01J2PAY0XJV4MHW0TDNEMSG03C",
208208
"type": "FOLDER",
209209
"tenant_id": "dev_test"
210210
},
211211
{
212-
"parentId": "01J2PAY0XJV4MHW0TDNEMSG03C",
213-
"createdAt": "2024-07-13T23:21:10",
212+
"parent_id": "01J2PAY0XJV4MHW0TDNEMSG03C",
213+
"created_at": "2024-07-13T23:21:10",
214214
"meta": {
215215
"auth": false,
216216
"execution": {
@@ -225,15 +225,15 @@
225225
},
226226
"name": "查询班级列表",
227227
"path": "/dev_test/Classes/list",
228-
"updatedAt": "2024-07-13T23:21:10",
228+
"updated_at": "2024-07-13T23:21:10",
229229
"id": "01J2PAY1M8T1R8HM979P4ASM9A",
230230
"method": "GET",
231231
"type": "API",
232232
"tenant_id": "dev_test"
233233
},
234234
{
235-
"parentId": "01J2PAY0XJV4MHW0TDNEMSG03C",
236-
"createdAt": "2024-07-13T23:21:10",
235+
"parent_id": "01J2PAY0XJV4MHW0TDNEMSG03C",
236+
"created_at": "2024-07-13T23:21:10",
237237
"meta": {
238238
"auth": false,
239239
"identityProvider": "demo",
@@ -250,15 +250,15 @@
250250
},
251251
"name": "查询单个班级",
252252
"path": "/dev_test/Classes/{id}",
253-
"updatedAt": "2024-07-13T23:21:10",
253+
"updated_at": "2024-07-13T23:21:10",
254254
"id": "01J2PAY1X3ZN529SQTKB8TG1Q5",
255255
"method": "GET",
256256
"type": "API",
257257
"tenant_id": "dev_test"
258258
},
259259
{
260-
"parentId": "01J2PAY0XJV4MHW0TDNEMSG03C",
261-
"createdAt": "2024-07-13T23:21:11",
260+
"parent_id": "01J2PAY0XJV4MHW0TDNEMSG03C",
261+
"created_at": "2024-07-13T23:21:11",
262262
"meta": {
263263
"auth": false,
264264
"execution": {
@@ -268,15 +268,15 @@
268268
},
269269
"name": "创建班级",
270270
"path": "/dev_test/Classes",
271-
"updatedAt": "2024-07-13T23:21:11",
271+
"updated_at": "2024-07-13T23:21:11",
272272
"id": "01J2PAY2F3VK71GXV6BWXYEA5P",
273273
"method": "POST",
274274
"type": "API",
275275
"tenant_id": "dev_test"
276276
},
277277
{
278-
"parentId": "01J2PAY0XJV4MHW0TDNEMSG03C",
279-
"createdAt": "2024-07-13T23:21:11",
278+
"parent_id": "01J2PAY0XJV4MHW0TDNEMSG03C",
279+
"created_at": "2024-07-13T23:21:11",
280280
"meta": {
281281
"auth": false,
282282
"execution": {
@@ -286,15 +286,15 @@
286286
},
287287
"name": "更新班级",
288288
"path": "/dev_test/Classes/{id}",
289-
"updatedAt": "2024-07-13T23:21:11",
289+
"updated_at": "2024-07-13T23:21:11",
290290
"id": "01J2PAY2RJ79JYB2GJP5K0AW5F",
291291
"method": "PUT",
292292
"type": "API",
293293
"tenant_id": "dev_test"
294294
},
295295
{
296-
"parentId": "01J2PAY0XJV4MHW0TDNEMSG03C",
297-
"createdAt": "2024-07-13T23:21:12",
296+
"parent_id": "01J2PAY0XJV4MHW0TDNEMSG03C",
297+
"created_at": "2024-07-13T23:21:12",
298298
"meta": {
299299
"auth": false,
300300
"execution": {
@@ -304,7 +304,7 @@
304304
},
305305
"name": "删除班级",
306306
"path": "/dev_test/Classes/{id}",
307-
"updatedAt": "2024-07-13T23:21:12",
307+
"updated_at": "2024-07-13T23:21:12",
308308
"id": "01J2PAY3W18T1BQJ5H5D8STGYT",
309309
"method": "DELETE",
310310
"type": "API",
@@ -317,11 +317,13 @@
317317
"values": [
318318
{
319319
"name": "demo",
320-
"type": "oidc",
321-
"issuer": "http://localhost/issuer",
322-
"clientId": "test_client_id",
323-
"clientSecret": "test_client_secret",
324-
"tenant_id": "dev_test"
320+
"tenant_id": "dev_test",
321+
"provider": {
322+
"type": "oidc",
323+
"issuer": "http://localhost/issuer",
324+
"client_id": "test_client_id",
325+
"client_secret": "test_client_secret"
326+
}
325327
}
326328
]
327329
},

0 commit comments

Comments
 (0)