@oj-module/cli 0.2.6 → 0.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/devkit/README.md +70 -24
- package/devkit/framework-dev.md +14 -5
- package/devkit/manual.md +28 -23
- package/devkit/module-dev-and-cdn-playground.md +197 -0
- package/devkit/sql-builder-missing-capabilities-pr.md +268 -0
- package/package.json +2 -2
- package/shell-dist/assets/runtime.js +130 -45
- package/shell-dist/index.html +2 -2
- package/shell-dist/versions.json +3 -3
- package/src/__tests__/build-backend.test.ts +64 -0
- package/src/__tests__/versions.test.ts +26 -0
- package/src/build.ts +9 -0
- package/src/bundle.ts +8 -5
- package/src/contract/__tests__/handler-scan.test.ts +29 -0
- package/src/contract/__tests__/market-client.integration.test.ts +170 -0
- package/src/contract/handler-scan.ts +35 -4
- package/src/dev.ts +10 -2
- package/src/index.ts +9 -3
- package/src/init.ts +24 -0
- package/src/lifecycle/__tests__/bundle.test.ts +3 -3
- package/src/market/__tests__/bootstrap.test.ts +204 -0
- package/src/market/__tests__/build-index.test.ts +154 -0
- package/src/market/__tests__/cdn-layout.test.ts +96 -0
- package/src/market/__tests__/failure-playbook.test.ts +33 -0
- package/src/market/__tests__/fixture.test.ts +48 -0
- package/src/market/__tests__/publish.test.ts +109 -0
- package/src/market/__tests__/report.test.ts +51 -0
- package/src/market/__tests__/setup.test.ts +114 -0
- package/src/market/__tests__/verify.test.ts +111 -0
- package/src/market/bootstrap.ts +255 -0
- package/src/market/build-index.ts +159 -0
- package/src/market/cdn-layout.ts +122 -0
- package/src/market/command.ts +139 -0
- package/src/market/failure-playbook.ts +57 -0
- package/src/market/fixture.ts +138 -0
- package/src/market/index-builder.ts +76 -0
- package/src/market/publish.ts +156 -0
- package/src/market/report.ts +67 -0
- package/src/market/scan.ts +99 -0
- package/src/market/setup.ts +144 -0
- package/src/market/trial.ts +121 -0
- package/src/market/verify.ts +298 -0
- package/src/market/walkthrough.ts +506 -0
- package/src/oj.ts +3 -1
- package/src/preview-config.ts +177 -0
- package/src/preview.ts +106 -56
- package/src/sign.ts +21 -6
- package/src/usage.ts +22 -2
- package/src/vendor.ts +4 -2
- package/src/versions.ts +28 -0
- package/templates/api/.ojm-api-exempt.json +6 -2
- package/templates/api/config.yaml +24 -2
- package/templates/api/src/_platform/README.md +31 -0
- package/templates/api/src/_platform/_lifecycle/atomic.ts +1 -1
- package/templates/api/src/_platform/_lifecycle/history.ts +10 -5
- package/templates/api/src/_platform/_lifecycle/installer.ts +4 -4
- package/templates/api/src/_platform/_lifecycle/sha384.ts +1 -1
- package/templates/api/src/_platform/_lifecycle/steps/download.ts +1 -1
- package/templates/api/src/_platform/_lifecycle/steps/extract.ts +8 -8
- package/templates/api/src/_platform/_lifecycle/steps/register.ts +57 -29
- package/templates/api/src/_platform/_lifecycle/trust.ts +1 -1
- package/templates/api/src/_platform/_lifecycle/uninstall.ts +29 -56
- package/templates/api/src/_platform/_lifecycle/verify-checks.ts +2 -2
- package/templates/api/src/_platform/_shared/service/{contacts.ts → domain/contacts.ts} +20 -13
- package/templates/api/src/_platform/_shared/service/{roles.ts → domain/roles.ts} +18 -19
- package/templates/api/src/_platform/_shared/service/{settings.ts → domain/settings.ts} +6 -6
- package/templates/api/src/_platform/_shared/service/{solution-perms.ts → domain/solution-perms.ts} +25 -22
- package/templates/api/src/_platform/_shared/service/{users.ts → domain/users.ts} +20 -26
- package/templates/api/src/_platform/_shared/service/{access.ts → infra/access.ts} +5 -8
- package/templates/api/src/_platform/_shared/service/{audit.ts → infra/audit.ts} +26 -26
- package/templates/api/src/_platform/_shared/service/infra/oplog.ts +40 -0
- package/templates/api/src/_platform/_shared/service/{query.ts → infra/query.ts} +18 -0
- package/templates/api/src/_platform/_shared/service/{rate.ts → infra/rate.ts} +16 -13
- package/templates/api/src/_platform/_shared/site-facade.ts +1 -1
- package/templates/api/src/_platform/contacts/api.ts +2 -2
- package/templates/api/src/_platform/contacts/detail/api.ts +2 -2
- package/templates/api/src/_platform/fixtures/l1-test-user.sql +13 -0
- package/templates/api/src/_platform/manifest.yaml +4 -1
- package/templates/api/src/_platform/market/api.ts +54 -16
- package/templates/api/src/_platform/migrations/0013__users_profile.sql +4 -0
- package/templates/api/src/_platform/schema.yaml +26 -0
- package/templates/api/src/_platform/solutions/api.ts +13 -12
- package/templates/api/src/auth/_shared/ldap-login.ts +11 -7
- package/templates/api/src/auth/_shared/login-throttle.ts +2 -2
- package/templates/api/src/auth/_shared/session.ts +26 -22
- package/templates/api/src/auth/api.ts +1 -1
- package/templates/api/src/demo/todos/api.ts +8 -8
- package/templates/api/src/home/line/api.ts +4 -4
- package/templates/api/src/home/pie/api.ts +4 -4
- package/templates/api/src/notification/_shared/notify.ts +97 -57
- package/templates/api/src/notification/api.ts +1 -1
- package/templates/api/src/notification/manifest.yaml +1 -0
- package/templates/api/src/notification/migrations/0004__notifications_broadcast_hidden.sql +12 -0
- package/templates/api/src/notification/schema.yaml +7 -0
- package/templates/api/src/notification/seed.sql +5 -4
- package/templates/api/src/personal-center/profile/api.ts +63 -0
- package/templates/api/src/personal-center/upload/api.ts +1 -1
- package/templates/api/src/system/login-methods/api.ts +1 -1
- package/templates/api/src/system/oplog/api.ts +3 -3
- package/templates/api/src/system/permissions/api.ts +2 -2
- package/templates/api/src/system/roles/api.ts +2 -2
- package/templates/api/src/system/roles/bindings/api.ts +2 -2
- package/templates/api/src/system/settings/api.ts +2 -2
- package/templates/api/src/system/users/api.ts +2 -2
- package/templates/api/src/system/users/forbidden/api.ts +2 -2
- package/templates/api/src/system/users/password/api.ts +2 -2
- package/templates/api/src/system/users/roles/api.ts +2 -2
- package/templates/api/src/web/user-info/api.ts +4 -5
- package/templates/api/tests/auth-session.spec.ts +1 -1
- package/templates/api/tests/auth-throttle.spec.ts +1 -1
- package/templates/api/tests/fixture.ts +8 -16
- package/templates/api/tests/guard.spec.ts +1 -1
- package/templates/api/tests/l1-builder.test.ts +91 -0
- package/templates/api/tests/lifecycle/installer.spec.ts +1 -4
- package/templates/api/tests/lifecycle/market-api.spec.ts +2 -4
- package/templates/api/tests/lifecycle/steps-fs.spec.ts +5 -8
- package/templates/api/tests/lifecycle/trust.spec.ts +1 -1
- package/templates/api/tests/lifecycle/uninstall.spec.ts +29 -89
- package/templates/api/tests/query-utils.spec.ts +85 -1
- package/templates/api/tests/rbac-audit.spec.ts +1 -1
- package/templates/api/tests/rbac-contacts.spec.ts +2 -2
- package/templates/api/tests/rbac-guard.spec.ts +1 -1
- package/templates/api/tests/rbac-roles.spec.ts +2 -2
- package/templates/api/tests/rbac-settings.spec.ts +66 -21
- package/templates/api/tests/rbac-solution-perms.spec.ts +1 -1
- package/templates/api/tests/rbac-users.spec.ts +1 -1
- package/templates/api/tsconfig.json +8 -0
- package/templates/cdn/README.md +48 -0
- package/templates/env.d.ts +2 -0
- package/templates/global.d.ts +850 -0
- package/templates/init.include.yaml +14 -2
- package/templates/logs/task-events.jsonl +0 -0
- package/templates/openapi.json +580 -23
- package/templates/package.json +2 -1
- package/templates/web/src/_platform/__client/api.schemas.ts +97 -0
- package/templates/web/src/_platform/__client/api.ts +152 -39
- package/templates/web/src/notification/entry.ts +46 -9
- package/templates/web/src/notification/locales/en-US.json +19 -0
- package/templates/web/src/notification/locales/zh-CN.json +19 -0
- package/templates/web/src/notification/pages/center/index.tsx +131 -0
- package/templates/web/src/oj-market/__tests__/CardGrid.test.tsx +19 -0
- package/templates/web/src/oj-market/__tests__/InstallDialog.test.tsx +3 -0
- package/templates/web/src/oj-market/__tests__/RollbackDialog.test.tsx +1 -0
- package/templates/web/src/oj-market/__tests__/marketClient.fake.ts +1 -0
- package/templates/web/src/oj-market/api/client.ts +5 -105
- package/templates/web/src/oj-market/api/defaultClient.ts +111 -5
- package/templates/web/src/oj-market/components/CardGrid.tsx +4 -1
- package/templates/web/src/oj-market/components/CardItem.tsx +9 -5
- package/templates/web/src/oj-market/components/DetailDrawer.tsx +7 -3
- package/templates/web/src/oj-market/components/InstallDialog.tsx +1 -1
- package/templates/web/src/oj-market/entry.ts +8 -2
- package/templates/web/src/oj-market/hooks/useMarket.ts +4 -1
- package/templates/web/src/oj-market/locales/en-US.json +2 -1
- package/templates/web/src/oj-market/locales/zh-CN.json +2 -1
- package/templates/web/src/oj-market/pages/MarketApp.tsx +16 -1
- package/templates/web/src/personal-center/__client/api.schemas.ts +9 -0
- package/templates/web/src/personal-center/__client/api.ts +25 -1
- package/templates/web/src/personal-center/entry.ts +5 -0
- package/templates/web/src/personal-center/pages/my-profile/index.tsx +25 -3
- package/templates/web/src/system/entry.ts +2 -1
- package/templates/web.config.ts +13 -10
- package/vendor/host-versions.json +3 -3
- package/templates/api/src/_platform/_shared/service/oplog.ts +0 -47
- package/templates/api/src/notifications/api.ts +0 -32
- package/templates/api/src/notifications/manifest.yaml +0 -5
- package/templates/web/src/notifications/__client/api.schemas.ts +0 -8
- package/templates/web/src/notifications/__client/api.ts +0 -80
- /package/templates/api/src/_platform/_shared/service/{guard.ts → infra/guard.ts} +0 -0
package/templates/openapi.json
CHANGED
|
@@ -43,9 +43,71 @@
|
|
|
43
43
|
"tags": [
|
|
44
44
|
"_platform"
|
|
45
45
|
],
|
|
46
|
+
"requestBody": {
|
|
47
|
+
"required": true,
|
|
48
|
+
"content": {
|
|
49
|
+
"application/json": {
|
|
50
|
+
"schema": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"required": [
|
|
53
|
+
"source",
|
|
54
|
+
"name"
|
|
55
|
+
],
|
|
56
|
+
"properties": {
|
|
57
|
+
"source": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"enum": [
|
|
60
|
+
"cdn",
|
|
61
|
+
"file"
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
"name": {
|
|
65
|
+
"type": "string"
|
|
66
|
+
},
|
|
67
|
+
"version": {
|
|
68
|
+
"type": [
|
|
69
|
+
"string",
|
|
70
|
+
"null"
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
46
78
|
"responses": {
|
|
47
79
|
"200": {
|
|
48
|
-
"description": "OK"
|
|
80
|
+
"description": "OK",
|
|
81
|
+
"x-oj-response-enforced": false,
|
|
82
|
+
"content": {
|
|
83
|
+
"application/json": {
|
|
84
|
+
"schema": {
|
|
85
|
+
"type": "object",
|
|
86
|
+
"required": [
|
|
87
|
+
"code",
|
|
88
|
+
"msg",
|
|
89
|
+
"data"
|
|
90
|
+
],
|
|
91
|
+
"properties": {
|
|
92
|
+
"code": {
|
|
93
|
+
"type": "integer"
|
|
94
|
+
},
|
|
95
|
+
"msg": {
|
|
96
|
+
"type": "string"
|
|
97
|
+
},
|
|
98
|
+
"data": {
|
|
99
|
+
"type": "object",
|
|
100
|
+
"properties": {
|
|
101
|
+
"task_id": {
|
|
102
|
+
"type": "string"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"additionalProperties": true
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
49
111
|
}
|
|
50
112
|
}
|
|
51
113
|
}
|
|
@@ -58,9 +120,63 @@
|
|
|
58
120
|
"tags": [
|
|
59
121
|
"_platform"
|
|
60
122
|
],
|
|
123
|
+
"requestBody": {
|
|
124
|
+
"required": true,
|
|
125
|
+
"content": {
|
|
126
|
+
"application/json": {
|
|
127
|
+
"schema": {
|
|
128
|
+
"type": "object",
|
|
129
|
+
"required": [
|
|
130
|
+
"name"
|
|
131
|
+
],
|
|
132
|
+
"properties": {
|
|
133
|
+
"name": {
|
|
134
|
+
"type": "string"
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
61
141
|
"responses": {
|
|
62
142
|
"200": {
|
|
63
|
-
"description": "OK"
|
|
143
|
+
"description": "OK",
|
|
144
|
+
"x-oj-response-enforced": false,
|
|
145
|
+
"content": {
|
|
146
|
+
"application/json": {
|
|
147
|
+
"schema": {
|
|
148
|
+
"type": "object",
|
|
149
|
+
"required": [
|
|
150
|
+
"code",
|
|
151
|
+
"msg",
|
|
152
|
+
"data"
|
|
153
|
+
],
|
|
154
|
+
"properties": {
|
|
155
|
+
"code": {
|
|
156
|
+
"type": "integer"
|
|
157
|
+
},
|
|
158
|
+
"msg": {
|
|
159
|
+
"type": "string"
|
|
160
|
+
},
|
|
161
|
+
"data": {
|
|
162
|
+
"type": "object",
|
|
163
|
+
"properties": {
|
|
164
|
+
"ok": {
|
|
165
|
+
"type": "boolean"
|
|
166
|
+
},
|
|
167
|
+
"name": {
|
|
168
|
+
"type": "string"
|
|
169
|
+
},
|
|
170
|
+
"requested": {
|
|
171
|
+
"type": "boolean"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"additionalProperties": true
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
64
180
|
}
|
|
65
181
|
}
|
|
66
182
|
}
|
|
@@ -73,9 +189,44 @@
|
|
|
73
189
|
"tags": [
|
|
74
190
|
"_platform"
|
|
75
191
|
],
|
|
192
|
+
"parameters": [
|
|
193
|
+
{
|
|
194
|
+
"name": "id",
|
|
195
|
+
"in": "query",
|
|
196
|
+
"required": true,
|
|
197
|
+
"schema": {
|
|
198
|
+
"type": "string"
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
],
|
|
76
202
|
"responses": {
|
|
77
203
|
"200": {
|
|
78
|
-
"description": "OK"
|
|
204
|
+
"description": "OK",
|
|
205
|
+
"x-oj-response-enforced": false,
|
|
206
|
+
"content": {
|
|
207
|
+
"application/json": {
|
|
208
|
+
"schema": {
|
|
209
|
+
"type": "object",
|
|
210
|
+
"required": [
|
|
211
|
+
"code",
|
|
212
|
+
"msg",
|
|
213
|
+
"data"
|
|
214
|
+
],
|
|
215
|
+
"properties": {
|
|
216
|
+
"code": {
|
|
217
|
+
"type": "integer"
|
|
218
|
+
},
|
|
219
|
+
"msg": {
|
|
220
|
+
"type": "string"
|
|
221
|
+
},
|
|
222
|
+
"data": {
|
|
223
|
+
"type": "object",
|
|
224
|
+
"additionalProperties": true
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
79
230
|
}
|
|
80
231
|
}
|
|
81
232
|
}
|
|
@@ -88,9 +239,56 @@
|
|
|
88
239
|
"tags": [
|
|
89
240
|
"_platform"
|
|
90
241
|
],
|
|
242
|
+
"requestBody": {
|
|
243
|
+
"required": true,
|
|
244
|
+
"content": {
|
|
245
|
+
"application/json": {
|
|
246
|
+
"schema": {
|
|
247
|
+
"type": "object",
|
|
248
|
+
"required": [
|
|
249
|
+
"name",
|
|
250
|
+
"enabled"
|
|
251
|
+
],
|
|
252
|
+
"properties": {
|
|
253
|
+
"name": {
|
|
254
|
+
"type": "string"
|
|
255
|
+
},
|
|
256
|
+
"enabled": {
|
|
257
|
+
"type": "boolean"
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
},
|
|
91
264
|
"responses": {
|
|
92
265
|
"200": {
|
|
93
|
-
"description": "OK"
|
|
266
|
+
"description": "OK",
|
|
267
|
+
"x-oj-response-enforced": false,
|
|
268
|
+
"content": {
|
|
269
|
+
"application/json": {
|
|
270
|
+
"schema": {
|
|
271
|
+
"type": "object",
|
|
272
|
+
"required": [
|
|
273
|
+
"code",
|
|
274
|
+
"msg",
|
|
275
|
+
"data"
|
|
276
|
+
],
|
|
277
|
+
"properties": {
|
|
278
|
+
"code": {
|
|
279
|
+
"type": "integer"
|
|
280
|
+
},
|
|
281
|
+
"msg": {
|
|
282
|
+
"type": "string"
|
|
283
|
+
},
|
|
284
|
+
"data": {
|
|
285
|
+
"type": "object",
|
|
286
|
+
"additionalProperties": true
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
94
292
|
}
|
|
95
293
|
}
|
|
96
294
|
}
|
|
@@ -105,7 +303,37 @@
|
|
|
105
303
|
],
|
|
106
304
|
"responses": {
|
|
107
305
|
"200": {
|
|
108
|
-
"description": "OK"
|
|
306
|
+
"description": "OK",
|
|
307
|
+
"x-oj-response-enforced": false,
|
|
308
|
+
"content": {
|
|
309
|
+
"application/json": {
|
|
310
|
+
"schema": {
|
|
311
|
+
"type": "object",
|
|
312
|
+
"required": [
|
|
313
|
+
"code",
|
|
314
|
+
"msg",
|
|
315
|
+
"data"
|
|
316
|
+
],
|
|
317
|
+
"properties": {
|
|
318
|
+
"code": {
|
|
319
|
+
"type": "integer"
|
|
320
|
+
},
|
|
321
|
+
"msg": {
|
|
322
|
+
"type": "string"
|
|
323
|
+
},
|
|
324
|
+
"data": {
|
|
325
|
+
"type": "object",
|
|
326
|
+
"properties": {
|
|
327
|
+
"apiVersion": {
|
|
328
|
+
"type": "string"
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
"additionalProperties": true
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
}
|
|
109
337
|
}
|
|
110
338
|
}
|
|
111
339
|
}
|
|
@@ -120,7 +348,32 @@
|
|
|
120
348
|
],
|
|
121
349
|
"responses": {
|
|
122
350
|
"200": {
|
|
123
|
-
"description": "OK"
|
|
351
|
+
"description": "OK",
|
|
352
|
+
"x-oj-response-enforced": false,
|
|
353
|
+
"content": {
|
|
354
|
+
"application/json": {
|
|
355
|
+
"schema": {
|
|
356
|
+
"type": "object",
|
|
357
|
+
"required": [
|
|
358
|
+
"code",
|
|
359
|
+
"msg",
|
|
360
|
+
"data"
|
|
361
|
+
],
|
|
362
|
+
"properties": {
|
|
363
|
+
"code": {
|
|
364
|
+
"type": "integer"
|
|
365
|
+
},
|
|
366
|
+
"msg": {
|
|
367
|
+
"type": "string"
|
|
368
|
+
},
|
|
369
|
+
"data": {
|
|
370
|
+
"type": "object",
|
|
371
|
+
"additionalProperties": true
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
}
|
|
124
377
|
}
|
|
125
378
|
}
|
|
126
379
|
},
|
|
@@ -131,9 +384,52 @@
|
|
|
131
384
|
"tags": [
|
|
132
385
|
"_platform"
|
|
133
386
|
],
|
|
387
|
+
"requestBody": {
|
|
388
|
+
"required": true,
|
|
389
|
+
"content": {
|
|
390
|
+
"application/json": {
|
|
391
|
+
"schema": {
|
|
392
|
+
"type": "object",
|
|
393
|
+
"required": [
|
|
394
|
+
"task_id"
|
|
395
|
+
],
|
|
396
|
+
"properties": {
|
|
397
|
+
"task_id": {
|
|
398
|
+
"type": "string"
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
},
|
|
134
405
|
"responses": {
|
|
135
406
|
"200": {
|
|
136
|
-
"description": "OK"
|
|
407
|
+
"description": "OK",
|
|
408
|
+
"x-oj-response-enforced": false,
|
|
409
|
+
"content": {
|
|
410
|
+
"application/json": {
|
|
411
|
+
"schema": {
|
|
412
|
+
"type": "object",
|
|
413
|
+
"required": [
|
|
414
|
+
"code",
|
|
415
|
+
"msg",
|
|
416
|
+
"data"
|
|
417
|
+
],
|
|
418
|
+
"properties": {
|
|
419
|
+
"code": {
|
|
420
|
+
"type": "integer"
|
|
421
|
+
},
|
|
422
|
+
"msg": {
|
|
423
|
+
"type": "string"
|
|
424
|
+
},
|
|
425
|
+
"data": {
|
|
426
|
+
"type": "object",
|
|
427
|
+
"additionalProperties": true
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
}
|
|
137
433
|
}
|
|
138
434
|
}
|
|
139
435
|
}
|
|
@@ -146,9 +442,56 @@
|
|
|
146
442
|
"tags": [
|
|
147
443
|
"_platform"
|
|
148
444
|
],
|
|
445
|
+
"requestBody": {
|
|
446
|
+
"required": true,
|
|
447
|
+
"content": {
|
|
448
|
+
"application/json": {
|
|
449
|
+
"schema": {
|
|
450
|
+
"type": "object",
|
|
451
|
+
"required": [
|
|
452
|
+
"key_id",
|
|
453
|
+
"public_key"
|
|
454
|
+
],
|
|
455
|
+
"properties": {
|
|
456
|
+
"key_id": {
|
|
457
|
+
"type": "string"
|
|
458
|
+
},
|
|
459
|
+
"public_key": {
|
|
460
|
+
"type": "string"
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
},
|
|
149
467
|
"responses": {
|
|
150
468
|
"200": {
|
|
151
|
-
"description": "OK"
|
|
469
|
+
"description": "OK",
|
|
470
|
+
"x-oj-response-enforced": false,
|
|
471
|
+
"content": {
|
|
472
|
+
"application/json": {
|
|
473
|
+
"schema": {
|
|
474
|
+
"type": "object",
|
|
475
|
+
"required": [
|
|
476
|
+
"code",
|
|
477
|
+
"msg",
|
|
478
|
+
"data"
|
|
479
|
+
],
|
|
480
|
+
"properties": {
|
|
481
|
+
"code": {
|
|
482
|
+
"type": "integer"
|
|
483
|
+
},
|
|
484
|
+
"msg": {
|
|
485
|
+
"type": "string"
|
|
486
|
+
},
|
|
487
|
+
"data": {
|
|
488
|
+
"type": "object",
|
|
489
|
+
"additionalProperties": true
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
}
|
|
152
495
|
}
|
|
153
496
|
}
|
|
154
497
|
},
|
|
@@ -159,9 +502,44 @@
|
|
|
159
502
|
"tags": [
|
|
160
503
|
"_platform"
|
|
161
504
|
],
|
|
505
|
+
"parameters": [
|
|
506
|
+
{
|
|
507
|
+
"name": "key_id",
|
|
508
|
+
"in": "query",
|
|
509
|
+
"required": true,
|
|
510
|
+
"schema": {
|
|
511
|
+
"type": "string"
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
],
|
|
162
515
|
"responses": {
|
|
163
516
|
"200": {
|
|
164
|
-
"description": "OK"
|
|
517
|
+
"description": "OK",
|
|
518
|
+
"x-oj-response-enforced": false,
|
|
519
|
+
"content": {
|
|
520
|
+
"application/json": {
|
|
521
|
+
"schema": {
|
|
522
|
+
"type": "object",
|
|
523
|
+
"required": [
|
|
524
|
+
"code",
|
|
525
|
+
"msg",
|
|
526
|
+
"data"
|
|
527
|
+
],
|
|
528
|
+
"properties": {
|
|
529
|
+
"code": {
|
|
530
|
+
"type": "integer"
|
|
531
|
+
},
|
|
532
|
+
"msg": {
|
|
533
|
+
"type": "string"
|
|
534
|
+
},
|
|
535
|
+
"data": {
|
|
536
|
+
"type": "object",
|
|
537
|
+
"additionalProperties": true
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
}
|
|
165
543
|
}
|
|
166
544
|
}
|
|
167
545
|
}
|
|
@@ -176,7 +554,35 @@
|
|
|
176
554
|
],
|
|
177
555
|
"responses": {
|
|
178
556
|
"200": {
|
|
179
|
-
"description": "OK"
|
|
557
|
+
"description": "OK",
|
|
558
|
+
"x-oj-response-enforced": false,
|
|
559
|
+
"content": {
|
|
560
|
+
"application/json": {
|
|
561
|
+
"schema": {
|
|
562
|
+
"type": "object",
|
|
563
|
+
"required": [
|
|
564
|
+
"code",
|
|
565
|
+
"msg",
|
|
566
|
+
"data"
|
|
567
|
+
],
|
|
568
|
+
"properties": {
|
|
569
|
+
"code": {
|
|
570
|
+
"type": "integer"
|
|
571
|
+
},
|
|
572
|
+
"msg": {
|
|
573
|
+
"type": "string"
|
|
574
|
+
},
|
|
575
|
+
"data": {
|
|
576
|
+
"type": "array",
|
|
577
|
+
"items": {
|
|
578
|
+
"type": "object",
|
|
579
|
+
"additionalProperties": true
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
}
|
|
180
586
|
}
|
|
181
587
|
}
|
|
182
588
|
}
|
|
@@ -189,9 +595,44 @@
|
|
|
189
595
|
"tags": [
|
|
190
596
|
"_platform"
|
|
191
597
|
],
|
|
598
|
+
"parameters": [
|
|
599
|
+
{
|
|
600
|
+
"name": "name",
|
|
601
|
+
"in": "query",
|
|
602
|
+
"required": true,
|
|
603
|
+
"schema": {
|
|
604
|
+
"type": "string"
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
],
|
|
192
608
|
"responses": {
|
|
193
609
|
"200": {
|
|
194
|
-
"description": "OK"
|
|
610
|
+
"description": "OK",
|
|
611
|
+
"x-oj-response-enforced": false,
|
|
612
|
+
"content": {
|
|
613
|
+
"application/json": {
|
|
614
|
+
"schema": {
|
|
615
|
+
"type": "object",
|
|
616
|
+
"required": [
|
|
617
|
+
"code",
|
|
618
|
+
"msg",
|
|
619
|
+
"data"
|
|
620
|
+
],
|
|
621
|
+
"properties": {
|
|
622
|
+
"code": {
|
|
623
|
+
"type": "integer"
|
|
624
|
+
},
|
|
625
|
+
"msg": {
|
|
626
|
+
"type": "string"
|
|
627
|
+
},
|
|
628
|
+
"data": {
|
|
629
|
+
"type": "object",
|
|
630
|
+
"additionalProperties": true
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
}
|
|
195
636
|
}
|
|
196
637
|
}
|
|
197
638
|
}
|
|
@@ -204,9 +645,52 @@
|
|
|
204
645
|
"tags": [
|
|
205
646
|
"_platform"
|
|
206
647
|
],
|
|
648
|
+
"requestBody": {
|
|
649
|
+
"required": true,
|
|
650
|
+
"content": {
|
|
651
|
+
"application/json": {
|
|
652
|
+
"schema": {
|
|
653
|
+
"type": "object",
|
|
654
|
+
"required": [
|
|
655
|
+
"name"
|
|
656
|
+
],
|
|
657
|
+
"properties": {
|
|
658
|
+
"name": {
|
|
659
|
+
"type": "string"
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
},
|
|
207
666
|
"responses": {
|
|
208
667
|
"200": {
|
|
209
|
-
"description": "OK"
|
|
668
|
+
"description": "OK",
|
|
669
|
+
"x-oj-response-enforced": false,
|
|
670
|
+
"content": {
|
|
671
|
+
"application/json": {
|
|
672
|
+
"schema": {
|
|
673
|
+
"type": "object",
|
|
674
|
+
"required": [
|
|
675
|
+
"code",
|
|
676
|
+
"msg",
|
|
677
|
+
"data"
|
|
678
|
+
],
|
|
679
|
+
"properties": {
|
|
680
|
+
"code": {
|
|
681
|
+
"type": "integer"
|
|
682
|
+
},
|
|
683
|
+
"msg": {
|
|
684
|
+
"type": "string"
|
|
685
|
+
},
|
|
686
|
+
"data": {
|
|
687
|
+
"type": "object",
|
|
688
|
+
"additionalProperties": true
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
}
|
|
210
694
|
}
|
|
211
695
|
}
|
|
212
696
|
}
|
|
@@ -221,7 +705,35 @@
|
|
|
221
705
|
],
|
|
222
706
|
"responses": {
|
|
223
707
|
"200": {
|
|
224
|
-
"description": "OK"
|
|
708
|
+
"description": "OK",
|
|
709
|
+
"x-oj-response-enforced": false,
|
|
710
|
+
"content": {
|
|
711
|
+
"application/json": {
|
|
712
|
+
"schema": {
|
|
713
|
+
"type": "object",
|
|
714
|
+
"required": [
|
|
715
|
+
"code",
|
|
716
|
+
"msg",
|
|
717
|
+
"data"
|
|
718
|
+
],
|
|
719
|
+
"properties": {
|
|
720
|
+
"code": {
|
|
721
|
+
"type": "integer"
|
|
722
|
+
},
|
|
723
|
+
"msg": {
|
|
724
|
+
"type": "string"
|
|
725
|
+
},
|
|
726
|
+
"data": {
|
|
727
|
+
"type": "array",
|
|
728
|
+
"items": {
|
|
729
|
+
"type": "object",
|
|
730
|
+
"additionalProperties": true
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
}
|
|
225
737
|
}
|
|
226
738
|
}
|
|
227
739
|
}
|
|
@@ -878,17 +1390,65 @@
|
|
|
878
1390
|
}
|
|
879
1391
|
}
|
|
880
1392
|
},
|
|
881
|
-
"/api/
|
|
882
|
-
"
|
|
883
|
-
"operationId": "
|
|
884
|
-
"summary": "
|
|
885
|
-
"x-oj-file": "
|
|
1393
|
+
"/api/personal-center/profile": {
|
|
1394
|
+
"post": {
|
|
1395
|
+
"operationId": "personal_center_profile_post",
|
|
1396
|
+
"summary": "POST api/personal-center/profile",
|
|
1397
|
+
"x-oj-file": "personal-center/profile/api.ts",
|
|
886
1398
|
"tags": [
|
|
887
|
-
"
|
|
1399
|
+
"personal-center"
|
|
888
1400
|
],
|
|
1401
|
+
"requestBody": {
|
|
1402
|
+
"required": true,
|
|
1403
|
+
"content": {
|
|
1404
|
+
"application/json": {
|
|
1405
|
+
"schema": {
|
|
1406
|
+
"type": "object",
|
|
1407
|
+
"properties": {
|
|
1408
|
+
"username": {
|
|
1409
|
+
"type": "string"
|
|
1410
|
+
},
|
|
1411
|
+
"email": {
|
|
1412
|
+
"type": "string"
|
|
1413
|
+
},
|
|
1414
|
+
"phoneNumber": {
|
|
1415
|
+
"type": "string"
|
|
1416
|
+
},
|
|
1417
|
+
"description": {
|
|
1418
|
+
"type": "string"
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
}
|
|
1424
|
+
},
|
|
889
1425
|
"responses": {
|
|
890
1426
|
"200": {
|
|
891
|
-
"description": "OK"
|
|
1427
|
+
"description": "OK",
|
|
1428
|
+
"x-oj-response-enforced": false,
|
|
1429
|
+
"content": {
|
|
1430
|
+
"application/json": {
|
|
1431
|
+
"schema": {
|
|
1432
|
+
"type": "object",
|
|
1433
|
+
"required": [
|
|
1434
|
+
"code",
|
|
1435
|
+
"msg",
|
|
1436
|
+
"data"
|
|
1437
|
+
],
|
|
1438
|
+
"properties": {
|
|
1439
|
+
"code": {
|
|
1440
|
+
"type": "integer"
|
|
1441
|
+
},
|
|
1442
|
+
"msg": {
|
|
1443
|
+
"type": "string"
|
|
1444
|
+
},
|
|
1445
|
+
"data": {
|
|
1446
|
+
"type": "null"
|
|
1447
|
+
}
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
}
|
|
892
1452
|
}
|
|
893
1453
|
}
|
|
894
1454
|
}
|
|
@@ -2011,9 +2571,6 @@
|
|
|
2011
2571
|
{
|
|
2012
2572
|
"name": "notification"
|
|
2013
2573
|
},
|
|
2014
|
-
{
|
|
2015
|
-
"name": "notifications"
|
|
2016
|
-
},
|
|
2017
2574
|
{
|
|
2018
2575
|
"name": "personal-center"
|
|
2019
2576
|
},
|