@kne/fastify-account 1.0.0-alpha.12 → 1.0.0-alpha.15
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 +1453 -961
- package/index.js +16 -3
- package/libs/controllers/account.js +95 -22
- package/libs/controllers/admin.js +58 -6
- package/libs/controllers/adminPermission.js +139 -20
- package/libs/controllers/adminRole.js +2 -0
- package/libs/services/application.js +16 -0
- package/libs/services/permission.js +76 -15
- package/libs/services/tenant-invite.js +1 -1
- package/libs/services/tenant-role.js +4 -11
- package/libs/services/tenant-user.js +1 -1
- package/libs/services/tenant.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ npm i --save @kne/fastify-account
|
|
|
22
22
|
### API
|
|
23
23
|
|
|
24
24
|
---
|
|
25
|
-
title: "@kne/fastify-account v1.0.0-alpha.
|
|
25
|
+
title: "@kne/fastify-account v1.0.0-alpha.15"
|
|
26
26
|
language_tabs:
|
|
27
27
|
- shell: Shell
|
|
28
28
|
- http: HTTP
|
|
@@ -42,7 +42,7 @@ headingLevel: 2
|
|
|
42
42
|
|
|
43
43
|
<!-- Generator: Widdershins v4.0.1 -->
|
|
44
44
|
|
|
45
|
-
<h1 id="-kne-fastify-account">@kne/fastify-account v1.0.0-alpha.
|
|
45
|
+
<h1 id="-kne-fastify-account">@kne/fastify-account v1.0.0-alpha.15</h1>
|
|
46
46
|
|
|
47
47
|
> Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.
|
|
48
48
|
|
|
@@ -50,71 +50,46 @@ fastify的用户管理账号等实现
|
|
|
50
50
|
|
|
51
51
|
<h1 id="-kne-fastify-account-default">Default</h1>
|
|
52
52
|
|
|
53
|
-
##
|
|
53
|
+
## post__api_v1_account_admin_parsePermissionList
|
|
54
54
|
|
|
55
|
-
`POST /api/v1/account/
|
|
55
|
+
`POST /api/v1/account/admin/parsePermissionList`
|
|
56
56
|
|
|
57
|
-
>
|
|
57
|
+
<h3 id="post__api_v1_account_admin_parsepermissionlist-responses">Responses</h3>
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
"required": [
|
|
63
|
-
"email"
|
|
64
|
-
],
|
|
65
|
-
"properties": {
|
|
66
|
-
"email": {
|
|
67
|
-
"type": "string",
|
|
68
|
-
"description": "邮箱"
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
```
|
|
59
|
+
|Status|Meaning|Description|Schema|
|
|
60
|
+
|---|---|---|---|
|
|
61
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
73
62
|
|
|
74
|
-
<
|
|
63
|
+
<aside class="success">
|
|
64
|
+
This operation does not require authentication
|
|
65
|
+
</aside>
|
|
75
66
|
|
|
76
|
-
|
|
77
|
-
|---|---|---|---|---|
|
|
78
|
-
|body|body|object|true|none|
|
|
79
|
-
|» email|body|string|true|邮箱|
|
|
67
|
+
## get__api_v1_account_admin_getRoleList
|
|
80
68
|
|
|
81
|
-
|
|
69
|
+
`GET /api/v1/account/admin/getRoleList`
|
|
82
70
|
|
|
83
|
-
>
|
|
71
|
+
<h3 id="get__api_v1_account_admin_getrolelist-parameters">Parameters</h3>
|
|
84
72
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
"description": "验证码"
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
```
|
|
73
|
+
|Name|In|Type|Required|Description|
|
|
74
|
+
|---|---|---|---|---|
|
|
75
|
+
|tenantId|query|string|true|none|
|
|
76
|
+
|perPage|query|number|false|none|
|
|
77
|
+
|currentPage|query|number|false|none|
|
|
78
|
+
|filter|query|object|false|none|
|
|
96
79
|
|
|
97
|
-
<h3 id="
|
|
80
|
+
<h3 id="get__api_v1_account_admin_getrolelist-responses">Responses</h3>
|
|
98
81
|
|
|
99
82
|
|Status|Meaning|Description|Schema|
|
|
100
83
|
|---|---|---|---|
|
|
101
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|
|
|
102
|
-
|
|
103
|
-
<h3 id="post__api_v1_account_sendemailcode-responseschema">Response Schema</h3>
|
|
104
|
-
|
|
105
|
-
Status Code **200**
|
|
106
|
-
|
|
107
|
-
|Name|Type|Required|Restrictions|Description|
|
|
108
|
-
|---|---|---|---|---|
|
|
109
|
-
|» code|string|false|none|验证码|
|
|
84
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
110
85
|
|
|
111
86
|
<aside class="success">
|
|
112
87
|
This operation does not require authentication
|
|
113
88
|
</aside>
|
|
114
89
|
|
|
115
|
-
##
|
|
90
|
+
## post__api_v1_account_admin_addRole
|
|
116
91
|
|
|
117
|
-
`POST /api/v1/account/
|
|
92
|
+
`POST /api/v1/account/admin/addRole`
|
|
118
93
|
|
|
119
94
|
> Body parameter
|
|
120
95
|
|
|
@@ -122,25 +97,33 @@ This operation does not require authentication
|
|
|
122
97
|
{
|
|
123
98
|
"type": "object",
|
|
124
99
|
"required": [
|
|
125
|
-
"
|
|
100
|
+
"tenantId",
|
|
101
|
+
"name"
|
|
126
102
|
],
|
|
127
103
|
"properties": {
|
|
128
|
-
"
|
|
129
|
-
"type": "string"
|
|
130
|
-
|
|
104
|
+
"tenantId": {
|
|
105
|
+
"type": "string"
|
|
106
|
+
},
|
|
107
|
+
"name": {
|
|
108
|
+
"type": "string"
|
|
109
|
+
},
|
|
110
|
+
"description": {
|
|
111
|
+
"type": "string"
|
|
131
112
|
}
|
|
132
113
|
}
|
|
133
114
|
}
|
|
134
115
|
```
|
|
135
116
|
|
|
136
|
-
<h3 id="
|
|
117
|
+
<h3 id="post__api_v1_account_admin_addrole-parameters">Parameters</h3>
|
|
137
118
|
|
|
138
119
|
|Name|In|Type|Required|Description|
|
|
139
120
|
|---|---|---|---|---|
|
|
140
121
|
|body|body|object|true|none|
|
|
141
|
-
|»
|
|
122
|
+
|» tenantId|body|string|true|none|
|
|
123
|
+
|» name|body|string|true|none|
|
|
124
|
+
|» description|body|string|false|none|
|
|
142
125
|
|
|
143
|
-
<h3 id="
|
|
126
|
+
<h3 id="post__api_v1_account_admin_addrole-responses">Responses</h3>
|
|
144
127
|
|
|
145
128
|
|Status|Meaning|Description|Schema|
|
|
146
129
|
|---|---|---|---|
|
|
@@ -150,9 +133,9 @@ This operation does not require authentication
|
|
|
150
133
|
This operation does not require authentication
|
|
151
134
|
</aside>
|
|
152
135
|
|
|
153
|
-
##
|
|
136
|
+
## post__api_v1_account_admin_saveRole
|
|
154
137
|
|
|
155
|
-
`POST /api/v1/account/
|
|
138
|
+
`POST /api/v1/account/admin/saveRole`
|
|
156
139
|
|
|
157
140
|
> Body parameter
|
|
158
141
|
|
|
@@ -161,36 +144,32 @@ This operation does not require authentication
|
|
|
161
144
|
"type": "object",
|
|
162
145
|
"required": [
|
|
163
146
|
"name",
|
|
164
|
-
"
|
|
165
|
-
"code"
|
|
147
|
+
"id"
|
|
166
148
|
],
|
|
167
149
|
"properties": {
|
|
168
|
-
"
|
|
169
|
-
"type": "
|
|
170
|
-
"description": "被验证的账号,手机或邮箱"
|
|
150
|
+
"id": {
|
|
151
|
+
"type": "number"
|
|
171
152
|
},
|
|
172
|
-
"
|
|
173
|
-
"type": "
|
|
174
|
-
"description": "0:手机注册,1:邮箱注册,2:手机登录,3:邮箱登录,4:验证租户管理员"
|
|
153
|
+
"name": {
|
|
154
|
+
"type": "string"
|
|
175
155
|
},
|
|
176
|
-
"
|
|
177
|
-
"type": "string"
|
|
178
|
-
"description": "接受到的验证码"
|
|
156
|
+
"description": {
|
|
157
|
+
"type": "string"
|
|
179
158
|
}
|
|
180
159
|
}
|
|
181
160
|
}
|
|
182
161
|
```
|
|
183
162
|
|
|
184
|
-
<h3 id="
|
|
163
|
+
<h3 id="post__api_v1_account_admin_saverole-parameters">Parameters</h3>
|
|
185
164
|
|
|
186
165
|
|Name|In|Type|Required|Description|
|
|
187
166
|
|---|---|---|---|---|
|
|
188
167
|
|body|body|object|true|none|
|
|
189
|
-
|»
|
|
190
|
-
|»
|
|
191
|
-
|»
|
|
168
|
+
|» id|body|number|true|none|
|
|
169
|
+
|» name|body|string|true|none|
|
|
170
|
+
|» description|body|string|false|none|
|
|
192
171
|
|
|
193
|
-
<h3 id="
|
|
172
|
+
<h3 id="post__api_v1_account_admin_saverole-responses">Responses</h3>
|
|
194
173
|
|
|
195
174
|
|Status|Meaning|Description|Schema|
|
|
196
175
|
|---|---|---|---|
|
|
@@ -200,48 +179,34 @@ This operation does not require authentication
|
|
|
200
179
|
This operation does not require authentication
|
|
201
180
|
</aside>
|
|
202
181
|
|
|
203
|
-
##
|
|
182
|
+
## post__api_v1_account_admin_removeRole
|
|
204
183
|
|
|
205
|
-
`POST /api/v1/account/
|
|
184
|
+
`POST /api/v1/account/admin/removeRole`
|
|
206
185
|
|
|
207
186
|
> Body parameter
|
|
208
187
|
|
|
209
188
|
```json
|
|
210
189
|
{
|
|
211
|
-
"
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
"
|
|
218
|
-
"phone": {
|
|
219
|
-
"type": "string"
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
"type": "object",
|
|
225
|
-
"required": [
|
|
226
|
-
"email"
|
|
227
|
-
],
|
|
228
|
-
"properties": {
|
|
229
|
-
"email": {
|
|
230
|
-
"type": "string"
|
|
231
|
-
}
|
|
232
|
-
}
|
|
190
|
+
"type": "object",
|
|
191
|
+
"required": [
|
|
192
|
+
"id"
|
|
193
|
+
],
|
|
194
|
+
"properties": {
|
|
195
|
+
"id": {
|
|
196
|
+
"type": "number"
|
|
233
197
|
}
|
|
234
|
-
|
|
198
|
+
}
|
|
235
199
|
}
|
|
236
200
|
```
|
|
237
201
|
|
|
238
|
-
<h3 id="
|
|
202
|
+
<h3 id="post__api_v1_account_admin_removerole-parameters">Parameters</h3>
|
|
239
203
|
|
|
240
204
|
|Name|In|Type|Required|Description|
|
|
241
205
|
|---|---|---|---|---|
|
|
242
|
-
|body|body|
|
|
206
|
+
|body|body|object|true|none|
|
|
207
|
+
|» id|body|number|true|none|
|
|
243
208
|
|
|
244
|
-
<h3 id="
|
|
209
|
+
<h3 id="post__api_v1_account_admin_removerole-responses">Responses</h3>
|
|
245
210
|
|
|
246
211
|
|Status|Meaning|Description|Schema|
|
|
247
212
|
|---|---|---|---|
|
|
@@ -251,102 +216,17 @@ This operation does not require authentication
|
|
|
251
216
|
This operation does not require authentication
|
|
252
217
|
</aside>
|
|
253
218
|
|
|
254
|
-
##
|
|
255
|
-
|
|
256
|
-
`POST /api/v1/account/register`
|
|
257
|
-
|
|
258
|
-
> Body parameter
|
|
219
|
+
## get__api_v1_account_admin_getRolePermissionList
|
|
259
220
|
|
|
260
|
-
|
|
261
|
-
{
|
|
262
|
-
"oneOf": [
|
|
263
|
-
{
|
|
264
|
-
"type": "object",
|
|
265
|
-
"required": [
|
|
266
|
-
"phone",
|
|
267
|
-
"password",
|
|
268
|
-
"code"
|
|
269
|
-
],
|
|
270
|
-
"properties": {
|
|
271
|
-
"avatar": {
|
|
272
|
-
"type": "string"
|
|
273
|
-
},
|
|
274
|
-
"phone": {
|
|
275
|
-
"type": "string"
|
|
276
|
-
},
|
|
277
|
-
"code": {
|
|
278
|
-
"type": "string"
|
|
279
|
-
},
|
|
280
|
-
"password": {
|
|
281
|
-
"type": "string"
|
|
282
|
-
},
|
|
283
|
-
"invitationCode": {
|
|
284
|
-
"type": "string"
|
|
285
|
-
},
|
|
286
|
-
"nickname": {
|
|
287
|
-
"type": "string"
|
|
288
|
-
},
|
|
289
|
-
"gender": {
|
|
290
|
-
"type": "string"
|
|
291
|
-
},
|
|
292
|
-
"birthday": {
|
|
293
|
-
"type": "string",
|
|
294
|
-
"format": "date"
|
|
295
|
-
},
|
|
296
|
-
"description": {
|
|
297
|
-
"type": "string"
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
"type": "object",
|
|
303
|
-
"required": [
|
|
304
|
-
"email",
|
|
305
|
-
"password",
|
|
306
|
-
"code"
|
|
307
|
-
],
|
|
308
|
-
"properties": {
|
|
309
|
-
"avatar": {
|
|
310
|
-
"type": "string"
|
|
311
|
-
},
|
|
312
|
-
"email": {
|
|
313
|
-
"type": "string"
|
|
314
|
-
},
|
|
315
|
-
"code": {
|
|
316
|
-
"type": "string"
|
|
317
|
-
},
|
|
318
|
-
"password": {
|
|
319
|
-
"type": "string"
|
|
320
|
-
},
|
|
321
|
-
"invitationCode": {
|
|
322
|
-
"type": "string"
|
|
323
|
-
},
|
|
324
|
-
"nickname": {
|
|
325
|
-
"type": "string"
|
|
326
|
-
},
|
|
327
|
-
"gender": {
|
|
328
|
-
"type": "string"
|
|
329
|
-
},
|
|
330
|
-
"birthday": {
|
|
331
|
-
"type": "string",
|
|
332
|
-
"format": "date"
|
|
333
|
-
},
|
|
334
|
-
"description": {
|
|
335
|
-
"type": "string"
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
]
|
|
340
|
-
}
|
|
341
|
-
```
|
|
221
|
+
`GET /api/v1/account/admin/getRolePermissionList`
|
|
342
222
|
|
|
343
|
-
<h3 id="
|
|
223
|
+
<h3 id="get__api_v1_account_admin_getrolepermissionlist-parameters">Parameters</h3>
|
|
344
224
|
|
|
345
225
|
|Name|In|Type|Required|Description|
|
|
346
226
|
|---|---|---|---|---|
|
|
347
|
-
|
|
|
227
|
+
|id|query|number|true|none|
|
|
348
228
|
|
|
349
|
-
<h3 id="
|
|
229
|
+
<h3 id="get__api_v1_account_admin_getrolepermissionlist-responses">Responses</h3>
|
|
350
230
|
|
|
351
231
|
|Status|Meaning|Description|Schema|
|
|
352
232
|
|---|---|---|---|
|
|
@@ -356,39 +236,35 @@ This operation does not require authentication
|
|
|
356
236
|
This operation does not require authentication
|
|
357
237
|
</aside>
|
|
358
238
|
|
|
359
|
-
##
|
|
239
|
+
## post__api_v1_account_admin_saveRolePermissionList
|
|
360
240
|
|
|
361
|
-
`POST /api/v1/account/
|
|
241
|
+
`POST /api/v1/account/admin/saveRolePermissionList`
|
|
362
242
|
|
|
363
|
-
>
|
|
243
|
+
<h3 id="post__api_v1_account_admin_saverolepermissionlist-responses">Responses</h3>
|
|
364
244
|
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
"required": [
|
|
369
|
-
"username",
|
|
370
|
-
"password"
|
|
371
|
-
],
|
|
372
|
-
"properties": {
|
|
373
|
-
"username": {
|
|
374
|
-
"type": "string"
|
|
375
|
-
},
|
|
376
|
-
"password": {
|
|
377
|
-
"type": "string"
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
```
|
|
245
|
+
|Status|Meaning|Description|Schema|
|
|
246
|
+
|---|---|---|---|
|
|
247
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
382
248
|
|
|
383
|
-
<
|
|
249
|
+
<aside class="success">
|
|
250
|
+
This operation does not require authentication
|
|
251
|
+
</aside>
|
|
252
|
+
|
|
253
|
+
## get__api_v1_account_admin_getAllTenantList
|
|
254
|
+
|
|
255
|
+
`GET /api/v1/account/admin/getAllTenantList`
|
|
256
|
+
|
|
257
|
+
<h3 id="get__api_v1_account_admin_getalltenantlist-parameters">Parameters</h3>
|
|
384
258
|
|
|
385
259
|
|Name|In|Type|Required|Description|
|
|
386
260
|
|---|---|---|---|---|
|
|
387
|
-
|
|
|
388
|
-
|
|
389
|
-
|
|
261
|
+
|name|query|string|false|none|
|
|
262
|
+
|serviceStartTime|query|string(date-time)|false|none|
|
|
263
|
+
|serviceEndTime|query|string(date-time)|false|none|
|
|
264
|
+
|perPage|query|number|false|none|
|
|
265
|
+
|currentPage|query|number|false|none|
|
|
390
266
|
|
|
391
|
-
<h3 id="
|
|
267
|
+
<h3 id="get__api_v1_account_admin_getalltenantlist-responses">Responses</h3>
|
|
392
268
|
|
|
393
269
|
|Status|Meaning|Description|Schema|
|
|
394
270
|
|---|---|---|---|
|
|
@@ -398,11 +274,17 @@ This operation does not require authentication
|
|
|
398
274
|
This operation does not require authentication
|
|
399
275
|
</aside>
|
|
400
276
|
|
|
401
|
-
##
|
|
277
|
+
## get__api_v1_account_admin_getTenantInfo
|
|
402
278
|
|
|
403
|
-
`
|
|
279
|
+
`GET /api/v1/account/admin/getTenantInfo`
|
|
404
280
|
|
|
405
|
-
<h3 id="
|
|
281
|
+
<h3 id="get__api_v1_account_admin_gettenantinfo-parameters">Parameters</h3>
|
|
282
|
+
|
|
283
|
+
|Name|In|Type|Required|Description|
|
|
284
|
+
|---|---|---|---|---|
|
|
285
|
+
|id|query|string|false|none|
|
|
286
|
+
|
|
287
|
+
<h3 id="get__api_v1_account_admin_gettenantinfo-responses">Responses</h3>
|
|
406
288
|
|
|
407
289
|
|Status|Meaning|Description|Schema|
|
|
408
290
|
|---|---|---|---|
|
|
@@ -412,11 +294,51 @@ This operation does not require authentication
|
|
|
412
294
|
This operation does not require authentication
|
|
413
295
|
</aside>
|
|
414
296
|
|
|
415
|
-
##
|
|
297
|
+
## post__api_v1_account_admin_addTenant
|
|
416
298
|
|
|
417
|
-
`
|
|
299
|
+
`POST /api/v1/account/admin/addTenant`
|
|
418
300
|
|
|
419
|
-
|
|
301
|
+
> Body parameter
|
|
302
|
+
|
|
303
|
+
```json
|
|
304
|
+
{
|
|
305
|
+
"type": "object",
|
|
306
|
+
"required": [
|
|
307
|
+
"name",
|
|
308
|
+
"accountNumber",
|
|
309
|
+
"serviceStartTime",
|
|
310
|
+
"serviceEndTime"
|
|
311
|
+
],
|
|
312
|
+
"properties": {
|
|
313
|
+
"name": {
|
|
314
|
+
"type": "string"
|
|
315
|
+
},
|
|
316
|
+
"accountNumber": {
|
|
317
|
+
"type": "number"
|
|
318
|
+
},
|
|
319
|
+
"serviceStartTime": {
|
|
320
|
+
"type": "string",
|
|
321
|
+
"format": "date-time"
|
|
322
|
+
},
|
|
323
|
+
"serviceEndTime": {
|
|
324
|
+
"type": "string",
|
|
325
|
+
"format": "date-time"
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
<h3 id="post__api_v1_account_admin_addtenant-parameters">Parameters</h3>
|
|
332
|
+
|
|
333
|
+
|Name|In|Type|Required|Description|
|
|
334
|
+
|---|---|---|---|---|
|
|
335
|
+
|body|body|object|true|none|
|
|
336
|
+
|» name|body|string|true|none|
|
|
337
|
+
|» accountNumber|body|number|true|none|
|
|
338
|
+
|» serviceStartTime|body|string(date-time)|true|none|
|
|
339
|
+
|» serviceEndTime|body|string(date-time)|true|none|
|
|
340
|
+
|
|
341
|
+
<h3 id="post__api_v1_account_admin_addtenant-responses">Responses</h3>
|
|
420
342
|
|
|
421
343
|
|Status|Meaning|Description|Schema|
|
|
422
344
|
|---|---|---|---|
|
|
@@ -426,9 +348,9 @@ This operation does not require authentication
|
|
|
426
348
|
This operation does not require authentication
|
|
427
349
|
</aside>
|
|
428
350
|
|
|
429
|
-
##
|
|
351
|
+
## post__api_v1_account_admin_saveTenant
|
|
430
352
|
|
|
431
|
-
`POST /api/v1/account/admin/
|
|
353
|
+
`POST /api/v1/account/admin/saveTenant`
|
|
432
354
|
|
|
433
355
|
> Body parameter
|
|
434
356
|
|
|
@@ -436,29 +358,46 @@ This operation does not require authentication
|
|
|
436
358
|
{
|
|
437
359
|
"type": "object",
|
|
438
360
|
"required": [
|
|
439
|
-
"
|
|
440
|
-
"
|
|
361
|
+
"id",
|
|
362
|
+
"name",
|
|
363
|
+
"accountNumber",
|
|
364
|
+
"serviceStartTime",
|
|
365
|
+
"serviceEndTime"
|
|
441
366
|
],
|
|
442
367
|
"properties": {
|
|
443
|
-
"
|
|
444
|
-
"type": "
|
|
368
|
+
"id": {
|
|
369
|
+
"type": "string"
|
|
445
370
|
},
|
|
446
|
-
"
|
|
371
|
+
"name": {
|
|
447
372
|
"type": "string"
|
|
373
|
+
},
|
|
374
|
+
"accountNumber": {
|
|
375
|
+
"type": "number"
|
|
376
|
+
},
|
|
377
|
+
"serviceStartTime": {
|
|
378
|
+
"type": "string",
|
|
379
|
+
"format": "date-time"
|
|
380
|
+
},
|
|
381
|
+
"serviceEndTime": {
|
|
382
|
+
"type": "string",
|
|
383
|
+
"format": "date-time"
|
|
448
384
|
}
|
|
449
385
|
}
|
|
450
386
|
}
|
|
451
387
|
```
|
|
452
388
|
|
|
453
|
-
<h3 id="
|
|
389
|
+
<h3 id="post__api_v1_account_admin_savetenant-parameters">Parameters</h3>
|
|
454
390
|
|
|
455
391
|
|Name|In|Type|Required|Description|
|
|
456
392
|
|---|---|---|---|---|
|
|
457
393
|
|body|body|object|true|none|
|
|
458
|
-
|»
|
|
459
|
-
|»
|
|
394
|
+
|» id|body|string|true|none|
|
|
395
|
+
|» name|body|string|true|none|
|
|
396
|
+
|» accountNumber|body|number|true|none|
|
|
397
|
+
|» serviceStartTime|body|string(date-time)|true|none|
|
|
398
|
+
|» serviceEndTime|body|string(date-time)|true|none|
|
|
460
399
|
|
|
461
|
-
<h3 id="
|
|
400
|
+
<h3 id="post__api_v1_account_admin_savetenant-responses">Responses</h3>
|
|
462
401
|
|
|
463
402
|
|Status|Meaning|Description|Schema|
|
|
464
403
|
|---|---|---|---|
|
|
@@ -468,26 +407,31 @@ This operation does not require authentication
|
|
|
468
407
|
This operation does not require authentication
|
|
469
408
|
</aside>
|
|
470
409
|
|
|
471
|
-
##
|
|
410
|
+
## post__api_v1_account_admin_tenant_addOrg
|
|
472
411
|
|
|
473
|
-
`POST /api/v1/account/admin/
|
|
412
|
+
`POST /api/v1/account/admin/tenant/addOrg`
|
|
474
413
|
|
|
475
|
-
>
|
|
414
|
+
<h3 id="post__api_v1_account_admin_tenant_addorg-responses">Responses</h3>
|
|
476
415
|
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
"properties": {}
|
|
481
|
-
}
|
|
482
|
-
```
|
|
416
|
+
|Status|Meaning|Description|Schema|
|
|
417
|
+
|---|---|---|---|
|
|
418
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
483
419
|
|
|
484
|
-
<
|
|
420
|
+
<aside class="success">
|
|
421
|
+
This operation does not require authentication
|
|
422
|
+
</aside>
|
|
423
|
+
|
|
424
|
+
## get__api_v1_account_admin_tenant_orgList
|
|
425
|
+
|
|
426
|
+
`GET /api/v1/account/admin/tenant/orgList`
|
|
427
|
+
|
|
428
|
+
<h3 id="get__api_v1_account_admin_tenant_orglist-parameters">Parameters</h3>
|
|
485
429
|
|
|
486
430
|
|Name|In|Type|Required|Description|
|
|
487
431
|
|---|---|---|---|---|
|
|
488
|
-
|
|
|
432
|
+
|id|query|string|false|none|
|
|
489
433
|
|
|
490
|
-
<h3 id="
|
|
434
|
+
<h3 id="get__api_v1_account_admin_tenant_orglist-responses">Responses</h3>
|
|
491
435
|
|
|
492
436
|
|Status|Meaning|Description|Schema|
|
|
493
437
|
|---|---|---|---|
|
|
@@ -497,11 +441,11 @@ This operation does not require authentication
|
|
|
497
441
|
This operation does not require authentication
|
|
498
442
|
</aside>
|
|
499
443
|
|
|
500
|
-
##
|
|
444
|
+
## post__api_v1_account_admin_tenant_editOrg
|
|
501
445
|
|
|
502
|
-
`
|
|
446
|
+
`POST /api/v1/account/admin/tenant/editOrg`
|
|
503
447
|
|
|
504
|
-
<h3 id="
|
|
448
|
+
<h3 id="post__api_v1_account_admin_tenant_editorg-responses">Responses</h3>
|
|
505
449
|
|
|
506
450
|
|Status|Meaning|Description|Schema|
|
|
507
451
|
|---|---|---|---|
|
|
@@ -511,39 +455,34 @@ This operation does not require authentication
|
|
|
511
455
|
This operation does not require authentication
|
|
512
456
|
</aside>
|
|
513
457
|
|
|
514
|
-
##
|
|
458
|
+
## post__api_v1_account_admin_tenant_removeOrg
|
|
515
459
|
|
|
516
|
-
`POST /api/v1/account/admin/
|
|
460
|
+
`POST /api/v1/account/admin/tenant/removeOrg`
|
|
517
461
|
|
|
518
|
-
>
|
|
462
|
+
<h3 id="post__api_v1_account_admin_tenant_removeorg-responses">Responses</h3>
|
|
519
463
|
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
"required": [
|
|
524
|
-
"userId",
|
|
525
|
-
"password"
|
|
526
|
-
],
|
|
527
|
-
"properties": {
|
|
528
|
-
"password": {
|
|
529
|
-
"type": "string"
|
|
530
|
-
},
|
|
531
|
-
"userId": {
|
|
532
|
-
"type": "string"
|
|
533
|
-
}
|
|
534
|
-
}
|
|
535
|
-
}
|
|
536
|
-
```
|
|
464
|
+
|Status|Meaning|Description|Schema|
|
|
465
|
+
|---|---|---|---|
|
|
466
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
537
467
|
|
|
538
|
-
<
|
|
468
|
+
<aside class="success">
|
|
469
|
+
This operation does not require authentication
|
|
470
|
+
</aside>
|
|
471
|
+
|
|
472
|
+
## get__api_v1_account_admin_getTenantUserList
|
|
473
|
+
|
|
474
|
+
`GET /api/v1/account/admin/getTenantUserList`
|
|
475
|
+
|
|
476
|
+
<h3 id="get__api_v1_account_admin_gettenantuserlist-parameters">Parameters</h3>
|
|
539
477
|
|
|
540
478
|
|Name|In|Type|Required|Description|
|
|
541
479
|
|---|---|---|---|---|
|
|
542
|
-
|
|
|
543
|
-
|
|
544
|
-
|
|
480
|
+
|tenantId|query|string|false|none|
|
|
481
|
+
|filter|query|object|false|none|
|
|
482
|
+
|currentPage|query|number|false|none|
|
|
483
|
+
|perPage|query|number|false|none|
|
|
545
484
|
|
|
546
|
-
<h3 id="
|
|
485
|
+
<h3 id="get__api_v1_account_admin_gettenantuserlist-responses">Responses</h3>
|
|
547
486
|
|
|
548
487
|
|Status|Meaning|Description|Schema|
|
|
549
488
|
|---|---|---|---|
|
|
@@ -553,9 +492,9 @@ This operation does not require authentication
|
|
|
553
492
|
This operation does not require authentication
|
|
554
493
|
</aside>
|
|
555
494
|
|
|
556
|
-
##
|
|
495
|
+
## post__api_v1_account_admin_addTenantUser
|
|
557
496
|
|
|
558
|
-
`POST /api/v1/account/admin/
|
|
497
|
+
`POST /api/v1/account/admin/addTenantUser`
|
|
559
498
|
|
|
560
499
|
> Body parameter
|
|
561
500
|
|
|
@@ -563,16 +502,35 @@ This operation does not require authentication
|
|
|
563
502
|
{
|
|
564
503
|
"type": "object",
|
|
565
504
|
"required": [
|
|
566
|
-
"
|
|
505
|
+
"tenantId",
|
|
506
|
+
"userId",
|
|
507
|
+
"name"
|
|
567
508
|
],
|
|
568
509
|
"properties": {
|
|
569
|
-
"
|
|
510
|
+
"tenantId": {
|
|
570
511
|
"type": "string"
|
|
571
512
|
},
|
|
572
|
-
"
|
|
513
|
+
"roleIds": {
|
|
514
|
+
"type": "array",
|
|
515
|
+
"items": {
|
|
516
|
+
"type": "number"
|
|
517
|
+
},
|
|
518
|
+
"default": []
|
|
519
|
+
},
|
|
520
|
+
"orgIds": {
|
|
521
|
+
"type": "array",
|
|
522
|
+
"items": {
|
|
523
|
+
"type": "number"
|
|
524
|
+
},
|
|
525
|
+
"default": []
|
|
526
|
+
},
|
|
527
|
+
"userId": {
|
|
573
528
|
"type": "string"
|
|
574
529
|
},
|
|
575
|
-
"
|
|
530
|
+
"name": {
|
|
531
|
+
"type": "string"
|
|
532
|
+
},
|
|
533
|
+
"avatar": {
|
|
576
534
|
"type": "string"
|
|
577
535
|
},
|
|
578
536
|
"phone": {
|
|
@@ -588,19 +546,22 @@ This operation does not require authentication
|
|
|
588
546
|
}
|
|
589
547
|
```
|
|
590
548
|
|
|
591
|
-
<h3 id="
|
|
549
|
+
<h3 id="post__api_v1_account_admin_addtenantuser-parameters">Parameters</h3>
|
|
592
550
|
|
|
593
551
|
|Name|In|Type|Required|Description|
|
|
594
552
|
|---|---|---|---|---|
|
|
595
553
|
|body|body|object|true|none|
|
|
596
|
-
|»
|
|
554
|
+
|» tenantId|body|string|true|none|
|
|
555
|
+
|» roleIds|body|[number]|false|none|
|
|
556
|
+
|» orgIds|body|[number]|false|none|
|
|
557
|
+
|» userId|body|string|true|none|
|
|
558
|
+
|» name|body|string|true|none|
|
|
597
559
|
|» avatar|body|string|false|none|
|
|
598
|
-
|» nickname|body|string|false|none|
|
|
599
560
|
|» phone|body|string|false|none|
|
|
600
561
|
|» email|body|string|false|none|
|
|
601
562
|
|» description|body|string|false|none|
|
|
602
563
|
|
|
603
|
-
<h3 id="
|
|
564
|
+
<h3 id="post__api_v1_account_admin_addtenantuser-responses">Responses</h3>
|
|
604
565
|
|
|
605
566
|
|Status|Meaning|Description|Schema|
|
|
606
567
|
|---|---|---|---|
|
|
@@ -610,9 +571,9 @@ This operation does not require authentication
|
|
|
610
571
|
This operation does not require authentication
|
|
611
572
|
</aside>
|
|
612
573
|
|
|
613
|
-
##
|
|
574
|
+
## post__api_v1_account_admin_saveTenantUser
|
|
614
575
|
|
|
615
|
-
`POST /api/v1/account/admin/
|
|
576
|
+
`POST /api/v1/account/admin/saveTenantUser`
|
|
616
577
|
|
|
617
578
|
> Body parameter
|
|
618
579
|
|
|
@@ -620,24 +581,61 @@ This operation does not require authentication
|
|
|
620
581
|
{
|
|
621
582
|
"type": "object",
|
|
622
583
|
"required": [
|
|
623
|
-
"
|
|
584
|
+
"tenantId",
|
|
585
|
+
"name"
|
|
624
586
|
],
|
|
625
587
|
"properties": {
|
|
626
|
-
"
|
|
588
|
+
"tenantId": {
|
|
627
589
|
"type": "string"
|
|
628
|
-
}
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
590
|
+
},
|
|
591
|
+
"roleIds": {
|
|
592
|
+
"type": "array",
|
|
593
|
+
"items": {
|
|
594
|
+
"type": "number"
|
|
595
|
+
},
|
|
596
|
+
"default": []
|
|
597
|
+
},
|
|
598
|
+
"orgIds": {
|
|
599
|
+
"type": "array",
|
|
600
|
+
"items": {
|
|
601
|
+
"type": "number"
|
|
602
|
+
},
|
|
603
|
+
"default": []
|
|
604
|
+
},
|
|
605
|
+
"name": {
|
|
606
|
+
"type": "string"
|
|
607
|
+
},
|
|
608
|
+
"avatar": {
|
|
609
|
+
"type": "string"
|
|
610
|
+
},
|
|
611
|
+
"phone": {
|
|
612
|
+
"type": "string"
|
|
613
|
+
},
|
|
614
|
+
"email": {
|
|
615
|
+
"type": "string"
|
|
616
|
+
},
|
|
617
|
+
"description": {
|
|
618
|
+
"type": "string"
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
```
|
|
632
623
|
|
|
633
|
-
<h3 id="
|
|
624
|
+
<h3 id="post__api_v1_account_admin_savetenantuser-parameters">Parameters</h3>
|
|
634
625
|
|
|
635
626
|
|Name|In|Type|Required|Description|
|
|
636
627
|
|---|---|---|---|---|
|
|
637
628
|
|body|body|object|true|none|
|
|
638
|
-
|»
|
|
629
|
+
|» tenantId|body|string|true|none|
|
|
630
|
+
|» roleIds|body|[number]|false|none|
|
|
631
|
+
|» orgIds|body|[number]|false|none|
|
|
632
|
+
|» name|body|string|true|none|
|
|
633
|
+
|» avatar|body|string|false|none|
|
|
634
|
+
|» phone|body|string|false|none|
|
|
635
|
+
|» email|body|string|false|none|
|
|
636
|
+
|» description|body|string|false|none|
|
|
639
637
|
|
|
640
|
-
<h3 id="
|
|
638
|
+
<h3 id="post__api_v1_account_admin_savetenantuser-responses">Responses</h3>
|
|
641
639
|
|
|
642
640
|
|Status|Meaning|Description|Schema|
|
|
643
641
|
|---|---|---|---|
|
|
@@ -647,9 +645,9 @@ This operation does not require authentication
|
|
|
647
645
|
This operation does not require authentication
|
|
648
646
|
</aside>
|
|
649
647
|
|
|
650
|
-
##
|
|
648
|
+
## post__api_v1_account_admin_deleteTenantUser
|
|
651
649
|
|
|
652
|
-
`POST /api/v1/account/admin/
|
|
650
|
+
`POST /api/v1/account/admin/deleteTenantUser`
|
|
653
651
|
|
|
654
652
|
> Body parameter
|
|
655
653
|
|
|
@@ -657,24 +655,29 @@ This operation does not require authentication
|
|
|
657
655
|
{
|
|
658
656
|
"type": "object",
|
|
659
657
|
"required": [
|
|
660
|
-
"
|
|
658
|
+
"tenantId",
|
|
659
|
+
"tenantUserId"
|
|
661
660
|
],
|
|
662
661
|
"properties": {
|
|
663
|
-
"
|
|
662
|
+
"tenantId": {
|
|
663
|
+
"type": "string"
|
|
664
|
+
},
|
|
665
|
+
"tenantUserId": {
|
|
664
666
|
"type": "string"
|
|
665
667
|
}
|
|
666
668
|
}
|
|
667
669
|
}
|
|
668
670
|
```
|
|
669
671
|
|
|
670
|
-
<h3 id="
|
|
672
|
+
<h3 id="post__api_v1_account_admin_deletetenantuser-parameters">Parameters</h3>
|
|
671
673
|
|
|
672
674
|
|Name|In|Type|Required|Description|
|
|
673
675
|
|---|---|---|---|---|
|
|
674
676
|
|body|body|object|true|none|
|
|
675
|
-
|»
|
|
677
|
+
|» tenantId|body|string|true|none|
|
|
678
|
+
|» tenantUserId|body|string|true|none|
|
|
676
679
|
|
|
677
|
-
<h3 id="
|
|
680
|
+
<h3 id="post__api_v1_account_admin_deletetenantuser-responses">Responses</h3>
|
|
678
681
|
|
|
679
682
|
|Status|Meaning|Description|Schema|
|
|
680
683
|
|---|---|---|---|
|
|
@@ -684,9 +687,9 @@ This operation does not require authentication
|
|
|
684
687
|
This operation does not require authentication
|
|
685
688
|
</aside>
|
|
686
689
|
|
|
687
|
-
##
|
|
690
|
+
## post__api_v1_account_admin_closeTenant
|
|
688
691
|
|
|
689
|
-
`POST /api/v1/account/admin/
|
|
692
|
+
`POST /api/v1/account/admin/closeTenant`
|
|
690
693
|
|
|
691
694
|
> Body parameter
|
|
692
695
|
|
|
@@ -694,41 +697,24 @@ This operation does not require authentication
|
|
|
694
697
|
{
|
|
695
698
|
"type": "object",
|
|
696
699
|
"required": [
|
|
697
|
-
"
|
|
698
|
-
"code"
|
|
700
|
+
"tenantId"
|
|
699
701
|
],
|
|
700
702
|
"properties": {
|
|
701
|
-
"
|
|
702
|
-
"type": "string"
|
|
703
|
-
},
|
|
704
|
-
"url": {
|
|
705
|
-
"type": "string"
|
|
706
|
-
},
|
|
707
|
-
"avatar": {
|
|
708
|
-
"type": "string"
|
|
709
|
-
},
|
|
710
|
-
"code": {
|
|
711
|
-
"type": "string"
|
|
712
|
-
},
|
|
713
|
-
"description": {
|
|
703
|
+
"tenantId": {
|
|
714
704
|
"type": "string"
|
|
715
705
|
}
|
|
716
706
|
}
|
|
717
707
|
}
|
|
718
708
|
```
|
|
719
709
|
|
|
720
|
-
<h3 id="
|
|
710
|
+
<h3 id="post__api_v1_account_admin_closetenant-parameters">Parameters</h3>
|
|
721
711
|
|
|
722
712
|
|Name|In|Type|Required|Description|
|
|
723
713
|
|---|---|---|---|---|
|
|
724
714
|
|body|body|object|true|none|
|
|
725
|
-
|»
|
|
726
|
-
|» url|body|string|false|none|
|
|
727
|
-
|» avatar|body|string|false|none|
|
|
728
|
-
|» code|body|string|true|none|
|
|
729
|
-
|» description|body|string|false|none|
|
|
715
|
+
|» tenantId|body|string|true|none|
|
|
730
716
|
|
|
731
|
-
<h3 id="
|
|
717
|
+
<h3 id="post__api_v1_account_admin_closetenant-responses">Responses</h3>
|
|
732
718
|
|
|
733
719
|
|Status|Meaning|Description|Schema|
|
|
734
720
|
|---|---|---|---|
|
|
@@ -738,9 +724,9 @@ This operation does not require authentication
|
|
|
738
724
|
This operation does not require authentication
|
|
739
725
|
</aside>
|
|
740
726
|
|
|
741
|
-
##
|
|
727
|
+
## post__api_v1_account_admin_openTenant
|
|
742
728
|
|
|
743
|
-
`POST /api/v1/account/admin/
|
|
729
|
+
`POST /api/v1/account/admin/openTenant`
|
|
744
730
|
|
|
745
731
|
> Body parameter
|
|
746
732
|
|
|
@@ -748,46 +734,24 @@ This operation does not require authentication
|
|
|
748
734
|
{
|
|
749
735
|
"type": "object",
|
|
750
736
|
"required": [
|
|
751
|
-
"
|
|
752
|
-
"name",
|
|
753
|
-
"code"
|
|
737
|
+
"tenantId"
|
|
754
738
|
],
|
|
755
739
|
"properties": {
|
|
756
|
-
"
|
|
757
|
-
"type": "string"
|
|
758
|
-
},
|
|
759
|
-
"url": {
|
|
760
|
-
"type": "string"
|
|
761
|
-
},
|
|
762
|
-
"name": {
|
|
763
|
-
"type": "string"
|
|
764
|
-
},
|
|
765
|
-
"avatar": {
|
|
766
|
-
"type": "string"
|
|
767
|
-
},
|
|
768
|
-
"code": {
|
|
769
|
-
"type": "string"
|
|
770
|
-
},
|
|
771
|
-
"description": {
|
|
740
|
+
"tenantId": {
|
|
772
741
|
"type": "string"
|
|
773
742
|
}
|
|
774
743
|
}
|
|
775
744
|
}
|
|
776
745
|
```
|
|
777
746
|
|
|
778
|
-
<h3 id="
|
|
747
|
+
<h3 id="post__api_v1_account_admin_opentenant-parameters">Parameters</h3>
|
|
779
748
|
|
|
780
749
|
|Name|In|Type|Required|Description|
|
|
781
750
|
|---|---|---|---|---|
|
|
782
751
|
|body|body|object|true|none|
|
|
783
|
-
|»
|
|
784
|
-
|» url|body|string|false|none|
|
|
785
|
-
|» name|body|string|true|none|
|
|
786
|
-
|» avatar|body|string|false|none|
|
|
787
|
-
|» code|body|string|true|none|
|
|
788
|
-
|» description|body|string|false|none|
|
|
752
|
+
|» tenantId|body|string|true|none|
|
|
789
753
|
|
|
790
|
-
<h3 id="
|
|
754
|
+
<h3 id="post__api_v1_account_admin_opentenant-responses">Responses</h3>
|
|
791
755
|
|
|
792
756
|
|Status|Meaning|Description|Schema|
|
|
793
757
|
|---|---|---|---|
|
|
@@ -797,9 +761,9 @@ This operation does not require authentication
|
|
|
797
761
|
This operation does not require authentication
|
|
798
762
|
</aside>
|
|
799
763
|
|
|
800
|
-
##
|
|
764
|
+
## post__api_v1_account_admin_closeTenantUser
|
|
801
765
|
|
|
802
|
-
`POST /api/v1/account/admin/
|
|
766
|
+
`POST /api/v1/account/admin/closeTenantUser`
|
|
803
767
|
|
|
804
768
|
> Body parameter
|
|
805
769
|
|
|
@@ -807,44 +771,29 @@ This operation does not require authentication
|
|
|
807
771
|
{
|
|
808
772
|
"type": "object",
|
|
809
773
|
"required": [
|
|
810
|
-
"
|
|
774
|
+
"tenantId",
|
|
775
|
+
"tenantUserId"
|
|
811
776
|
],
|
|
812
777
|
"properties": {
|
|
813
|
-
"
|
|
778
|
+
"tenantId": {
|
|
779
|
+
"type": "string"
|
|
780
|
+
},
|
|
781
|
+
"tenantUserId": {
|
|
814
782
|
"type": "string"
|
|
815
783
|
}
|
|
816
784
|
}
|
|
817
785
|
}
|
|
818
786
|
```
|
|
819
787
|
|
|
820
|
-
<h3 id="
|
|
788
|
+
<h3 id="post__api_v1_account_admin_closetenantuser-parameters">Parameters</h3>
|
|
821
789
|
|
|
822
790
|
|Name|In|Type|Required|Description|
|
|
823
791
|
|---|---|---|---|---|
|
|
824
792
|
|body|body|object|true|none|
|
|
825
|
-
|»
|
|
826
|
-
|
|
827
|
-
<h3 id="post__api_v1_account_admin_deleteapplication-responses">Responses</h3>
|
|
828
|
-
|
|
829
|
-
|Status|Meaning|Description|Schema|
|
|
830
|
-
|---|---|---|---|
|
|
831
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
832
|
-
|
|
833
|
-
<aside class="success">
|
|
834
|
-
This operation does not require authentication
|
|
835
|
-
</aside>
|
|
836
|
-
|
|
837
|
-
## get__api_v1_account_admin_getApplicationList
|
|
838
|
-
|
|
839
|
-
`GET /api/v1/account/admin/getApplicationList`
|
|
840
|
-
|
|
841
|
-
<h3 id="get__api_v1_account_admin_getapplicationlist-parameters">Parameters</h3>
|
|
842
|
-
|
|
843
|
-
|Name|In|Type|Required|Description|
|
|
844
|
-
|---|---|---|---|---|
|
|
845
|
-
|tenantId|query|string|false|none|
|
|
793
|
+
|» tenantId|body|string|true|none|
|
|
794
|
+
|» tenantUserId|body|string|true|none|
|
|
846
795
|
|
|
847
|
-
<h3 id="
|
|
796
|
+
<h3 id="post__api_v1_account_admin_closetenantuser-responses">Responses</h3>
|
|
848
797
|
|
|
849
798
|
|Status|Meaning|Description|Schema|
|
|
850
799
|
|---|---|---|---|
|
|
@@ -854,9 +803,9 @@ This operation does not require authentication
|
|
|
854
803
|
This operation does not require authentication
|
|
855
804
|
</aside>
|
|
856
805
|
|
|
857
|
-
##
|
|
806
|
+
## post__api_v1_account_admin_openTenantUser
|
|
858
807
|
|
|
859
|
-
`POST /api/v1/account/admin/
|
|
808
|
+
`POST /api/v1/account/admin/openTenantUser`
|
|
860
809
|
|
|
861
810
|
> Body parameter
|
|
862
811
|
|
|
@@ -864,54 +813,29 @@ This operation does not require authentication
|
|
|
864
813
|
{
|
|
865
814
|
"type": "object",
|
|
866
815
|
"required": [
|
|
867
|
-
"
|
|
868
|
-
"
|
|
869
|
-
"code"
|
|
816
|
+
"tenantId",
|
|
817
|
+
"tenantUserId"
|
|
870
818
|
],
|
|
871
819
|
"properties": {
|
|
872
|
-
"
|
|
873
|
-
"type": "string"
|
|
874
|
-
},
|
|
875
|
-
"name": {
|
|
876
|
-
"type": "string"
|
|
877
|
-
},
|
|
878
|
-
"code": {
|
|
820
|
+
"tenantId": {
|
|
879
821
|
"type": "string"
|
|
880
822
|
},
|
|
881
|
-
"
|
|
882
|
-
"type": "number"
|
|
883
|
-
},
|
|
884
|
-
"isModule": {
|
|
885
|
-
"type": "number"
|
|
886
|
-
},
|
|
887
|
-
"isMust": {
|
|
888
|
-
"type": "number"
|
|
889
|
-
},
|
|
890
|
-
"pid": {
|
|
891
|
-
"type": "number"
|
|
892
|
-
},
|
|
893
|
-
"description": {
|
|
823
|
+
"tenantUserId": {
|
|
894
824
|
"type": "string"
|
|
895
825
|
}
|
|
896
826
|
}
|
|
897
827
|
}
|
|
898
828
|
```
|
|
899
829
|
|
|
900
|
-
<h3 id="
|
|
830
|
+
<h3 id="post__api_v1_account_admin_opentenantuser-parameters">Parameters</h3>
|
|
901
831
|
|
|
902
832
|
|Name|In|Type|Required|Description|
|
|
903
833
|
|---|---|---|---|---|
|
|
904
834
|
|body|body|object|true|none|
|
|
905
|
-
|»
|
|
906
|
-
|»
|
|
907
|
-
|» code|body|string|true|none|
|
|
908
|
-
|» type|body|number|false|none|
|
|
909
|
-
|» isModule|body|number|false|none|
|
|
910
|
-
|» isMust|body|number|false|none|
|
|
911
|
-
|» pid|body|number|false|none|
|
|
912
|
-
|» description|body|string|false|none|
|
|
835
|
+
|» tenantId|body|string|true|none|
|
|
836
|
+
|» tenantUserId|body|string|true|none|
|
|
913
837
|
|
|
914
|
-
<h3 id="
|
|
838
|
+
<h3 id="post__api_v1_account_admin_opentenantuser-responses">Responses</h3>
|
|
915
839
|
|
|
916
840
|
|Status|Meaning|Description|Schema|
|
|
917
841
|
|---|---|---|---|
|
|
@@ -921,18 +845,17 @@ This operation does not require authentication
|
|
|
921
845
|
This operation does not require authentication
|
|
922
846
|
</aside>
|
|
923
847
|
|
|
924
|
-
##
|
|
848
|
+
## get__api_v1_account_admin_getInviteList
|
|
925
849
|
|
|
926
|
-
`GET /api/v1/account/admin/
|
|
850
|
+
`GET /api/v1/account/admin/getInviteList`
|
|
927
851
|
|
|
928
|
-
<h3 id="
|
|
852
|
+
<h3 id="get__api_v1_account_admin_getinvitelist-parameters">Parameters</h3>
|
|
929
853
|
|
|
930
854
|
|Name|In|Type|Required|Description|
|
|
931
855
|
|---|---|---|---|---|
|
|
932
|
-
|
|
|
933
|
-
|tenantId|query|string|false|none|
|
|
856
|
+
|tenantId|query|string|true|none|
|
|
934
857
|
|
|
935
|
-
<h3 id="
|
|
858
|
+
<h3 id="get__api_v1_account_admin_getinvitelist-responses">Responses</h3>
|
|
936
859
|
|
|
937
860
|
|Status|Meaning|Description|Schema|
|
|
938
861
|
|---|---|---|---|
|
|
@@ -942,9 +865,9 @@ This operation does not require authentication
|
|
|
942
865
|
This operation does not require authentication
|
|
943
866
|
</aside>
|
|
944
867
|
|
|
945
|
-
##
|
|
868
|
+
## post__api_v1_account_admin_addInviteToken
|
|
946
869
|
|
|
947
|
-
`POST /api/v1/account/admin/
|
|
870
|
+
`POST /api/v1/account/admin/addInviteToken`
|
|
948
871
|
|
|
949
872
|
> Body parameter
|
|
950
873
|
|
|
@@ -952,24 +875,46 @@ This operation does not require authentication
|
|
|
952
875
|
{
|
|
953
876
|
"type": "object",
|
|
954
877
|
"required": [
|
|
955
|
-
"
|
|
878
|
+
"tenantId"
|
|
956
879
|
],
|
|
957
880
|
"properties": {
|
|
958
|
-
"
|
|
881
|
+
"tenantId": {
|
|
959
882
|
"type": "string"
|
|
883
|
+
},
|
|
884
|
+
"info": {
|
|
885
|
+
"type": "object",
|
|
886
|
+
"properties": {
|
|
887
|
+
"roleIds": {
|
|
888
|
+
"type": "array",
|
|
889
|
+
"items": {
|
|
890
|
+
"type": "number"
|
|
891
|
+
},
|
|
892
|
+
"default": []
|
|
893
|
+
},
|
|
894
|
+
"orgIds": {
|
|
895
|
+
"type": "array",
|
|
896
|
+
"items": {
|
|
897
|
+
"type": "number"
|
|
898
|
+
},
|
|
899
|
+
"default": []
|
|
900
|
+
}
|
|
901
|
+
}
|
|
960
902
|
}
|
|
961
903
|
}
|
|
962
904
|
}
|
|
963
905
|
```
|
|
964
906
|
|
|
965
|
-
<h3 id="
|
|
907
|
+
<h3 id="post__api_v1_account_admin_addinvitetoken-parameters">Parameters</h3>
|
|
966
908
|
|
|
967
909
|
|Name|In|Type|Required|Description|
|
|
968
910
|
|---|---|---|---|---|
|
|
969
911
|
|body|body|object|true|none|
|
|
970
|
-
|»
|
|
912
|
+
|» tenantId|body|string|true|none|
|
|
913
|
+
|» info|body|object|false|none|
|
|
914
|
+
|»» roleIds|body|[number]|false|none|
|
|
915
|
+
|»» orgIds|body|[number]|false|none|
|
|
971
916
|
|
|
972
|
-
<h3 id="
|
|
917
|
+
<h3 id="post__api_v1_account_admin_addinvitetoken-responses">Responses</h3>
|
|
973
918
|
|
|
974
919
|
|Status|Meaning|Description|Schema|
|
|
975
920
|
|---|---|---|---|
|
|
@@ -979,9 +924,9 @@ This operation does not require authentication
|
|
|
979
924
|
This operation does not require authentication
|
|
980
925
|
</aside>
|
|
981
926
|
|
|
982
|
-
##
|
|
927
|
+
## post__api_v1_account_admin_deleteInviteToken
|
|
983
928
|
|
|
984
|
-
`POST /api/v1/account/admin/
|
|
929
|
+
`POST /api/v1/account/admin/deleteInviteToken`
|
|
985
930
|
|
|
986
931
|
> Body parameter
|
|
987
932
|
|
|
@@ -993,36 +938,20 @@ This operation does not require authentication
|
|
|
993
938
|
],
|
|
994
939
|
"properties": {
|
|
995
940
|
"id": {
|
|
996
|
-
"type": "string"
|
|
997
|
-
},
|
|
998
|
-
"name": {
|
|
999
|
-
"type": "string"
|
|
1000
|
-
},
|
|
1001
|
-
"type": {
|
|
1002
|
-
"type": "number"
|
|
1003
|
-
},
|
|
1004
|
-
"isMust": {
|
|
1005
941
|
"type": "number"
|
|
1006
|
-
},
|
|
1007
|
-
"description": {
|
|
1008
|
-
"type": "string"
|
|
1009
942
|
}
|
|
1010
943
|
}
|
|
1011
944
|
}
|
|
1012
945
|
```
|
|
1013
946
|
|
|
1014
|
-
<h3 id="
|
|
947
|
+
<h3 id="post__api_v1_account_admin_deleteinvitetoken-parameters">Parameters</h3>
|
|
1015
948
|
|
|
1016
949
|
|Name|In|Type|Required|Description|
|
|
1017
950
|
|---|---|---|---|---|
|
|
1018
951
|
|body|body|object|true|none|
|
|
1019
|
-
|» id|body|
|
|
1020
|
-
|» name|body|string|false|none|
|
|
1021
|
-
|» type|body|number|false|none|
|
|
1022
|
-
|» isMust|body|number|false|none|
|
|
1023
|
-
|» description|body|string|false|none|
|
|
952
|
+
|» id|body|number|true|none|
|
|
1024
953
|
|
|
1025
|
-
<h3 id="
|
|
954
|
+
<h3 id="post__api_v1_account_admin_deleteinvitetoken-responses">Responses</h3>
|
|
1026
955
|
|
|
1027
956
|
|Status|Meaning|Description|Schema|
|
|
1028
957
|
|---|---|---|---|
|
|
@@ -1032,9 +961,87 @@ This operation does not require authentication
|
|
|
1032
961
|
This operation does not require authentication
|
|
1033
962
|
</aside>
|
|
1034
963
|
|
|
1035
|
-
##
|
|
964
|
+
## get__api_v1_account_tenant_getUserTenant
|
|
1036
965
|
|
|
1037
|
-
`
|
|
966
|
+
`GET /api/v1/account/tenant/getUserTenant`
|
|
967
|
+
|
|
968
|
+
<h3 id="get__api_v1_account_tenant_getusertenant-responses">Responses</h3>
|
|
969
|
+
|
|
970
|
+
|Status|Meaning|Description|Schema|
|
|
971
|
+
|---|---|---|---|
|
|
972
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
973
|
+
|
|
974
|
+
<aside class="success">
|
|
975
|
+
This operation does not require authentication
|
|
976
|
+
</aside>
|
|
977
|
+
|
|
978
|
+
## get__api_v1_account_tenant_getTenantUserInfo
|
|
979
|
+
|
|
980
|
+
`GET /api/v1/account/tenant/getTenantUserInfo`
|
|
981
|
+
|
|
982
|
+
<h3 id="get__api_v1_account_tenant_gettenantuserinfo-responses">Responses</h3>
|
|
983
|
+
|
|
984
|
+
|Status|Meaning|Description|Schema|
|
|
985
|
+
|---|---|---|---|
|
|
986
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
987
|
+
|
|
988
|
+
<aside class="success">
|
|
989
|
+
This operation does not require authentication
|
|
990
|
+
</aside>
|
|
991
|
+
|
|
992
|
+
## get__api_v1_account_tenant_getTenantUserList
|
|
993
|
+
|
|
994
|
+
`GET /api/v1/account/tenant/getTenantUserList`
|
|
995
|
+
|
|
996
|
+
<h3 id="get__api_v1_account_tenant_gettenantuserlist-parameters">Parameters</h3>
|
|
997
|
+
|
|
998
|
+
|Name|In|Type|Required|Description|
|
|
999
|
+
|---|---|---|---|---|
|
|
1000
|
+
|filter|query|object|false|none|
|
|
1001
|
+
|currentPage|query|number|false|none|
|
|
1002
|
+
|perPage|query|number|false|none|
|
|
1003
|
+
|
|
1004
|
+
<h3 id="get__api_v1_account_tenant_gettenantuserlist-responses">Responses</h3>
|
|
1005
|
+
|
|
1006
|
+
|Status|Meaning|Description|Schema|
|
|
1007
|
+
|---|---|---|---|
|
|
1008
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1009
|
+
|
|
1010
|
+
<aside class="success">
|
|
1011
|
+
This operation does not require authentication
|
|
1012
|
+
</aside>
|
|
1013
|
+
|
|
1014
|
+
## get__api_v1_account_tenant_orgList
|
|
1015
|
+
|
|
1016
|
+
`GET /api/v1/account/tenant/orgList`
|
|
1017
|
+
|
|
1018
|
+
<h3 id="get__api_v1_account_tenant_orglist-responses">Responses</h3>
|
|
1019
|
+
|
|
1020
|
+
|Status|Meaning|Description|Schema|
|
|
1021
|
+
|---|---|---|---|
|
|
1022
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1023
|
+
|
|
1024
|
+
<aside class="success">
|
|
1025
|
+
This operation does not require authentication
|
|
1026
|
+
</aside>
|
|
1027
|
+
|
|
1028
|
+
## get__api_v1_account_getUserInfo
|
|
1029
|
+
|
|
1030
|
+
`GET /api/v1/account/getUserInfo`
|
|
1031
|
+
|
|
1032
|
+
<h3 id="get__api_v1_account_getuserinfo-responses">Responses</h3>
|
|
1033
|
+
|
|
1034
|
+
|Status|Meaning|Description|Schema|
|
|
1035
|
+
|---|---|---|---|
|
|
1036
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1037
|
+
|
|
1038
|
+
<aside class="success">
|
|
1039
|
+
This operation does not require authentication
|
|
1040
|
+
</aside>
|
|
1041
|
+
|
|
1042
|
+
## post__api_v1_account_setCurrentTenantId
|
|
1043
|
+
|
|
1044
|
+
`POST /api/v1/account/setCurrentTenantId`
|
|
1038
1045
|
|
|
1039
1046
|
> Body parameter
|
|
1040
1047
|
|
|
@@ -1042,40 +1049,24 @@ This operation does not require authentication
|
|
|
1042
1049
|
{
|
|
1043
1050
|
"type": "object",
|
|
1044
1051
|
"required": [
|
|
1045
|
-
"tenantId"
|
|
1046
|
-
"applications",
|
|
1047
|
-
"permissions"
|
|
1052
|
+
"tenantId"
|
|
1048
1053
|
],
|
|
1049
1054
|
"properties": {
|
|
1050
1055
|
"tenantId": {
|
|
1051
1056
|
"type": "string"
|
|
1052
|
-
},
|
|
1053
|
-
"applications": {
|
|
1054
|
-
"type": "array",
|
|
1055
|
-
"items": {
|
|
1056
|
-
"type": "string"
|
|
1057
|
-
}
|
|
1058
|
-
},
|
|
1059
|
-
"permissions": {
|
|
1060
|
-
"type": "array",
|
|
1061
|
-
"items": {
|
|
1062
|
-
"type": "number"
|
|
1063
|
-
}
|
|
1064
1057
|
}
|
|
1065
1058
|
}
|
|
1066
1059
|
}
|
|
1067
1060
|
```
|
|
1068
1061
|
|
|
1069
|
-
<h3 id="
|
|
1062
|
+
<h3 id="post__api_v1_account_setcurrenttenantid-parameters">Parameters</h3>
|
|
1070
1063
|
|
|
1071
1064
|
|Name|In|Type|Required|Description|
|
|
1072
1065
|
|---|---|---|---|---|
|
|
1073
1066
|
|body|body|object|true|none|
|
|
1074
1067
|
|» tenantId|body|string|true|none|
|
|
1075
|
-
|» applications|body|[string]|true|none|
|
|
1076
|
-
|» permissions|body|[number]|true|none|
|
|
1077
1068
|
|
|
1078
|
-
<h3 id="
|
|
1069
|
+
<h3 id="post__api_v1_account_setcurrenttenantid-responses">Responses</h3>
|
|
1079
1070
|
|
|
1080
1071
|
|Status|Meaning|Description|Schema|
|
|
1081
1072
|
|---|---|---|---|
|
|
@@ -1085,50 +1076,77 @@ This operation does not require authentication
|
|
|
1085
1076
|
This operation does not require authentication
|
|
1086
1077
|
</aside>
|
|
1087
1078
|
|
|
1088
|
-
|
|
1079
|
+
<h1 id="-kne-fastify-account--">账号</h1>
|
|
1089
1080
|
|
|
1090
|
-
|
|
1081
|
+
## post__api_v1_account_sendEmailCode
|
|
1091
1082
|
|
|
1092
|
-
|
|
1083
|
+
`POST /api/v1/account/sendEmailCode`
|
|
1093
1084
|
|
|
1094
|
-
|
|
1095
|
-
|---|---|---|---|---|
|
|
1096
|
-
|tenantId|query|string|true|none|
|
|
1085
|
+
*发送邮箱验证码*
|
|
1097
1086
|
|
|
1098
|
-
|
|
1087
|
+
> Body parameter
|
|
1099
1088
|
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1089
|
+
```json
|
|
1090
|
+
{
|
|
1091
|
+
"type": "object",
|
|
1092
|
+
"required": [
|
|
1093
|
+
"email"
|
|
1094
|
+
],
|
|
1095
|
+
"properties": {
|
|
1096
|
+
"email": {
|
|
1097
|
+
"type": "string",
|
|
1098
|
+
"description": "邮箱"
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
```
|
|
1103
1103
|
|
|
1104
|
-
<
|
|
1105
|
-
This operation does not require authentication
|
|
1106
|
-
</aside>
|
|
1104
|
+
<h3 id="post__api_v1_account_sendemailcode-parameters">Parameters</h3>
|
|
1107
1105
|
|
|
1108
|
-
|
|
1106
|
+
|Name|In|Type|Required|Description|
|
|
1107
|
+
|---|---|---|---|---|
|
|
1108
|
+
|body|body|object|true|none|
|
|
1109
|
+
|» email|body|string|true|邮箱|
|
|
1109
1110
|
|
|
1110
|
-
|
|
1111
|
+
> Example responses
|
|
1111
1112
|
|
|
1112
|
-
|
|
1113
|
+
> 200 Response
|
|
1113
1114
|
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1115
|
+
```json
|
|
1116
|
+
{
|
|
1117
|
+
"type": "object",
|
|
1118
|
+
"properties": {
|
|
1119
|
+
"code": {
|
|
1120
|
+
"type": "string",
|
|
1121
|
+
"description": "验证码"
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
```
|
|
1118
1126
|
|
|
1119
|
-
<h3 id="
|
|
1127
|
+
<h3 id="post__api_v1_account_sendemailcode-responses">Responses</h3>
|
|
1120
1128
|
|
|
1121
1129
|
|Status|Meaning|Description|Schema|
|
|
1122
1130
|
|---|---|---|---|
|
|
1123
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|
|
|
1131
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|Inline|
|
|
1132
|
+
|
|
1133
|
+
<h3 id="post__api_v1_account_sendemailcode-responseschema">Response Schema</h3>
|
|
1134
|
+
|
|
1135
|
+
Status Code **200**
|
|
1136
|
+
|
|
1137
|
+
|Name|Type|Required|Restrictions|Description|
|
|
1138
|
+
|---|---|---|---|---|
|
|
1139
|
+
|» code|string|false|none|验证码|
|
|
1124
1140
|
|
|
1125
1141
|
<aside class="success">
|
|
1126
1142
|
This operation does not require authentication
|
|
1127
1143
|
</aside>
|
|
1128
1144
|
|
|
1129
|
-
##
|
|
1145
|
+
## post__api_v1_account_sendSMSCode
|
|
1130
1146
|
|
|
1131
|
-
`POST /api/v1/account/
|
|
1147
|
+
`POST /api/v1/account/sendSMSCode`
|
|
1148
|
+
|
|
1149
|
+
*发送短信验证码*
|
|
1132
1150
|
|
|
1133
1151
|
> Body parameter
|
|
1134
1152
|
|
|
@@ -1136,45 +1154,527 @@ This operation does not require authentication
|
|
|
1136
1154
|
{
|
|
1137
1155
|
"type": "object",
|
|
1138
1156
|
"required": [
|
|
1139
|
-
"
|
|
1140
|
-
"name"
|
|
1157
|
+
"phone"
|
|
1141
1158
|
],
|
|
1142
1159
|
"properties": {
|
|
1143
|
-
"
|
|
1144
|
-
"type": "string"
|
|
1145
|
-
|
|
1146
|
-
"name": {
|
|
1147
|
-
"type": "string"
|
|
1148
|
-
},
|
|
1149
|
-
"description": {
|
|
1150
|
-
"type": "string"
|
|
1160
|
+
"phone": {
|
|
1161
|
+
"type": "string",
|
|
1162
|
+
"description": "电话"
|
|
1151
1163
|
}
|
|
1152
1164
|
}
|
|
1153
1165
|
}
|
|
1154
1166
|
```
|
|
1155
1167
|
|
|
1156
|
-
<h3 id="
|
|
1168
|
+
<h3 id="post__api_v1_account_sendsmscode-parameters">Parameters</h3>
|
|
1157
1169
|
|
|
1158
1170
|
|Name|In|Type|Required|Description|
|
|
1159
1171
|
|---|---|---|---|---|
|
|
1160
1172
|
|body|body|object|true|none|
|
|
1161
|
-
|»
|
|
1162
|
-
|» name|body|string|true|none|
|
|
1163
|
-
|» description|body|string|false|none|
|
|
1173
|
+
|» phone|body|string|true|电话|
|
|
1164
1174
|
|
|
1165
|
-
|
|
1175
|
+
> Example responses
|
|
1176
|
+
|
|
1177
|
+
> 200 Response
|
|
1178
|
+
|
|
1179
|
+
```json
|
|
1180
|
+
{
|
|
1181
|
+
"type": "object",
|
|
1182
|
+
"properties": {
|
|
1183
|
+
"code": {
|
|
1184
|
+
"type": "string",
|
|
1185
|
+
"description": "验证码"
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
```
|
|
1190
|
+
|
|
1191
|
+
<h3 id="post__api_v1_account_sendsmscode-responses">Responses</h3>
|
|
1192
|
+
|
|
1193
|
+
|Status|Meaning|Description|Schema|
|
|
1194
|
+
|---|---|---|---|
|
|
1195
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|Inline|
|
|
1196
|
+
|
|
1197
|
+
<h3 id="post__api_v1_account_sendsmscode-responseschema">Response Schema</h3>
|
|
1198
|
+
|
|
1199
|
+
Status Code **200**
|
|
1200
|
+
|
|
1201
|
+
|Name|Type|Required|Restrictions|Description|
|
|
1202
|
+
|---|---|---|---|---|
|
|
1203
|
+
|» code|string|false|none|验证码|
|
|
1204
|
+
|
|
1205
|
+
<aside class="success">
|
|
1206
|
+
This operation does not require authentication
|
|
1207
|
+
</aside>
|
|
1208
|
+
|
|
1209
|
+
## post__api_v1_account_validateCode
|
|
1210
|
+
|
|
1211
|
+
`POST /api/v1/account/validateCode`
|
|
1212
|
+
|
|
1213
|
+
*验证码验证*
|
|
1214
|
+
|
|
1215
|
+
> Body parameter
|
|
1216
|
+
|
|
1217
|
+
```json
|
|
1218
|
+
{
|
|
1219
|
+
"type": "object",
|
|
1220
|
+
"required": [
|
|
1221
|
+
"name",
|
|
1222
|
+
"type",
|
|
1223
|
+
"code"
|
|
1224
|
+
],
|
|
1225
|
+
"properties": {
|
|
1226
|
+
"name": {
|
|
1227
|
+
"type": "string",
|
|
1228
|
+
"description": "被验证的账号,手机或邮箱"
|
|
1229
|
+
},
|
|
1230
|
+
"type": {
|
|
1231
|
+
"type": "number",
|
|
1232
|
+
"description": "0:手机注册,1:邮箱注册,2:手机登录,3:邮箱登录,4:验证租户管理员"
|
|
1233
|
+
},
|
|
1234
|
+
"code": {
|
|
1235
|
+
"type": "string",
|
|
1236
|
+
"description": "接受到的验证码"
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
```
|
|
1241
|
+
|
|
1242
|
+
<h3 id="post__api_v1_account_validatecode-parameters">Parameters</h3>
|
|
1243
|
+
|
|
1244
|
+
|Name|In|Type|Required|Description|
|
|
1245
|
+
|---|---|---|---|---|
|
|
1246
|
+
|body|body|object|true|none|
|
|
1247
|
+
|» name|body|string|true|被验证的账号,手机或邮箱|
|
|
1248
|
+
|» type|body|number|true|0:手机注册,1:邮箱注册,2:手机登录,3:邮箱登录,4:验证租户管理员|
|
|
1249
|
+
|» code|body|string|true|接受到的验证码|
|
|
1250
|
+
|
|
1251
|
+
> Example responses
|
|
1252
|
+
|
|
1253
|
+
> 200 Response
|
|
1254
|
+
|
|
1255
|
+
```json
|
|
1256
|
+
{
|
|
1257
|
+
"type": "object",
|
|
1258
|
+
"properties": {}
|
|
1259
|
+
}
|
|
1260
|
+
```
|
|
1261
|
+
|
|
1262
|
+
<h3 id="post__api_v1_account_validatecode-responses">Responses</h3>
|
|
1263
|
+
|
|
1264
|
+
|Status|Meaning|Description|Schema|
|
|
1265
|
+
|---|---|---|---|
|
|
1266
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|Inline|
|
|
1267
|
+
|
|
1268
|
+
<h3 id="post__api_v1_account_validatecode-responseschema">Response Schema</h3>
|
|
1269
|
+
|
|
1270
|
+
<aside class="success">
|
|
1271
|
+
This operation does not require authentication
|
|
1272
|
+
</aside>
|
|
1273
|
+
|
|
1274
|
+
## post__api_v1_account_accountIsExists
|
|
1275
|
+
|
|
1276
|
+
`POST /api/v1/account/accountIsExists`
|
|
1277
|
+
|
|
1278
|
+
*账号是否已存在*
|
|
1279
|
+
|
|
1280
|
+
> Body parameter
|
|
1281
|
+
|
|
1282
|
+
```json
|
|
1283
|
+
{
|
|
1284
|
+
"oneOf": [
|
|
1285
|
+
{
|
|
1286
|
+
"type": "object",
|
|
1287
|
+
"required": [
|
|
1288
|
+
"phone"
|
|
1289
|
+
],
|
|
1290
|
+
"properties": {
|
|
1291
|
+
"phone": {
|
|
1292
|
+
"type": "string",
|
|
1293
|
+
"description": "电话"
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
},
|
|
1297
|
+
{
|
|
1298
|
+
"type": "object",
|
|
1299
|
+
"required": [
|
|
1300
|
+
"email"
|
|
1301
|
+
],
|
|
1302
|
+
"properties": {
|
|
1303
|
+
"email": {
|
|
1304
|
+
"type": "string",
|
|
1305
|
+
"description": "邮箱"
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
]
|
|
1310
|
+
}
|
|
1311
|
+
```
|
|
1312
|
+
|
|
1313
|
+
<h3 id="post__api_v1_account_accountisexists-parameters">Parameters</h3>
|
|
1314
|
+
|
|
1315
|
+
|Name|In|Type|Required|Description|
|
|
1316
|
+
|---|---|---|---|---|
|
|
1317
|
+
|body|body|any|false|none|
|
|
1318
|
+
|
|
1319
|
+
> Example responses
|
|
1320
|
+
|
|
1321
|
+
> 200 Response
|
|
1322
|
+
|
|
1323
|
+
```json
|
|
1324
|
+
{
|
|
1325
|
+
"type": "object",
|
|
1326
|
+
"properties": {
|
|
1327
|
+
"isExists": {
|
|
1328
|
+
"type": "boolean",
|
|
1329
|
+
"description": "true已存在,false不存在"
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
```
|
|
1334
|
+
|
|
1335
|
+
<h3 id="post__api_v1_account_accountisexists-responses">Responses</h3>
|
|
1336
|
+
|
|
1337
|
+
|Status|Meaning|Description|Schema|
|
|
1338
|
+
|---|---|---|---|
|
|
1339
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|Inline|
|
|
1340
|
+
|
|
1341
|
+
<h3 id="post__api_v1_account_accountisexists-responseschema">Response Schema</h3>
|
|
1342
|
+
|
|
1343
|
+
Status Code **200**
|
|
1344
|
+
|
|
1345
|
+
|Name|Type|Required|Restrictions|Description|
|
|
1346
|
+
|---|---|---|---|---|
|
|
1347
|
+
|» isExists|boolean|false|none|true已存在,false不存在|
|
|
1348
|
+
|
|
1349
|
+
<aside class="success">
|
|
1350
|
+
This operation does not require authentication
|
|
1351
|
+
</aside>
|
|
1352
|
+
|
|
1353
|
+
## post__api_v1_account_register
|
|
1354
|
+
|
|
1355
|
+
`POST /api/v1/account/register`
|
|
1356
|
+
|
|
1357
|
+
*注册账号*
|
|
1358
|
+
|
|
1359
|
+
> Body parameter
|
|
1360
|
+
|
|
1361
|
+
```json
|
|
1362
|
+
{
|
|
1363
|
+
"oneOf": [
|
|
1364
|
+
{
|
|
1365
|
+
"type": "object",
|
|
1366
|
+
"required": [
|
|
1367
|
+
"phone",
|
|
1368
|
+
"password",
|
|
1369
|
+
"code"
|
|
1370
|
+
],
|
|
1371
|
+
"properties": {
|
|
1372
|
+
"avatar": {
|
|
1373
|
+
"type": "string",
|
|
1374
|
+
"description": "头像图片id"
|
|
1375
|
+
},
|
|
1376
|
+
"phone": {
|
|
1377
|
+
"type": "string",
|
|
1378
|
+
"description": "电话"
|
|
1379
|
+
},
|
|
1380
|
+
"code": {
|
|
1381
|
+
"type": "string",
|
|
1382
|
+
"description": "验证码"
|
|
1383
|
+
},
|
|
1384
|
+
"password": {
|
|
1385
|
+
"type": "string",
|
|
1386
|
+
"description": "密码(需要md5加密)"
|
|
1387
|
+
},
|
|
1388
|
+
"invitationCode": {
|
|
1389
|
+
"type": "string",
|
|
1390
|
+
"description": "邀请码,用来默认加入租户"
|
|
1391
|
+
},
|
|
1392
|
+
"nickname": {
|
|
1393
|
+
"type": "string",
|
|
1394
|
+
"description": "昵称"
|
|
1395
|
+
},
|
|
1396
|
+
"gender": {
|
|
1397
|
+
"type": "string",
|
|
1398
|
+
"description": "性别"
|
|
1399
|
+
},
|
|
1400
|
+
"birthday": {
|
|
1401
|
+
"type": "string",
|
|
1402
|
+
"format": "date",
|
|
1403
|
+
"description": "出生日期"
|
|
1404
|
+
},
|
|
1405
|
+
"description": {
|
|
1406
|
+
"type": "string",
|
|
1407
|
+
"description": "个人简介"
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
},
|
|
1411
|
+
{
|
|
1412
|
+
"type": "object",
|
|
1413
|
+
"required": [
|
|
1414
|
+
"email",
|
|
1415
|
+
"password",
|
|
1416
|
+
"code"
|
|
1417
|
+
],
|
|
1418
|
+
"properties": {
|
|
1419
|
+
"avatar": {
|
|
1420
|
+
"type": "string",
|
|
1421
|
+
"description": "头像图片id"
|
|
1422
|
+
},
|
|
1423
|
+
"email": {
|
|
1424
|
+
"type": "string",
|
|
1425
|
+
"description": "邮箱"
|
|
1426
|
+
},
|
|
1427
|
+
"code": {
|
|
1428
|
+
"type": "string",
|
|
1429
|
+
"description": "验证码"
|
|
1430
|
+
},
|
|
1431
|
+
"password": {
|
|
1432
|
+
"type": "string",
|
|
1433
|
+
"description": "密码(需要md5加密)"
|
|
1434
|
+
},
|
|
1435
|
+
"invitationCode": {
|
|
1436
|
+
"type": "string",
|
|
1437
|
+
"description": "邀请码,用来默认加入租户"
|
|
1438
|
+
},
|
|
1439
|
+
"nickname": {
|
|
1440
|
+
"type": "string",
|
|
1441
|
+
"description": "昵称"
|
|
1442
|
+
},
|
|
1443
|
+
"gender": {
|
|
1444
|
+
"type": "string",
|
|
1445
|
+
"description": "性别"
|
|
1446
|
+
},
|
|
1447
|
+
"birthday": {
|
|
1448
|
+
"type": "string",
|
|
1449
|
+
"format": "date",
|
|
1450
|
+
"description": "出生日期"
|
|
1451
|
+
},
|
|
1452
|
+
"description": {
|
|
1453
|
+
"type": "string",
|
|
1454
|
+
"description": "个人简介"
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
]
|
|
1459
|
+
}
|
|
1460
|
+
```
|
|
1461
|
+
|
|
1462
|
+
<h3 id="post__api_v1_account_register-parameters">Parameters</h3>
|
|
1463
|
+
|
|
1464
|
+
|Name|In|Type|Required|Description|
|
|
1465
|
+
|---|---|---|---|---|
|
|
1466
|
+
|body|body|any|false|none|
|
|
1467
|
+
|
|
1468
|
+
> Example responses
|
|
1469
|
+
|
|
1470
|
+
> 200 Response
|
|
1471
|
+
|
|
1472
|
+
```json
|
|
1473
|
+
{
|
|
1474
|
+
"type": "object",
|
|
1475
|
+
"properties": {}
|
|
1476
|
+
}
|
|
1477
|
+
```
|
|
1478
|
+
|
|
1479
|
+
<h3 id="post__api_v1_account_register-responses">Responses</h3>
|
|
1480
|
+
|
|
1481
|
+
|Status|Meaning|Description|Schema|
|
|
1482
|
+
|---|---|---|---|
|
|
1483
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|Inline|
|
|
1484
|
+
|
|
1485
|
+
<h3 id="post__api_v1_account_register-responseschema">Response Schema</h3>
|
|
1486
|
+
|
|
1487
|
+
<aside class="success">
|
|
1488
|
+
This operation does not require authentication
|
|
1489
|
+
</aside>
|
|
1490
|
+
|
|
1491
|
+
## post__api_v1_account_login
|
|
1492
|
+
|
|
1493
|
+
`POST /api/v1/account/login`
|
|
1494
|
+
|
|
1495
|
+
*登录*
|
|
1496
|
+
|
|
1497
|
+
> Body parameter
|
|
1498
|
+
|
|
1499
|
+
```json
|
|
1500
|
+
{
|
|
1501
|
+
"type": "object",
|
|
1502
|
+
"required": [
|
|
1503
|
+
"username",
|
|
1504
|
+
"password"
|
|
1505
|
+
],
|
|
1506
|
+
"properties": {
|
|
1507
|
+
"username": {
|
|
1508
|
+
"type": "string",
|
|
1509
|
+
"description": "用户名"
|
|
1510
|
+
},
|
|
1511
|
+
"password": {
|
|
1512
|
+
"type": "string",
|
|
1513
|
+
"description": "密码"
|
|
1514
|
+
}
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
```
|
|
1518
|
+
|
|
1519
|
+
<h3 id="post__api_v1_account_login-parameters">Parameters</h3>
|
|
1520
|
+
|
|
1521
|
+
|Name|In|Type|Required|Description|
|
|
1522
|
+
|---|---|---|---|---|
|
|
1523
|
+
|body|body|object|true|none|
|
|
1524
|
+
|» username|body|string|true|用户名|
|
|
1525
|
+
|» password|body|string|true|密码|
|
|
1526
|
+
|
|
1527
|
+
> Example responses
|
|
1528
|
+
|
|
1529
|
+
> 200 Response
|
|
1530
|
+
|
|
1531
|
+
```json
|
|
1532
|
+
{
|
|
1533
|
+
"type": "object",
|
|
1534
|
+
"properties": {
|
|
1535
|
+
"token": {
|
|
1536
|
+
"type": "string",
|
|
1537
|
+
"description": "用户token"
|
|
1538
|
+
},
|
|
1539
|
+
"currentTenantId": {
|
|
1540
|
+
"type": "string",
|
|
1541
|
+
"description": "当前租户id"
|
|
1542
|
+
}
|
|
1543
|
+
}
|
|
1544
|
+
}
|
|
1545
|
+
```
|
|
1546
|
+
|
|
1547
|
+
<h3 id="post__api_v1_account_login-responses">Responses</h3>
|
|
1548
|
+
|
|
1549
|
+
|Status|Meaning|Description|Schema|
|
|
1550
|
+
|---|---|---|---|
|
|
1551
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|Inline|
|
|
1552
|
+
|
|
1553
|
+
<h3 id="post__api_v1_account_login-responseschema">Response Schema</h3>
|
|
1554
|
+
|
|
1555
|
+
Status Code **200**
|
|
1556
|
+
|
|
1557
|
+
|Name|Type|Required|Restrictions|Description|
|
|
1558
|
+
|---|---|---|---|---|
|
|
1559
|
+
|» token|string|false|none|用户token|
|
|
1560
|
+
|» currentTenantId|string|false|none|当前租户id|
|
|
1561
|
+
|
|
1562
|
+
<aside class="success">
|
|
1563
|
+
This operation does not require authentication
|
|
1564
|
+
</aside>
|
|
1565
|
+
|
|
1566
|
+
<h1 id="-kne-fastify-account--">管理后台</h1>
|
|
1567
|
+
|
|
1568
|
+
## post__api_v1_account_initSuperAdmin
|
|
1569
|
+
|
|
1570
|
+
`POST /api/v1/account/initSuperAdmin`
|
|
1571
|
+
|
|
1572
|
+
*初始化用户为管理员*
|
|
1573
|
+
|
|
1574
|
+
用于系统初始化时,设置第一个用户,只能使用一次,其他用户由该用户创建
|
|
1575
|
+
|
|
1576
|
+
<h3 id="post__api_v1_account_initsuperadmin-responses">Responses</h3>
|
|
1577
|
+
|
|
1578
|
+
|Status|Meaning|Description|Schema|
|
|
1579
|
+
|---|---|---|---|
|
|
1580
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1581
|
+
|
|
1582
|
+
<aside class="success">
|
|
1583
|
+
This operation does not require authentication
|
|
1584
|
+
</aside>
|
|
1585
|
+
|
|
1586
|
+
## get__api_v1_account_admin_getSuperAdminInfo
|
|
1587
|
+
|
|
1588
|
+
`GET /api/v1/account/admin/getSuperAdminInfo`
|
|
1589
|
+
|
|
1590
|
+
*获取管理员信息*
|
|
1591
|
+
|
|
1592
|
+
> Example responses
|
|
1593
|
+
|
|
1594
|
+
> 200 Response
|
|
1595
|
+
|
|
1596
|
+
```json
|
|
1597
|
+
{
|
|
1598
|
+
"type": "object",
|
|
1599
|
+
"properties": {
|
|
1600
|
+
"userInfo": {
|
|
1601
|
+
"type": "object",
|
|
1602
|
+
"properties": {
|
|
1603
|
+
"id": {
|
|
1604
|
+
"type": "string",
|
|
1605
|
+
"description": "用户id"
|
|
1606
|
+
},
|
|
1607
|
+
"nickname": {
|
|
1608
|
+
"type": "string",
|
|
1609
|
+
"description": "用户昵称"
|
|
1610
|
+
},
|
|
1611
|
+
"email": {
|
|
1612
|
+
"type": "string",
|
|
1613
|
+
"description": "邮箱"
|
|
1614
|
+
},
|
|
1615
|
+
"phone": {
|
|
1616
|
+
"type": "string",
|
|
1617
|
+
"description": "电话"
|
|
1618
|
+
},
|
|
1619
|
+
"gender": {
|
|
1620
|
+
"type": "string",
|
|
1621
|
+
"description": "性别"
|
|
1622
|
+
},
|
|
1623
|
+
"birthday": {
|
|
1624
|
+
"type": "string",
|
|
1625
|
+
"format": "date",
|
|
1626
|
+
"description": "出生日期"
|
|
1627
|
+
},
|
|
1628
|
+
"description": {
|
|
1629
|
+
"type": "string",
|
|
1630
|
+
"description": "个人简介"
|
|
1631
|
+
},
|
|
1632
|
+
"currentTenantId": {
|
|
1633
|
+
"type": "string",
|
|
1634
|
+
"description": "当前租户ID"
|
|
1635
|
+
},
|
|
1636
|
+
"status": {
|
|
1637
|
+
"type": "number",
|
|
1638
|
+
"description": "状态"
|
|
1639
|
+
}
|
|
1640
|
+
}
|
|
1641
|
+
}
|
|
1642
|
+
}
|
|
1643
|
+
}
|
|
1644
|
+
```
|
|
1645
|
+
|
|
1646
|
+
<h3 id="get__api_v1_account_admin_getsuperadmininfo-responses">Responses</h3>
|
|
1647
|
+
|
|
1648
|
+
|Status|Meaning|Description|Schema|
|
|
1649
|
+
|---|---|---|---|
|
|
1650
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|Inline|
|
|
1651
|
+
|
|
1652
|
+
<h3 id="get__api_v1_account_admin_getsuperadmininfo-responseschema">Response Schema</h3>
|
|
1653
|
+
|
|
1654
|
+
Status Code **200**
|
|
1166
1655
|
|
|
1167
|
-
|
|
|
1168
|
-
|
|
1169
|
-
|
|
|
1656
|
+
|Name|Type|Required|Restrictions|Description|
|
|
1657
|
+
|---|---|---|---|---|
|
|
1658
|
+
|» userInfo|object|false|none|none|
|
|
1659
|
+
|»» id|string|false|none|用户id|
|
|
1660
|
+
|»» nickname|string|false|none|用户昵称|
|
|
1661
|
+
|»» email|string|false|none|邮箱|
|
|
1662
|
+
|»» phone|string|false|none|电话|
|
|
1663
|
+
|»» gender|string|false|none|性别|
|
|
1664
|
+
|»» birthday|string(date)|false|none|出生日期|
|
|
1665
|
+
|»» description|string|false|none|个人简介|
|
|
1666
|
+
|»» currentTenantId|string|false|none|当前租户ID|
|
|
1667
|
+
|»» status|number|false|none|状态|
|
|
1170
1668
|
|
|
1171
1669
|
<aside class="success">
|
|
1172
1670
|
This operation does not require authentication
|
|
1173
1671
|
</aside>
|
|
1174
1672
|
|
|
1175
|
-
##
|
|
1673
|
+
## post__api_v1_account_admin_setSuperAdmin
|
|
1176
1674
|
|
|
1177
|
-
`POST /api/v1/account/admin/
|
|
1675
|
+
`POST /api/v1/account/admin/setSuperAdmin`
|
|
1676
|
+
|
|
1677
|
+
*设置用户为超级管理员*
|
|
1178
1678
|
|
|
1179
1679
|
> Body parameter
|
|
1180
1680
|
|
|
@@ -1182,33 +1682,31 @@ This operation does not require authentication
|
|
|
1182
1682
|
{
|
|
1183
1683
|
"type": "object",
|
|
1184
1684
|
"required": [
|
|
1185
|
-
"
|
|
1186
|
-
"
|
|
1685
|
+
"status",
|
|
1686
|
+
"userId"
|
|
1187
1687
|
],
|
|
1188
1688
|
"properties": {
|
|
1189
|
-
"
|
|
1190
|
-
"type": "
|
|
1191
|
-
|
|
1192
|
-
"name": {
|
|
1193
|
-
"type": "string"
|
|
1689
|
+
"status": {
|
|
1690
|
+
"type": "boolean",
|
|
1691
|
+
"description": "true:将用户设置为超级管理员,false:取消用户超级管理员"
|
|
1194
1692
|
},
|
|
1195
|
-
"
|
|
1196
|
-
"type": "string"
|
|
1693
|
+
"userId": {
|
|
1694
|
+
"type": "string",
|
|
1695
|
+
"description": "用户ID"
|
|
1197
1696
|
}
|
|
1198
1697
|
}
|
|
1199
1698
|
}
|
|
1200
1699
|
```
|
|
1201
1700
|
|
|
1202
|
-
<h3 id="
|
|
1701
|
+
<h3 id="post__api_v1_account_admin_setsuperadmin-parameters">Parameters</h3>
|
|
1203
1702
|
|
|
1204
1703
|
|Name|In|Type|Required|Description|
|
|
1205
1704
|
|---|---|---|---|---|
|
|
1206
1705
|
|body|body|object|true|none|
|
|
1207
|
-
|»
|
|
1208
|
-
|»
|
|
1209
|
-
|» description|body|string|false|none|
|
|
1706
|
+
|» status|body|boolean|true|true:将用户设置为超级管理员,false:取消用户超级管理员|
|
|
1707
|
+
|» userId|body|string|true|用户ID|
|
|
1210
1708
|
|
|
1211
|
-
<h3 id="
|
|
1709
|
+
<h3 id="post__api_v1_account_admin_setsuperadmin-responses">Responses</h3>
|
|
1212
1710
|
|
|
1213
1711
|
|Status|Meaning|Description|Schema|
|
|
1214
1712
|
|---|---|---|---|
|
|
@@ -1218,54 +1716,28 @@ This operation does not require authentication
|
|
|
1218
1716
|
This operation does not require authentication
|
|
1219
1717
|
</aside>
|
|
1220
1718
|
|
|
1221
|
-
##
|
|
1719
|
+
## post__api_v1_account_admin_addUser
|
|
1222
1720
|
|
|
1223
|
-
`POST /api/v1/account/admin/
|
|
1721
|
+
`POST /api/v1/account/admin/addUser`
|
|
1722
|
+
|
|
1723
|
+
*添加用户*
|
|
1224
1724
|
|
|
1225
1725
|
> Body parameter
|
|
1226
1726
|
|
|
1227
1727
|
```json
|
|
1228
1728
|
{
|
|
1229
1729
|
"type": "object",
|
|
1230
|
-
"
|
|
1231
|
-
"id"
|
|
1232
|
-
],
|
|
1233
|
-
"properties": {
|
|
1234
|
-
"id": {
|
|
1235
|
-
"type": "number"
|
|
1236
|
-
}
|
|
1237
|
-
}
|
|
1730
|
+
"properties": {}
|
|
1238
1731
|
}
|
|
1239
1732
|
```
|
|
1240
1733
|
|
|
1241
|
-
<h3 id="
|
|
1242
|
-
|
|
1243
|
-
|Name|In|Type|Required|Description|
|
|
1244
|
-
|---|---|---|---|---|
|
|
1245
|
-
|body|body|object|true|none|
|
|
1246
|
-
|» id|body|number|true|none|
|
|
1247
|
-
|
|
1248
|
-
<h3 id="post__api_v1_account_admin_removerole-responses">Responses</h3>
|
|
1249
|
-
|
|
1250
|
-
|Status|Meaning|Description|Schema|
|
|
1251
|
-
|---|---|---|---|
|
|
1252
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1253
|
-
|
|
1254
|
-
<aside class="success">
|
|
1255
|
-
This operation does not require authentication
|
|
1256
|
-
</aside>
|
|
1257
|
-
|
|
1258
|
-
## get__api_v1_account_admin_getRolePermissionList
|
|
1259
|
-
|
|
1260
|
-
`GET /api/v1/account/admin/getRolePermissionList`
|
|
1261
|
-
|
|
1262
|
-
<h3 id="get__api_v1_account_admin_getrolepermissionlist-parameters">Parameters</h3>
|
|
1734
|
+
<h3 id="post__api_v1_account_admin_adduser-parameters">Parameters</h3>
|
|
1263
1735
|
|
|
1264
1736
|
|Name|In|Type|Required|Description|
|
|
1265
1737
|
|---|---|---|---|---|
|
|
1266
|
-
|
|
|
1738
|
+
|body|body|object|false|none|
|
|
1267
1739
|
|
|
1268
|
-
<h3 id="
|
|
1740
|
+
<h3 id="post__api_v1_account_admin_adduser-responses">Responses</h3>
|
|
1269
1741
|
|
|
1270
1742
|
|Status|Meaning|Description|Schema|
|
|
1271
1743
|
|---|---|---|---|
|
|
@@ -1275,35 +1747,20 @@ This operation does not require authentication
|
|
|
1275
1747
|
This operation does not require authentication
|
|
1276
1748
|
</aside>
|
|
1277
1749
|
|
|
1278
|
-
##
|
|
1279
|
-
|
|
1280
|
-
`POST /api/v1/account/admin/saveRolePermissionList`
|
|
1281
|
-
|
|
1282
|
-
<h3 id="post__api_v1_account_admin_saverolepermissionlist-responses">Responses</h3>
|
|
1283
|
-
|
|
1284
|
-
|Status|Meaning|Description|Schema|
|
|
1285
|
-
|---|---|---|---|
|
|
1286
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1287
|
-
|
|
1288
|
-
<aside class="success">
|
|
1289
|
-
This operation does not require authentication
|
|
1290
|
-
</aside>
|
|
1750
|
+
## get__api_v1_account_admin_getAllUserList
|
|
1291
1751
|
|
|
1292
|
-
|
|
1752
|
+
`GET /api/v1/account/admin/getAllUserList`
|
|
1293
1753
|
|
|
1294
|
-
|
|
1754
|
+
*获取用户列表*
|
|
1295
1755
|
|
|
1296
|
-
<h3 id="
|
|
1756
|
+
<h3 id="get__api_v1_account_admin_getalluserlist-parameters">Parameters</h3>
|
|
1297
1757
|
|
|
1298
1758
|
|Name|In|Type|Required|Description|
|
|
1299
1759
|
|---|---|---|---|---|
|
|
1300
|
-
|name|query|string|false|none|
|
|
1301
|
-
|serviceStartTime|query|string(date-time)|false|none|
|
|
1302
|
-
|serviceEndTime|query|string(date-time)|false|none|
|
|
1303
1760
|
|perPage|query|number|false|none|
|
|
1304
1761
|
|currentPage|query|number|false|none|
|
|
1305
1762
|
|
|
1306
|
-
<h3 id="
|
|
1763
|
+
<h3 id="get__api_v1_account_admin_getalluserlist-responses">Responses</h3>
|
|
1307
1764
|
|
|
1308
1765
|
|Status|Meaning|Description|Schema|
|
|
1309
1766
|
|---|---|---|---|
|
|
@@ -1313,29 +1770,11 @@ This operation does not require authentication
|
|
|
1313
1770
|
This operation does not require authentication
|
|
1314
1771
|
</aside>
|
|
1315
1772
|
|
|
1316
|
-
##
|
|
1317
|
-
|
|
1318
|
-
`GET /api/v1/account/admin/getTenantInfo`
|
|
1319
|
-
|
|
1320
|
-
<h3 id="get__api_v1_account_admin_gettenantinfo-parameters">Parameters</h3>
|
|
1321
|
-
|
|
1322
|
-
|Name|In|Type|Required|Description|
|
|
1323
|
-
|---|---|---|---|---|
|
|
1324
|
-
|id|query|string|false|none|
|
|
1325
|
-
|
|
1326
|
-
<h3 id="get__api_v1_account_admin_gettenantinfo-responses">Responses</h3>
|
|
1327
|
-
|
|
1328
|
-
|Status|Meaning|Description|Schema|
|
|
1329
|
-
|---|---|---|---|
|
|
1330
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1331
|
-
|
|
1332
|
-
<aside class="success">
|
|
1333
|
-
This operation does not require authentication
|
|
1334
|
-
</aside>
|
|
1773
|
+
## post__api_v1_account_admin_resetUserPassword
|
|
1335
1774
|
|
|
1336
|
-
|
|
1775
|
+
`POST /api/v1/account/admin/resetUserPassword`
|
|
1337
1776
|
|
|
1338
|
-
|
|
1777
|
+
*重置用户账号密码*
|
|
1339
1778
|
|
|
1340
1779
|
> Body parameter
|
|
1341
1780
|
|
|
@@ -1343,41 +1782,29 @@ This operation does not require authentication
|
|
|
1343
1782
|
{
|
|
1344
1783
|
"type": "object",
|
|
1345
1784
|
"required": [
|
|
1346
|
-
"
|
|
1347
|
-
"
|
|
1348
|
-
"serviceStartTime",
|
|
1349
|
-
"serviceEndTime"
|
|
1785
|
+
"userId",
|
|
1786
|
+
"password"
|
|
1350
1787
|
],
|
|
1351
1788
|
"properties": {
|
|
1352
|
-
"
|
|
1789
|
+
"password": {
|
|
1353
1790
|
"type": "string"
|
|
1354
1791
|
},
|
|
1355
|
-
"
|
|
1356
|
-
"type": "
|
|
1357
|
-
},
|
|
1358
|
-
"serviceStartTime": {
|
|
1359
|
-
"type": "string",
|
|
1360
|
-
"format": "date-time"
|
|
1361
|
-
},
|
|
1362
|
-
"serviceEndTime": {
|
|
1363
|
-
"type": "string",
|
|
1364
|
-
"format": "date-time"
|
|
1792
|
+
"userId": {
|
|
1793
|
+
"type": "string"
|
|
1365
1794
|
}
|
|
1366
1795
|
}
|
|
1367
1796
|
}
|
|
1368
1797
|
```
|
|
1369
1798
|
|
|
1370
|
-
<h3 id="
|
|
1799
|
+
<h3 id="post__api_v1_account_admin_resetuserpassword-parameters">Parameters</h3>
|
|
1371
1800
|
|
|
1372
1801
|
|Name|In|Type|Required|Description|
|
|
1373
1802
|
|---|---|---|---|---|
|
|
1374
1803
|
|body|body|object|true|none|
|
|
1375
|
-
|»
|
|
1376
|
-
|»
|
|
1377
|
-
|» serviceStartTime|body|string(date-time)|true|none|
|
|
1378
|
-
|» serviceEndTime|body|string(date-time)|true|none|
|
|
1804
|
+
|» password|body|string|true|none|
|
|
1805
|
+
|» userId|body|string|true|none|
|
|
1379
1806
|
|
|
1380
|
-
<h3 id="
|
|
1807
|
+
<h3 id="post__api_v1_account_admin_resetuserpassword-responses">Responses</h3>
|
|
1381
1808
|
|
|
1382
1809
|
|Status|Meaning|Description|Schema|
|
|
1383
1810
|
|---|---|---|---|
|
|
@@ -1387,9 +1814,11 @@ This operation does not require authentication
|
|
|
1387
1814
|
This operation does not require authentication
|
|
1388
1815
|
</aside>
|
|
1389
1816
|
|
|
1390
|
-
##
|
|
1817
|
+
## post__api_v1_account_admin_saveUser
|
|
1391
1818
|
|
|
1392
|
-
`POST /api/v1/account/admin/
|
|
1819
|
+
`POST /api/v1/account/admin/saveUser`
|
|
1820
|
+
|
|
1821
|
+
*修改用户信息*
|
|
1393
1822
|
|
|
1394
1823
|
> Body parameter
|
|
1395
1824
|
|
|
@@ -1397,46 +1826,44 @@ This operation does not require authentication
|
|
|
1397
1826
|
{
|
|
1398
1827
|
"type": "object",
|
|
1399
1828
|
"required": [
|
|
1400
|
-
"id"
|
|
1401
|
-
"name",
|
|
1402
|
-
"accountNumber",
|
|
1403
|
-
"serviceStartTime",
|
|
1404
|
-
"serviceEndTime"
|
|
1829
|
+
"id"
|
|
1405
1830
|
],
|
|
1406
1831
|
"properties": {
|
|
1407
1832
|
"id": {
|
|
1408
1833
|
"type": "string"
|
|
1409
1834
|
},
|
|
1410
|
-
"
|
|
1835
|
+
"avatar": {
|
|
1411
1836
|
"type": "string"
|
|
1412
1837
|
},
|
|
1413
|
-
"
|
|
1414
|
-
"type": "
|
|
1838
|
+
"nickname": {
|
|
1839
|
+
"type": "string"
|
|
1415
1840
|
},
|
|
1416
|
-
"
|
|
1417
|
-
"type": "string"
|
|
1418
|
-
"format": "date-time"
|
|
1841
|
+
"phone": {
|
|
1842
|
+
"type": "string"
|
|
1419
1843
|
},
|
|
1420
|
-
"
|
|
1421
|
-
"type": "string"
|
|
1422
|
-
|
|
1844
|
+
"email": {
|
|
1845
|
+
"type": "string"
|
|
1846
|
+
},
|
|
1847
|
+
"description": {
|
|
1848
|
+
"type": "string"
|
|
1423
1849
|
}
|
|
1424
1850
|
}
|
|
1425
1851
|
}
|
|
1426
1852
|
```
|
|
1427
1853
|
|
|
1428
|
-
<h3 id="
|
|
1854
|
+
<h3 id="post__api_v1_account_admin_saveuser-parameters">Parameters</h3>
|
|
1429
1855
|
|
|
1430
1856
|
|Name|In|Type|Required|Description|
|
|
1431
1857
|
|---|---|---|---|---|
|
|
1432
1858
|
|body|body|object|true|none|
|
|
1433
1859
|
|» id|body|string|true|none|
|
|
1434
|
-
|»
|
|
1435
|
-
|»
|
|
1436
|
-
|»
|
|
1437
|
-
|»
|
|
1860
|
+
|» avatar|body|string|false|none|
|
|
1861
|
+
|» nickname|body|string|false|none|
|
|
1862
|
+
|» phone|body|string|false|none|
|
|
1863
|
+
|» email|body|string|false|none|
|
|
1864
|
+
|» description|body|string|false|none|
|
|
1438
1865
|
|
|
1439
|
-
<h3 id="
|
|
1866
|
+
<h3 id="post__api_v1_account_admin_saveuser-responses">Responses</h3>
|
|
1440
1867
|
|
|
1441
1868
|
|Status|Meaning|Description|Schema|
|
|
1442
1869
|
|---|---|---|---|
|
|
@@ -1446,45 +1873,36 @@ This operation does not require authentication
|
|
|
1446
1873
|
This operation does not require authentication
|
|
1447
1874
|
</aside>
|
|
1448
1875
|
|
|
1449
|
-
##
|
|
1450
|
-
|
|
1451
|
-
`POST /api/v1/account/admin/tenant/addOrg`
|
|
1452
|
-
|
|
1453
|
-
<h3 id="post__api_v1_account_admin_tenant_addorg-responses">Responses</h3>
|
|
1876
|
+
## post__api_v1_account_admin_closeUser
|
|
1454
1877
|
|
|
1455
|
-
|
|
1456
|
-
|---|---|---|---|
|
|
1457
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1878
|
+
`POST /api/v1/account/admin/closeUser`
|
|
1458
1879
|
|
|
1459
|
-
|
|
1460
|
-
This operation does not require authentication
|
|
1461
|
-
</aside>
|
|
1880
|
+
*关闭用户*
|
|
1462
1881
|
|
|
1463
|
-
|
|
1882
|
+
> Body parameter
|
|
1464
1883
|
|
|
1465
|
-
|
|
1884
|
+
```json
|
|
1885
|
+
{
|
|
1886
|
+
"type": "object",
|
|
1887
|
+
"required": [
|
|
1888
|
+
"id"
|
|
1889
|
+
],
|
|
1890
|
+
"properties": {
|
|
1891
|
+
"id": {
|
|
1892
|
+
"type": "string"
|
|
1893
|
+
}
|
|
1894
|
+
}
|
|
1895
|
+
}
|
|
1896
|
+
```
|
|
1466
1897
|
|
|
1467
|
-
<h3 id="
|
|
1898
|
+
<h3 id="post__api_v1_account_admin_closeuser-parameters">Parameters</h3>
|
|
1468
1899
|
|
|
1469
1900
|
|Name|In|Type|Required|Description|
|
|
1470
1901
|
|---|---|---|---|---|
|
|
1471
|
-
|
|
|
1472
|
-
|
|
1473
|
-
<h3 id="get__api_v1_account_admin_tenant_orglist-responses">Responses</h3>
|
|
1474
|
-
|
|
1475
|
-
|Status|Meaning|Description|Schema|
|
|
1476
|
-
|---|---|---|---|
|
|
1477
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1478
|
-
|
|
1479
|
-
<aside class="success">
|
|
1480
|
-
This operation does not require authentication
|
|
1481
|
-
</aside>
|
|
1482
|
-
|
|
1483
|
-
## post__api_v1_account_admin_tenant_editOrg
|
|
1484
|
-
|
|
1485
|
-
`POST /api/v1/account/admin/tenant/editOrg`
|
|
1902
|
+
|body|body|object|true|none|
|
|
1903
|
+
|» id|body|string|true|none|
|
|
1486
1904
|
|
|
1487
|
-
<h3 id="
|
|
1905
|
+
<h3 id="post__api_v1_account_admin_closeuser-responses">Responses</h3>
|
|
1488
1906
|
|
|
1489
1907
|
|Status|Meaning|Description|Schema|
|
|
1490
1908
|
|---|---|---|---|
|
|
@@ -1494,31 +1912,36 @@ This operation does not require authentication
|
|
|
1494
1912
|
This operation does not require authentication
|
|
1495
1913
|
</aside>
|
|
1496
1914
|
|
|
1497
|
-
##
|
|
1498
|
-
|
|
1499
|
-
`POST /api/v1/account/admin/tenant/removeOrg`
|
|
1500
|
-
|
|
1501
|
-
<h3 id="post__api_v1_account_admin_tenant_removeorg-responses">Responses</h3>
|
|
1915
|
+
## post__api_v1_account_admin_openUser
|
|
1502
1916
|
|
|
1503
|
-
|
|
1504
|
-
|---|---|---|---|
|
|
1505
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1917
|
+
`POST /api/v1/account/admin/openUser`
|
|
1506
1918
|
|
|
1507
|
-
|
|
1508
|
-
This operation does not require authentication
|
|
1509
|
-
</aside>
|
|
1919
|
+
*将用户设置为正常*
|
|
1510
1920
|
|
|
1511
|
-
|
|
1921
|
+
> Body parameter
|
|
1512
1922
|
|
|
1513
|
-
|
|
1923
|
+
```json
|
|
1924
|
+
{
|
|
1925
|
+
"type": "object",
|
|
1926
|
+
"required": [
|
|
1927
|
+
"id"
|
|
1928
|
+
],
|
|
1929
|
+
"properties": {
|
|
1930
|
+
"id": {
|
|
1931
|
+
"type": "string"
|
|
1932
|
+
}
|
|
1933
|
+
}
|
|
1934
|
+
}
|
|
1935
|
+
```
|
|
1514
1936
|
|
|
1515
|
-
<h3 id="
|
|
1937
|
+
<h3 id="post__api_v1_account_admin_openuser-parameters">Parameters</h3>
|
|
1516
1938
|
|
|
1517
1939
|
|Name|In|Type|Required|Description|
|
|
1518
1940
|
|---|---|---|---|---|
|
|
1519
|
-
|
|
|
1941
|
+
|body|body|object|true|none|
|
|
1942
|
+
|» id|body|string|true|none|
|
|
1520
1943
|
|
|
1521
|
-
<h3 id="
|
|
1944
|
+
<h3 id="post__api_v1_account_admin_openuser-responses">Responses</h3>
|
|
1522
1945
|
|
|
1523
1946
|
|Status|Meaning|Description|Schema|
|
|
1524
1947
|
|---|---|---|---|
|
|
@@ -1528,9 +1951,13 @@ This operation does not require authentication
|
|
|
1528
1951
|
This operation does not require authentication
|
|
1529
1952
|
</aside>
|
|
1530
1953
|
|
|
1531
|
-
|
|
1954
|
+
<h1 id="-kne-fastify-account--">管理后台-权限</h1>
|
|
1532
1955
|
|
|
1533
|
-
|
|
1956
|
+
## post__api_v1_account_admin_addApplication
|
|
1957
|
+
|
|
1958
|
+
`POST /api/v1/account/admin/addApplication`
|
|
1959
|
+
|
|
1960
|
+
*添加应用*
|
|
1534
1961
|
|
|
1535
1962
|
> Body parameter
|
|
1536
1963
|
|
|
@@ -1538,41 +1965,20 @@ This operation does not require authentication
|
|
|
1538
1965
|
{
|
|
1539
1966
|
"type": "object",
|
|
1540
1967
|
"required": [
|
|
1541
|
-
"
|
|
1542
|
-
"
|
|
1543
|
-
"name"
|
|
1968
|
+
"name",
|
|
1969
|
+
"code"
|
|
1544
1970
|
],
|
|
1545
1971
|
"properties": {
|
|
1546
|
-
"tenantId": {
|
|
1547
|
-
"type": "string"
|
|
1548
|
-
},
|
|
1549
|
-
"roleIds": {
|
|
1550
|
-
"type": "array",
|
|
1551
|
-
"items": {
|
|
1552
|
-
"type": "number"
|
|
1553
|
-
},
|
|
1554
|
-
"default": []
|
|
1555
|
-
},
|
|
1556
|
-
"orgIds": {
|
|
1557
|
-
"type": "array",
|
|
1558
|
-
"items": {
|
|
1559
|
-
"type": "number"
|
|
1560
|
-
},
|
|
1561
|
-
"default": []
|
|
1562
|
-
},
|
|
1563
|
-
"userId": {
|
|
1564
|
-
"type": "string"
|
|
1565
|
-
},
|
|
1566
1972
|
"name": {
|
|
1567
1973
|
"type": "string"
|
|
1568
1974
|
},
|
|
1569
|
-
"
|
|
1975
|
+
"url": {
|
|
1570
1976
|
"type": "string"
|
|
1571
1977
|
},
|
|
1572
|
-
"
|
|
1978
|
+
"avatar": {
|
|
1573
1979
|
"type": "string"
|
|
1574
1980
|
},
|
|
1575
|
-
"
|
|
1981
|
+
"code": {
|
|
1576
1982
|
"type": "string"
|
|
1577
1983
|
},
|
|
1578
1984
|
"description": {
|
|
@@ -1582,22 +1988,18 @@ This operation does not require authentication
|
|
|
1582
1988
|
}
|
|
1583
1989
|
```
|
|
1584
1990
|
|
|
1585
|
-
<h3 id="
|
|
1991
|
+
<h3 id="post__api_v1_account_admin_addapplication-parameters">Parameters</h3>
|
|
1586
1992
|
|
|
1587
1993
|
|Name|In|Type|Required|Description|
|
|
1588
1994
|
|---|---|---|---|---|
|
|
1589
1995
|
|body|body|object|true|none|
|
|
1590
|
-
|» tenantId|body|string|true|none|
|
|
1591
|
-
|» roleIds|body|[number]|false|none|
|
|
1592
|
-
|» orgIds|body|[number]|false|none|
|
|
1593
|
-
|» userId|body|string|true|none|
|
|
1594
1996
|
|» name|body|string|true|none|
|
|
1997
|
+
|» url|body|string|false|none|
|
|
1595
1998
|
|» avatar|body|string|false|none|
|
|
1596
|
-
|»
|
|
1597
|
-
|» email|body|string|false|none|
|
|
1999
|
+
|» code|body|string|true|none|
|
|
1598
2000
|
|» description|body|string|false|none|
|
|
1599
2001
|
|
|
1600
|
-
<h3 id="
|
|
2002
|
+
<h3 id="post__api_v1_account_admin_addapplication-responses">Responses</h3>
|
|
1601
2003
|
|
|
1602
2004
|
|Status|Meaning|Description|Schema|
|
|
1603
2005
|
|---|---|---|---|
|
|
@@ -1607,9 +2009,11 @@ This operation does not require authentication
|
|
|
1607
2009
|
This operation does not require authentication
|
|
1608
2010
|
</aside>
|
|
1609
2011
|
|
|
1610
|
-
##
|
|
2012
|
+
## post__api_v1_account_admin_saveApplication
|
|
1611
2013
|
|
|
1612
|
-
`POST /api/v1/account/admin/
|
|
2014
|
+
`POST /api/v1/account/admin/saveApplication`
|
|
2015
|
+
|
|
2016
|
+
*修改应用*
|
|
1613
2017
|
|
|
1614
2018
|
> Body parameter
|
|
1615
2019
|
|
|
@@ -1617,26 +2021,16 @@ This operation does not require authentication
|
|
|
1617
2021
|
{
|
|
1618
2022
|
"type": "object",
|
|
1619
2023
|
"required": [
|
|
1620
|
-
"
|
|
1621
|
-
"name"
|
|
2024
|
+
"id",
|
|
2025
|
+
"name",
|
|
2026
|
+
"code"
|
|
1622
2027
|
],
|
|
1623
2028
|
"properties": {
|
|
1624
|
-
"
|
|
2029
|
+
"id": {
|
|
1625
2030
|
"type": "string"
|
|
1626
2031
|
},
|
|
1627
|
-
"
|
|
1628
|
-
"type": "
|
|
1629
|
-
"items": {
|
|
1630
|
-
"type": "number"
|
|
1631
|
-
},
|
|
1632
|
-
"default": []
|
|
1633
|
-
},
|
|
1634
|
-
"orgIds": {
|
|
1635
|
-
"type": "array",
|
|
1636
|
-
"items": {
|
|
1637
|
-
"type": "number"
|
|
1638
|
-
},
|
|
1639
|
-
"default": []
|
|
2032
|
+
"url": {
|
|
2033
|
+
"type": "string"
|
|
1640
2034
|
},
|
|
1641
2035
|
"name": {
|
|
1642
2036
|
"type": "string"
|
|
@@ -1644,10 +2038,7 @@ This operation does not require authentication
|
|
|
1644
2038
|
"avatar": {
|
|
1645
2039
|
"type": "string"
|
|
1646
2040
|
},
|
|
1647
|
-
"
|
|
1648
|
-
"type": "string"
|
|
1649
|
-
},
|
|
1650
|
-
"email": {
|
|
2041
|
+
"code": {
|
|
1651
2042
|
"type": "string"
|
|
1652
2043
|
},
|
|
1653
2044
|
"description": {
|
|
@@ -1657,21 +2048,19 @@ This operation does not require authentication
|
|
|
1657
2048
|
}
|
|
1658
2049
|
```
|
|
1659
2050
|
|
|
1660
|
-
<h3 id="
|
|
2051
|
+
<h3 id="post__api_v1_account_admin_saveapplication-parameters">Parameters</h3>
|
|
1661
2052
|
|
|
1662
2053
|
|Name|In|Type|Required|Description|
|
|
1663
2054
|
|---|---|---|---|---|
|
|
1664
2055
|
|body|body|object|true|none|
|
|
1665
|
-
|»
|
|
1666
|
-
|»
|
|
1667
|
-
|» orgIds|body|[number]|false|none|
|
|
2056
|
+
|» id|body|string|true|none|
|
|
2057
|
+
|» url|body|string|false|none|
|
|
1668
2058
|
|» name|body|string|true|none|
|
|
1669
2059
|
|» avatar|body|string|false|none|
|
|
1670
|
-
|»
|
|
1671
|
-
|» email|body|string|false|none|
|
|
2060
|
+
|» code|body|string|true|none|
|
|
1672
2061
|
|» description|body|string|false|none|
|
|
1673
2062
|
|
|
1674
|
-
<h3 id="
|
|
2063
|
+
<h3 id="post__api_v1_account_admin_saveapplication-responses">Responses</h3>
|
|
1675
2064
|
|
|
1676
2065
|
|Status|Meaning|Description|Schema|
|
|
1677
2066
|
|---|---|---|---|
|
|
@@ -1681,9 +2070,11 @@ This operation does not require authentication
|
|
|
1681
2070
|
This operation does not require authentication
|
|
1682
2071
|
</aside>
|
|
1683
2072
|
|
|
1684
|
-
##
|
|
2073
|
+
## post__api_v1_account_admin_deleteApplication
|
|
1685
2074
|
|
|
1686
|
-
`POST /api/v1/account/admin/
|
|
2075
|
+
`POST /api/v1/account/admin/deleteApplication`
|
|
2076
|
+
|
|
2077
|
+
*删除应用*
|
|
1687
2078
|
|
|
1688
2079
|
> Body parameter
|
|
1689
2080
|
|
|
@@ -1691,29 +2082,24 @@ This operation does not require authentication
|
|
|
1691
2082
|
{
|
|
1692
2083
|
"type": "object",
|
|
1693
2084
|
"required": [
|
|
1694
|
-
"
|
|
1695
|
-
"tenantUserId"
|
|
2085
|
+
"id"
|
|
1696
2086
|
],
|
|
1697
2087
|
"properties": {
|
|
1698
|
-
"
|
|
1699
|
-
"type": "string"
|
|
1700
|
-
},
|
|
1701
|
-
"tenantUserId": {
|
|
2088
|
+
"id": {
|
|
1702
2089
|
"type": "string"
|
|
1703
2090
|
}
|
|
1704
2091
|
}
|
|
1705
2092
|
}
|
|
1706
2093
|
```
|
|
1707
2094
|
|
|
1708
|
-
<h3 id="
|
|
2095
|
+
<h3 id="post__api_v1_account_admin_deleteapplication-parameters">Parameters</h3>
|
|
1709
2096
|
|
|
1710
2097
|
|Name|In|Type|Required|Description|
|
|
1711
2098
|
|---|---|---|---|---|
|
|
1712
2099
|
|body|body|object|true|none|
|
|
1713
|
-
|»
|
|
1714
|
-
|» tenantUserId|body|string|true|none|
|
|
2100
|
+
|» id|body|string|true|none|
|
|
1715
2101
|
|
|
1716
|
-
<h3 id="
|
|
2102
|
+
<h3 id="post__api_v1_account_admin_deleteapplication-responses">Responses</h3>
|
|
1717
2103
|
|
|
1718
2104
|
|Status|Meaning|Description|Schema|
|
|
1719
2105
|
|---|---|---|---|
|
|
@@ -1723,34 +2109,19 @@ This operation does not require authentication
|
|
|
1723
2109
|
This operation does not require authentication
|
|
1724
2110
|
</aside>
|
|
1725
2111
|
|
|
1726
|
-
##
|
|
1727
|
-
|
|
1728
|
-
`POST /api/v1/account/admin/closeTenant`
|
|
2112
|
+
## get__api_v1_account_admin_getApplicationList
|
|
1729
2113
|
|
|
1730
|
-
|
|
2114
|
+
`GET /api/v1/account/admin/getApplicationList`
|
|
1731
2115
|
|
|
1732
|
-
|
|
1733
|
-
{
|
|
1734
|
-
"type": "object",
|
|
1735
|
-
"required": [
|
|
1736
|
-
"tenantId"
|
|
1737
|
-
],
|
|
1738
|
-
"properties": {
|
|
1739
|
-
"tenantId": {
|
|
1740
|
-
"type": "string"
|
|
1741
|
-
}
|
|
1742
|
-
}
|
|
1743
|
-
}
|
|
1744
|
-
```
|
|
2116
|
+
*获取应用列表*
|
|
1745
2117
|
|
|
1746
|
-
<h3 id="
|
|
2118
|
+
<h3 id="get__api_v1_account_admin_getapplicationlist-parameters">Parameters</h3>
|
|
1747
2119
|
|
|
1748
2120
|
|Name|In|Type|Required|Description|
|
|
1749
2121
|
|---|---|---|---|---|
|
|
1750
|
-
|
|
|
1751
|
-
|» tenantId|body|string|true|none|
|
|
2122
|
+
|tenantId|query|string|false|none|
|
|
1752
2123
|
|
|
1753
|
-
<h3 id="
|
|
2124
|
+
<h3 id="get__api_v1_account_admin_getapplicationlist-responses">Responses</h3>
|
|
1754
2125
|
|
|
1755
2126
|
|Status|Meaning|Description|Schema|
|
|
1756
2127
|
|---|---|---|---|
|
|
@@ -1760,9 +2131,11 @@ This operation does not require authentication
|
|
|
1760
2131
|
This operation does not require authentication
|
|
1761
2132
|
</aside>
|
|
1762
2133
|
|
|
1763
|
-
##
|
|
2134
|
+
## post__api_v1_account_admin_addPermission
|
|
1764
2135
|
|
|
1765
|
-
`POST /api/v1/account/admin/
|
|
2136
|
+
`POST /api/v1/account/admin/addPermission`
|
|
2137
|
+
|
|
2138
|
+
*添加应用权限*
|
|
1766
2139
|
|
|
1767
2140
|
> Body parameter
|
|
1768
2141
|
|
|
@@ -1770,36 +2143,168 @@ This operation does not require authentication
|
|
|
1770
2143
|
{
|
|
1771
2144
|
"type": "object",
|
|
1772
2145
|
"required": [
|
|
1773
|
-
"
|
|
2146
|
+
"applicationId",
|
|
2147
|
+
"name",
|
|
2148
|
+
"code"
|
|
1774
2149
|
],
|
|
1775
2150
|
"properties": {
|
|
1776
|
-
"
|
|
2151
|
+
"applicationId": {
|
|
2152
|
+
"type": "string"
|
|
2153
|
+
},
|
|
2154
|
+
"name": {
|
|
2155
|
+
"type": "string"
|
|
2156
|
+
},
|
|
2157
|
+
"code": {
|
|
2158
|
+
"type": "string"
|
|
2159
|
+
},
|
|
2160
|
+
"type": {
|
|
2161
|
+
"type": "number"
|
|
2162
|
+
},
|
|
2163
|
+
"isModule": {
|
|
2164
|
+
"type": "number"
|
|
2165
|
+
},
|
|
2166
|
+
"isMust": {
|
|
2167
|
+
"type": "number"
|
|
2168
|
+
},
|
|
2169
|
+
"pid": {
|
|
2170
|
+
"type": "number"
|
|
2171
|
+
},
|
|
2172
|
+
"description": {
|
|
1777
2173
|
"type": "string"
|
|
1778
2174
|
}
|
|
1779
2175
|
}
|
|
1780
2176
|
}
|
|
1781
2177
|
```
|
|
1782
2178
|
|
|
1783
|
-
<h3 id="
|
|
2179
|
+
<h3 id="post__api_v1_account_admin_addpermission-parameters">Parameters</h3>
|
|
1784
2180
|
|
|
1785
2181
|
|Name|In|Type|Required|Description|
|
|
1786
2182
|
|---|---|---|---|---|
|
|
1787
2183
|
|body|body|object|true|none|
|
|
1788
|
-
|»
|
|
2184
|
+
|» applicationId|body|string|true|none|
|
|
2185
|
+
|» name|body|string|true|none|
|
|
2186
|
+
|» code|body|string|true|none|
|
|
2187
|
+
|» type|body|number|false|none|
|
|
2188
|
+
|» isModule|body|number|false|none|
|
|
2189
|
+
|» isMust|body|number|false|none|
|
|
2190
|
+
|» pid|body|number|false|none|
|
|
2191
|
+
|» description|body|string|false|none|
|
|
2192
|
+
|
|
2193
|
+
<h3 id="post__api_v1_account_admin_addpermission-responses">Responses</h3>
|
|
2194
|
+
|
|
2195
|
+
|Status|Meaning|Description|Schema|
|
|
2196
|
+
|---|---|---|---|
|
|
2197
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
2198
|
+
|
|
2199
|
+
<aside class="success">
|
|
2200
|
+
This operation does not require authentication
|
|
2201
|
+
</aside>
|
|
2202
|
+
|
|
2203
|
+
## get__api_v1_account_admin_getPermissionList
|
|
2204
|
+
|
|
2205
|
+
`GET /api/v1/account/admin/getPermissionList`
|
|
2206
|
+
|
|
2207
|
+
*获取应用权限列表*
|
|
2208
|
+
|
|
2209
|
+
<h3 id="get__api_v1_account_admin_getpermissionlist-parameters">Parameters</h3>
|
|
2210
|
+
|
|
2211
|
+
|Name|In|Type|Required|Description|
|
|
2212
|
+
|---|---|---|---|---|
|
|
2213
|
+
|applicationId|query|string|true|none|
|
|
2214
|
+
|tenantId|query|string|false|none|
|
|
2215
|
+
|
|
2216
|
+
> Example responses
|
|
2217
|
+
|
|
2218
|
+
> 200 Response
|
|
2219
|
+
|
|
2220
|
+
```json
|
|
2221
|
+
{
|
|
2222
|
+
"type": "array",
|
|
2223
|
+
"items": {
|
|
2224
|
+
"type": "object",
|
|
2225
|
+
"properties": {
|
|
2226
|
+
"id": {
|
|
2227
|
+
"type": "number"
|
|
2228
|
+
},
|
|
2229
|
+
"code": {
|
|
2230
|
+
"type": "string"
|
|
2231
|
+
},
|
|
2232
|
+
"name": {
|
|
2233
|
+
"type": "string"
|
|
2234
|
+
},
|
|
2235
|
+
"isModule": {
|
|
2236
|
+
"type": "number"
|
|
2237
|
+
},
|
|
2238
|
+
"isMust": {
|
|
2239
|
+
"type": "number"
|
|
2240
|
+
},
|
|
2241
|
+
"type": {
|
|
2242
|
+
"type": "number"
|
|
2243
|
+
},
|
|
2244
|
+
"pid": {
|
|
2245
|
+
"type": "number"
|
|
2246
|
+
},
|
|
2247
|
+
"paths": {
|
|
2248
|
+
"type": "array",
|
|
2249
|
+
"items": {
|
|
2250
|
+
"type": "number"
|
|
2251
|
+
}
|
|
2252
|
+
},
|
|
2253
|
+
"description": {
|
|
2254
|
+
"type": "string"
|
|
2255
|
+
},
|
|
2256
|
+
"status": {
|
|
2257
|
+
"type": "number"
|
|
2258
|
+
},
|
|
2259
|
+
"createdAt": {
|
|
2260
|
+
"type": "string"
|
|
2261
|
+
},
|
|
2262
|
+
"updatedAt": {
|
|
2263
|
+
"type": "string"
|
|
2264
|
+
},
|
|
2265
|
+
"deletedAt": {
|
|
2266
|
+
"type": "string"
|
|
2267
|
+
}
|
|
2268
|
+
}
|
|
2269
|
+
}
|
|
2270
|
+
}
|
|
2271
|
+
```
|
|
1789
2272
|
|
|
1790
|
-
<h3 id="
|
|
2273
|
+
<h3 id="get__api_v1_account_admin_getpermissionlist-responses">Responses</h3>
|
|
1791
2274
|
|
|
1792
2275
|
|Status|Meaning|Description|Schema|
|
|
1793
2276
|
|---|---|---|---|
|
|
1794
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|
|
|
2277
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|Inline|
|
|
2278
|
+
|
|
2279
|
+
<h3 id="get__api_v1_account_admin_getpermissionlist-responseschema">Response Schema</h3>
|
|
2280
|
+
|
|
2281
|
+
Status Code **200**
|
|
2282
|
+
|
|
2283
|
+
|Name|Type|Required|Restrictions|Description|
|
|
2284
|
+
|---|---|---|---|---|
|
|
2285
|
+
|» id|number|false|none|none|
|
|
2286
|
+
|» code|string|false|none|none|
|
|
2287
|
+
|» name|string|false|none|none|
|
|
2288
|
+
|» isModule|number|false|none|none|
|
|
2289
|
+
|» isMust|number|false|none|none|
|
|
2290
|
+
|» type|number|false|none|none|
|
|
2291
|
+
|» pid|number|false|none|none|
|
|
2292
|
+
|» paths|[number]|false|none|none|
|
|
2293
|
+
|» description|string|false|none|none|
|
|
2294
|
+
|» status|number|false|none|none|
|
|
2295
|
+
|» createdAt|string|false|none|none|
|
|
2296
|
+
|» updatedAt|string|false|none|none|
|
|
2297
|
+
|» deletedAt|string|false|none|none|
|
|
1795
2298
|
|
|
1796
2299
|
<aside class="success">
|
|
1797
2300
|
This operation does not require authentication
|
|
1798
2301
|
</aside>
|
|
1799
2302
|
|
|
1800
|
-
##
|
|
2303
|
+
## post__api_v1_account_admin_exportPermissionList
|
|
1801
2304
|
|
|
1802
|
-
`POST /api/v1/account/admin/
|
|
2305
|
+
`POST /api/v1/account/admin/exportPermissionList`
|
|
2306
|
+
|
|
2307
|
+
*导出应用权限列表*
|
|
1803
2308
|
|
|
1804
2309
|
> Body parameter
|
|
1805
2310
|
|
|
@@ -1807,103 +2312,132 @@ This operation does not require authentication
|
|
|
1807
2312
|
{
|
|
1808
2313
|
"type": "object",
|
|
1809
2314
|
"required": [
|
|
1810
|
-
"
|
|
1811
|
-
"tenantUserId"
|
|
2315
|
+
"applicationIds"
|
|
1812
2316
|
],
|
|
1813
2317
|
"properties": {
|
|
1814
|
-
"
|
|
1815
|
-
"type": "
|
|
2318
|
+
"applicationIds": {
|
|
2319
|
+
"type": "array",
|
|
2320
|
+
"items": {
|
|
2321
|
+
"type": "string"
|
|
2322
|
+
}
|
|
1816
2323
|
},
|
|
1817
|
-
"
|
|
2324
|
+
"tenantId": {
|
|
1818
2325
|
"type": "string"
|
|
1819
2326
|
}
|
|
1820
2327
|
}
|
|
1821
2328
|
}
|
|
1822
2329
|
```
|
|
1823
2330
|
|
|
1824
|
-
<h3 id="
|
|
2331
|
+
<h3 id="post__api_v1_account_admin_exportpermissionlist-parameters">Parameters</h3>
|
|
1825
2332
|
|
|
1826
2333
|
|Name|In|Type|Required|Description|
|
|
1827
2334
|
|---|---|---|---|---|
|
|
1828
2335
|
|body|body|object|true|none|
|
|
1829
|
-
|»
|
|
1830
|
-
|»
|
|
2336
|
+
|» applicationIds|body|[string]|true|none|
|
|
2337
|
+
|» tenantId|body|string|false|none|
|
|
1831
2338
|
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|Status|Meaning|Description|Schema|
|
|
1835
|
-
|---|---|---|---|
|
|
1836
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1837
|
-
|
|
1838
|
-
<aside class="success">
|
|
1839
|
-
This operation does not require authentication
|
|
1840
|
-
</aside>
|
|
1841
|
-
|
|
1842
|
-
## post__api_v1_account_admin_openTenantUser
|
|
1843
|
-
|
|
1844
|
-
`POST /api/v1/account/admin/openTenantUser`
|
|
2339
|
+
> Example responses
|
|
1845
2340
|
|
|
1846
|
-
>
|
|
2341
|
+
> 200 Response
|
|
1847
2342
|
|
|
1848
2343
|
```json
|
|
1849
2344
|
{
|
|
1850
|
-
"type": "
|
|
1851
|
-
"
|
|
1852
|
-
"
|
|
1853
|
-
"
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
"
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
"
|
|
2345
|
+
"type": "array",
|
|
2346
|
+
"items": {
|
|
2347
|
+
"type": "object",
|
|
2348
|
+
"properties": {
|
|
2349
|
+
"code": {
|
|
2350
|
+
"type": "string"
|
|
2351
|
+
},
|
|
2352
|
+
"name": {
|
|
2353
|
+
"type": "string"
|
|
2354
|
+
},
|
|
2355
|
+
"url": {
|
|
2356
|
+
"type": "string"
|
|
2357
|
+
},
|
|
2358
|
+
"description": {
|
|
2359
|
+
"type": "string"
|
|
2360
|
+
},
|
|
2361
|
+
"status": {
|
|
2362
|
+
"type": "number"
|
|
2363
|
+
},
|
|
2364
|
+
"permissions": {
|
|
2365
|
+
"type": "array",
|
|
2366
|
+
"items": {
|
|
2367
|
+
"type": "object",
|
|
2368
|
+
"properties": {
|
|
2369
|
+
"id": {
|
|
2370
|
+
"type": "number"
|
|
2371
|
+
},
|
|
2372
|
+
"code": {
|
|
2373
|
+
"type": "string"
|
|
2374
|
+
},
|
|
2375
|
+
"name": {
|
|
2376
|
+
"type": "string"
|
|
2377
|
+
},
|
|
2378
|
+
"isModule": {
|
|
2379
|
+
"type": "number"
|
|
2380
|
+
},
|
|
2381
|
+
"isMust": {
|
|
2382
|
+
"type": "number"
|
|
2383
|
+
},
|
|
2384
|
+
"type": {
|
|
2385
|
+
"type": "number"
|
|
2386
|
+
},
|
|
2387
|
+
"pid": {
|
|
2388
|
+
"type": "number"
|
|
2389
|
+
},
|
|
2390
|
+
"description": {
|
|
2391
|
+
"type": "string"
|
|
2392
|
+
},
|
|
2393
|
+
"status": {
|
|
2394
|
+
"type": "number"
|
|
2395
|
+
}
|
|
2396
|
+
}
|
|
2397
|
+
}
|
|
2398
|
+
}
|
|
1861
2399
|
}
|
|
1862
2400
|
}
|
|
1863
2401
|
}
|
|
1864
2402
|
```
|
|
1865
2403
|
|
|
1866
|
-
<h3 id="
|
|
1867
|
-
|
|
1868
|
-
|Name|In|Type|Required|Description|
|
|
1869
|
-
|---|---|---|---|---|
|
|
1870
|
-
|body|body|object|true|none|
|
|
1871
|
-
|» tenantId|body|string|true|none|
|
|
1872
|
-
|» tenantUserId|body|string|true|none|
|
|
1873
|
-
|
|
1874
|
-
<h3 id="post__api_v1_account_admin_opentenantuser-responses">Responses</h3>
|
|
2404
|
+
<h3 id="post__api_v1_account_admin_exportpermissionlist-responses">Responses</h3>
|
|
1875
2405
|
|
|
1876
2406
|
|Status|Meaning|Description|Schema|
|
|
1877
2407
|
|---|---|---|---|
|
|
1878
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|
|
|
1879
|
-
|
|
1880
|
-
<aside class="success">
|
|
1881
|
-
This operation does not require authentication
|
|
1882
|
-
</aside>
|
|
1883
|
-
|
|
1884
|
-
## get__api_v1_account_admin_getInviteList
|
|
2408
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|Inline|
|
|
1885
2409
|
|
|
1886
|
-
|
|
2410
|
+
<h3 id="post__api_v1_account_admin_exportpermissionlist-responseschema">Response Schema</h3>
|
|
1887
2411
|
|
|
1888
|
-
|
|
2412
|
+
Status Code **200**
|
|
1889
2413
|
|
|
1890
|
-
|Name|
|
|
2414
|
+
|Name|Type|Required|Restrictions|Description|
|
|
1891
2415
|
|---|---|---|---|---|
|
|
1892
|
-
|
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
|
1897
|
-
|
|
1898
|
-
|
|
|
2416
|
+
|» code|string|false|none|none|
|
|
2417
|
+
|» name|string|false|none|none|
|
|
2418
|
+
|» url|string|false|none|none|
|
|
2419
|
+
|» description|string|false|none|none|
|
|
2420
|
+
|» status|number|false|none|none|
|
|
2421
|
+
|» permissions|[object]|false|none|none|
|
|
2422
|
+
|»» id|number|false|none|none|
|
|
2423
|
+
|»» code|string|false|none|none|
|
|
2424
|
+
|»» name|string|false|none|none|
|
|
2425
|
+
|»» isModule|number|false|none|none|
|
|
2426
|
+
|»» isMust|number|false|none|none|
|
|
2427
|
+
|»» type|number|false|none|none|
|
|
2428
|
+
|»» pid|number|false|none|none|
|
|
2429
|
+
|»» description|string|false|none|none|
|
|
2430
|
+
|»» status|number|false|none|none|
|
|
1899
2431
|
|
|
1900
2432
|
<aside class="success">
|
|
1901
2433
|
This operation does not require authentication
|
|
1902
2434
|
</aside>
|
|
1903
2435
|
|
|
1904
|
-
##
|
|
2436
|
+
## post__api_v1_account_admin_deletePermission
|
|
1905
2437
|
|
|
1906
|
-
`POST /api/v1/account/admin/
|
|
2438
|
+
`POST /api/v1/account/admin/deletePermission`
|
|
2439
|
+
|
|
2440
|
+
*删除应用权限*
|
|
1907
2441
|
|
|
1908
2442
|
> Body parameter
|
|
1909
2443
|
|
|
@@ -1911,46 +2445,24 @@ This operation does not require authentication
|
|
|
1911
2445
|
{
|
|
1912
2446
|
"type": "object",
|
|
1913
2447
|
"required": [
|
|
1914
|
-
"
|
|
2448
|
+
"id"
|
|
1915
2449
|
],
|
|
1916
2450
|
"properties": {
|
|
1917
|
-
"
|
|
2451
|
+
"id": {
|
|
1918
2452
|
"type": "string"
|
|
1919
|
-
},
|
|
1920
|
-
"info": {
|
|
1921
|
-
"type": "object",
|
|
1922
|
-
"properties": {
|
|
1923
|
-
"roleIds": {
|
|
1924
|
-
"type": "array",
|
|
1925
|
-
"items": {
|
|
1926
|
-
"type": "number"
|
|
1927
|
-
},
|
|
1928
|
-
"default": []
|
|
1929
|
-
},
|
|
1930
|
-
"orgIds": {
|
|
1931
|
-
"type": "array",
|
|
1932
|
-
"items": {
|
|
1933
|
-
"type": "number"
|
|
1934
|
-
},
|
|
1935
|
-
"default": []
|
|
1936
|
-
}
|
|
1937
|
-
}
|
|
1938
2453
|
}
|
|
1939
2454
|
}
|
|
1940
2455
|
}
|
|
1941
2456
|
```
|
|
1942
2457
|
|
|
1943
|
-
<h3 id="
|
|
2458
|
+
<h3 id="post__api_v1_account_admin_deletepermission-parameters">Parameters</h3>
|
|
1944
2459
|
|
|
1945
2460
|
|Name|In|Type|Required|Description|
|
|
1946
2461
|
|---|---|---|---|---|
|
|
1947
2462
|
|body|body|object|true|none|
|
|
1948
|
-
|»
|
|
1949
|
-
|» info|body|object|false|none|
|
|
1950
|
-
|»» roleIds|body|[number]|false|none|
|
|
1951
|
-
|»» orgIds|body|[number]|false|none|
|
|
2463
|
+
|» id|body|string|true|none|
|
|
1952
2464
|
|
|
1953
|
-
<h3 id="
|
|
2465
|
+
<h3 id="post__api_v1_account_admin_deletepermission-responses">Responses</h3>
|
|
1954
2466
|
|
|
1955
2467
|
|Status|Meaning|Description|Schema|
|
|
1956
2468
|
|---|---|---|---|
|
|
@@ -1960,9 +2472,11 @@ This operation does not require authentication
|
|
|
1960
2472
|
This operation does not require authentication
|
|
1961
2473
|
</aside>
|
|
1962
2474
|
|
|
1963
|
-
##
|
|
2475
|
+
## post__api_v1_account_admin_savePermission
|
|
1964
2476
|
|
|
1965
|
-
`POST /api/v1/account/admin/
|
|
2477
|
+
`POST /api/v1/account/admin/savePermission`
|
|
2478
|
+
|
|
2479
|
+
*修改应用权限*
|
|
1966
2480
|
|
|
1967
2481
|
> Body parameter
|
|
1968
2482
|
|
|
@@ -1974,34 +2488,36 @@ This operation does not require authentication
|
|
|
1974
2488
|
],
|
|
1975
2489
|
"properties": {
|
|
1976
2490
|
"id": {
|
|
2491
|
+
"type": "string"
|
|
2492
|
+
},
|
|
2493
|
+
"name": {
|
|
2494
|
+
"type": "string"
|
|
2495
|
+
},
|
|
2496
|
+
"type": {
|
|
1977
2497
|
"type": "number"
|
|
2498
|
+
},
|
|
2499
|
+
"isMust": {
|
|
2500
|
+
"type": "number"
|
|
2501
|
+
},
|
|
2502
|
+
"description": {
|
|
2503
|
+
"type": "string"
|
|
1978
2504
|
}
|
|
1979
2505
|
}
|
|
1980
2506
|
}
|
|
1981
2507
|
```
|
|
1982
2508
|
|
|
1983
|
-
<h3 id="
|
|
2509
|
+
<h3 id="post__api_v1_account_admin_savepermission-parameters">Parameters</h3>
|
|
1984
2510
|
|
|
1985
2511
|
|Name|In|Type|Required|Description|
|
|
1986
2512
|
|---|---|---|---|---|
|
|
1987
2513
|
|body|body|object|true|none|
|
|
1988
|
-
|» id|body|
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
|
1993
|
-
|---|---|---|---|
|
|
1994
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1995
|
-
|
|
1996
|
-
<aside class="success">
|
|
1997
|
-
This operation does not require authentication
|
|
1998
|
-
</aside>
|
|
1999
|
-
|
|
2000
|
-
## get__api_v1_account_tenant_getUserTenant
|
|
2001
|
-
|
|
2002
|
-
`GET /api/v1/account/tenant/getUserTenant`
|
|
2514
|
+
|» id|body|string|true|none|
|
|
2515
|
+
|» name|body|string|false|none|
|
|
2516
|
+
|» type|body|number|false|none|
|
|
2517
|
+
|» isMust|body|number|false|none|
|
|
2518
|
+
|» description|body|string|false|none|
|
|
2003
2519
|
|
|
2004
|
-
<h3 id="
|
|
2520
|
+
<h3 id="post__api_v1_account_admin_savepermission-responses">Responses</h3>
|
|
2005
2521
|
|
|
2006
2522
|
|Status|Meaning|Description|Schema|
|
|
2007
2523
|
|---|---|---|---|
|
|
@@ -2011,47 +2527,19 @@ This operation does not require authentication
|
|
|
2011
2527
|
This operation does not require authentication
|
|
2012
2528
|
</aside>
|
|
2013
2529
|
|
|
2014
|
-
##
|
|
2015
|
-
|
|
2016
|
-
`GET /api/v1/account/tenant/getTenantUserInfo`
|
|
2017
|
-
|
|
2018
|
-
<h3 id="get__api_v1_account_tenant_gettenantuserinfo-responses">Responses</h3>
|
|
2019
|
-
|
|
2020
|
-
|Status|Meaning|Description|Schema|
|
|
2021
|
-
|---|---|---|---|
|
|
2022
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
2023
|
-
|
|
2024
|
-
<aside class="success">
|
|
2025
|
-
This operation does not require authentication
|
|
2026
|
-
</aside>
|
|
2530
|
+
## get__api_v1_account_admin_getTenantPermissionList
|
|
2027
2531
|
|
|
2028
|
-
|
|
2532
|
+
`GET /api/v1/account/admin/getTenantPermissionList`
|
|
2029
2533
|
|
|
2030
|
-
|
|
2534
|
+
*获取租户应用权限配置*
|
|
2031
2535
|
|
|
2032
|
-
<h3 id="
|
|
2536
|
+
<h3 id="get__api_v1_account_admin_gettenantpermissionlist-parameters">Parameters</h3>
|
|
2033
2537
|
|
|
2034
2538
|
|Name|In|Type|Required|Description|
|
|
2035
2539
|
|---|---|---|---|---|
|
|
2036
|
-
|
|
|
2037
|
-
|currentPage|query|number|false|none|
|
|
2038
|
-
|perPage|query|number|false|none|
|
|
2039
|
-
|
|
2040
|
-
<h3 id="get__api_v1_account_tenant_gettenantuserlist-responses">Responses</h3>
|
|
2041
|
-
|
|
2042
|
-
|Status|Meaning|Description|Schema|
|
|
2043
|
-
|---|---|---|---|
|
|
2044
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
2045
|
-
|
|
2046
|
-
<aside class="success">
|
|
2047
|
-
This operation does not require authentication
|
|
2048
|
-
</aside>
|
|
2049
|
-
|
|
2050
|
-
## get__api_v1_account_tenant_orgList
|
|
2051
|
-
|
|
2052
|
-
`GET /api/v1/account/tenant/orgList`
|
|
2540
|
+
|tenantId|query|string|true|none|
|
|
2053
2541
|
|
|
2054
|
-
<h3 id="
|
|
2542
|
+
<h3 id="get__api_v1_account_admin_gettenantpermissionlist-responses">Responses</h3>
|
|
2055
2543
|
|
|
2056
2544
|
|Status|Meaning|Description|Schema|
|
|
2057
2545
|
|---|---|---|---|
|
|
@@ -2061,23 +2549,11 @@ This operation does not require authentication
|
|
|
2061
2549
|
This operation does not require authentication
|
|
2062
2550
|
</aside>
|
|
2063
2551
|
|
|
2064
|
-
##
|
|
2065
|
-
|
|
2066
|
-
`GET /api/v1/account/getUserInfo`
|
|
2067
|
-
|
|
2068
|
-
<h3 id="get__api_v1_account_getuserinfo-responses">Responses</h3>
|
|
2069
|
-
|
|
2070
|
-
|Status|Meaning|Description|Schema|
|
|
2071
|
-
|---|---|---|---|
|
|
2072
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
2073
|
-
|
|
2074
|
-
<aside class="success">
|
|
2075
|
-
This operation does not require authentication
|
|
2076
|
-
</aside>
|
|
2552
|
+
## post__api_v1_account_admin_saveTenantPermissionList
|
|
2077
2553
|
|
|
2078
|
-
|
|
2554
|
+
`POST /api/v1/account/admin/saveTenantPermissionList`
|
|
2079
2555
|
|
|
2080
|
-
|
|
2556
|
+
*修改租户应用权限配置*
|
|
2081
2557
|
|
|
2082
2558
|
> Body parameter
|
|
2083
2559
|
|
|
@@ -2085,24 +2561,40 @@ This operation does not require authentication
|
|
|
2085
2561
|
{
|
|
2086
2562
|
"type": "object",
|
|
2087
2563
|
"required": [
|
|
2088
|
-
"tenantId"
|
|
2564
|
+
"tenantId",
|
|
2565
|
+
"applications",
|
|
2566
|
+
"permissions"
|
|
2089
2567
|
],
|
|
2090
2568
|
"properties": {
|
|
2091
2569
|
"tenantId": {
|
|
2092
2570
|
"type": "string"
|
|
2571
|
+
},
|
|
2572
|
+
"applications": {
|
|
2573
|
+
"type": "array",
|
|
2574
|
+
"items": {
|
|
2575
|
+
"type": "string"
|
|
2576
|
+
}
|
|
2577
|
+
},
|
|
2578
|
+
"permissions": {
|
|
2579
|
+
"type": "array",
|
|
2580
|
+
"items": {
|
|
2581
|
+
"type": "number"
|
|
2582
|
+
}
|
|
2093
2583
|
}
|
|
2094
2584
|
}
|
|
2095
2585
|
}
|
|
2096
2586
|
```
|
|
2097
2587
|
|
|
2098
|
-
<h3 id="
|
|
2588
|
+
<h3 id="post__api_v1_account_admin_savetenantpermissionlist-parameters">Parameters</h3>
|
|
2099
2589
|
|
|
2100
2590
|
|Name|In|Type|Required|Description|
|
|
2101
2591
|
|---|---|---|---|---|
|
|
2102
2592
|
|body|body|object|true|none|
|
|
2103
2593
|
|» tenantId|body|string|true|none|
|
|
2594
|
+
|» applications|body|[string]|true|none|
|
|
2595
|
+
|» permissions|body|[number]|true|none|
|
|
2104
2596
|
|
|
2105
|
-
<h3 id="
|
|
2597
|
+
<h3 id="post__api_v1_account_admin_savetenantpermissionlist-responses">Responses</h3>
|
|
2106
2598
|
|
|
2107
2599
|
|Status|Meaning|Description|Schema|
|
|
2108
2600
|
|---|---|---|---|
|