@kne/fastify-account 1.0.0-alpha.17 → 1.0.0-alpha.18
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 +1171 -335
- package/index.js +29 -3
- package/libs/controllers/account.js +12 -26
- package/libs/controllers/adminTenant.js +27 -259
- package/libs/controllers/adminTenantOrg.js +71 -0
- package/libs/controllers/adminTenantUser.js +168 -0
- package/libs/controllers/tenant.js +0 -46
- package/libs/controllers/tenantOrg.js +65 -0
- package/libs/controllers/tenantRole.js +219 -0
- package/libs/controllers/tenantUser.js +169 -0
- package/libs/models/company-info.js +25 -0
- package/libs/models/login-log.js +7 -1
- package/libs/models/request-log.js +27 -0
- package/libs/services/account.js +34 -42
- package/libs/services/application.js +4 -1
- package/libs/services/permission.js +24 -5
- package/libs/services/request-log.js +19 -0
- package/libs/services/tenant-org.js +20 -7
- package/libs/services/tenant-role.js +10 -2
- package/libs/services/tenant-user.js +16 -4
- package/libs/services/user.js +34 -1
- package/package.json +1 -1
- /package/libs/controllers/{adminRole.js → adminTenantRole.js} +0 -0
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.17"
|
|
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.17</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
|
|
|
@@ -64,20 +64,21 @@ fastify的用户管理账号等实现
|
|
|
64
64
|
This operation does not require authentication
|
|
65
65
|
</aside>
|
|
66
66
|
|
|
67
|
-
##
|
|
67
|
+
## get__api_v1_account_admin_getAllTenantList
|
|
68
68
|
|
|
69
|
-
`GET /api/v1/account/admin/
|
|
69
|
+
`GET /api/v1/account/admin/getAllTenantList`
|
|
70
70
|
|
|
71
|
-
<h3 id="
|
|
71
|
+
<h3 id="get__api_v1_account_admin_getalltenantlist-parameters">Parameters</h3>
|
|
72
72
|
|
|
73
73
|
|Name|In|Type|Required|Description|
|
|
74
74
|
|---|---|---|---|---|
|
|
75
|
-
|
|
|
75
|
+
|name|query|string|false|none|
|
|
76
|
+
|serviceStartTime|query|string(date-time)|false|none|
|
|
77
|
+
|serviceEndTime|query|string(date-time)|false|none|
|
|
76
78
|
|perPage|query|number|false|none|
|
|
77
79
|
|currentPage|query|number|false|none|
|
|
78
|
-
|filter|query|object|false|none|
|
|
79
80
|
|
|
80
|
-
<h3 id="
|
|
81
|
+
<h3 id="get__api_v1_account_admin_getalltenantlist-responses">Responses</h3>
|
|
81
82
|
|
|
82
83
|
|Status|Meaning|Description|Schema|
|
|
83
84
|
|---|---|---|---|
|
|
@@ -87,43 +88,17 @@ This operation does not require authentication
|
|
|
87
88
|
This operation does not require authentication
|
|
88
89
|
</aside>
|
|
89
90
|
|
|
90
|
-
##
|
|
91
|
-
|
|
92
|
-
`POST /api/v1/account/admin/addRole`
|
|
93
|
-
|
|
94
|
-
> Body parameter
|
|
91
|
+
## get__api_v1_account_admin_getTenantInfo
|
|
95
92
|
|
|
96
|
-
|
|
97
|
-
{
|
|
98
|
-
"type": "object",
|
|
99
|
-
"required": [
|
|
100
|
-
"tenantId",
|
|
101
|
-
"name"
|
|
102
|
-
],
|
|
103
|
-
"properties": {
|
|
104
|
-
"tenantId": {
|
|
105
|
-
"type": "string"
|
|
106
|
-
},
|
|
107
|
-
"name": {
|
|
108
|
-
"type": "string"
|
|
109
|
-
},
|
|
110
|
-
"description": {
|
|
111
|
-
"type": "string"
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
```
|
|
93
|
+
`GET /api/v1/account/admin/getTenantInfo`
|
|
116
94
|
|
|
117
|
-
<h3 id="
|
|
95
|
+
<h3 id="get__api_v1_account_admin_gettenantinfo-parameters">Parameters</h3>
|
|
118
96
|
|
|
119
97
|
|Name|In|Type|Required|Description|
|
|
120
98
|
|---|---|---|---|---|
|
|
121
|
-
|
|
|
122
|
-
|» tenantId|body|string|true|none|
|
|
123
|
-
|» name|body|string|true|none|
|
|
124
|
-
|» description|body|string|false|none|
|
|
99
|
+
|id|query|string|false|none|
|
|
125
100
|
|
|
126
|
-
<h3 id="
|
|
101
|
+
<h3 id="get__api_v1_account_admin_gettenantinfo-responses">Responses</h3>
|
|
127
102
|
|
|
128
103
|
|Status|Meaning|Description|Schema|
|
|
129
104
|
|---|---|---|---|
|
|
@@ -133,9 +108,9 @@ This operation does not require authentication
|
|
|
133
108
|
This operation does not require authentication
|
|
134
109
|
</aside>
|
|
135
110
|
|
|
136
|
-
##
|
|
111
|
+
## post__api_v1_account_admin_closeTenant
|
|
137
112
|
|
|
138
|
-
`POST /api/v1/account/admin/
|
|
113
|
+
`POST /api/v1/account/admin/closeTenant`
|
|
139
114
|
|
|
140
115
|
> Body parameter
|
|
141
116
|
|
|
@@ -143,33 +118,24 @@ This operation does not require authentication
|
|
|
143
118
|
{
|
|
144
119
|
"type": "object",
|
|
145
120
|
"required": [
|
|
146
|
-
"
|
|
147
|
-
"id"
|
|
121
|
+
"tenantId"
|
|
148
122
|
],
|
|
149
123
|
"properties": {
|
|
150
|
-
"
|
|
151
|
-
"type": "number"
|
|
152
|
-
},
|
|
153
|
-
"name": {
|
|
154
|
-
"type": "string"
|
|
155
|
-
},
|
|
156
|
-
"description": {
|
|
124
|
+
"tenantId": {
|
|
157
125
|
"type": "string"
|
|
158
126
|
}
|
|
159
127
|
}
|
|
160
128
|
}
|
|
161
129
|
```
|
|
162
130
|
|
|
163
|
-
<h3 id="
|
|
131
|
+
<h3 id="post__api_v1_account_admin_closetenant-parameters">Parameters</h3>
|
|
164
132
|
|
|
165
133
|
|Name|In|Type|Required|Description|
|
|
166
134
|
|---|---|---|---|---|
|
|
167
135
|
|body|body|object|true|none|
|
|
168
|
-
|»
|
|
169
|
-
|» name|body|string|true|none|
|
|
170
|
-
|» description|body|string|false|none|
|
|
136
|
+
|» tenantId|body|string|true|none|
|
|
171
137
|
|
|
172
|
-
<h3 id="
|
|
138
|
+
<h3 id="post__api_v1_account_admin_closetenant-responses">Responses</h3>
|
|
173
139
|
|
|
174
140
|
|Status|Meaning|Description|Schema|
|
|
175
141
|
|---|---|---|---|
|
|
@@ -179,9 +145,9 @@ This operation does not require authentication
|
|
|
179
145
|
This operation does not require authentication
|
|
180
146
|
</aside>
|
|
181
147
|
|
|
182
|
-
##
|
|
148
|
+
## post__api_v1_account_admin_openTenant
|
|
183
149
|
|
|
184
|
-
`POST /api/v1/account/admin/
|
|
150
|
+
`POST /api/v1/account/admin/openTenant`
|
|
185
151
|
|
|
186
152
|
> Body parameter
|
|
187
153
|
|
|
@@ -189,102 +155,24 @@ This operation does not require authentication
|
|
|
189
155
|
{
|
|
190
156
|
"type": "object",
|
|
191
157
|
"required": [
|
|
192
|
-
"
|
|
158
|
+
"tenantId"
|
|
193
159
|
],
|
|
194
160
|
"properties": {
|
|
195
|
-
"
|
|
196
|
-
"type": "
|
|
161
|
+
"tenantId": {
|
|
162
|
+
"type": "string"
|
|
197
163
|
}
|
|
198
164
|
}
|
|
199
165
|
}
|
|
200
166
|
```
|
|
201
167
|
|
|
202
|
-
<h3 id="
|
|
168
|
+
<h3 id="post__api_v1_account_admin_opentenant-parameters">Parameters</h3>
|
|
203
169
|
|
|
204
170
|
|Name|In|Type|Required|Description|
|
|
205
171
|
|---|---|---|---|---|
|
|
206
172
|
|body|body|object|true|none|
|
|
207
|
-
|»
|
|
208
|
-
|
|
209
|
-
<h3 id="post__api_v1_account_admin_removerole-responses">Responses</h3>
|
|
210
|
-
|
|
211
|
-
|Status|Meaning|Description|Schema|
|
|
212
|
-
|---|---|---|---|
|
|
213
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
214
|
-
|
|
215
|
-
<aside class="success">
|
|
216
|
-
This operation does not require authentication
|
|
217
|
-
</aside>
|
|
218
|
-
|
|
219
|
-
## get__api_v1_account_admin_getRolePermissionList
|
|
220
|
-
|
|
221
|
-
`GET /api/v1/account/admin/getRolePermissionList`
|
|
222
|
-
|
|
223
|
-
<h3 id="get__api_v1_account_admin_getrolepermissionlist-parameters">Parameters</h3>
|
|
224
|
-
|
|
225
|
-
|Name|In|Type|Required|Description|
|
|
226
|
-
|---|---|---|---|---|
|
|
227
|
-
|id|query|number|true|none|
|
|
228
|
-
|
|
229
|
-
<h3 id="get__api_v1_account_admin_getrolepermissionlist-responses">Responses</h3>
|
|
230
|
-
|
|
231
|
-
|Status|Meaning|Description|Schema|
|
|
232
|
-
|---|---|---|---|
|
|
233
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
234
|
-
|
|
235
|
-
<aside class="success">
|
|
236
|
-
This operation does not require authentication
|
|
237
|
-
</aside>
|
|
238
|
-
|
|
239
|
-
## post__api_v1_account_admin_saveRolePermissionList
|
|
240
|
-
|
|
241
|
-
`POST /api/v1/account/admin/saveRolePermissionList`
|
|
242
|
-
|
|
243
|
-
<h3 id="post__api_v1_account_admin_saverolepermissionlist-responses">Responses</h3>
|
|
244
|
-
|
|
245
|
-
|Status|Meaning|Description|Schema|
|
|
246
|
-
|---|---|---|---|
|
|
247
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
248
|
-
|
|
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>
|
|
258
|
-
|
|
259
|
-
|Name|In|Type|Required|Description|
|
|
260
|
-
|---|---|---|---|---|
|
|
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|
|
|
266
|
-
|
|
267
|
-
<h3 id="get__api_v1_account_admin_getalltenantlist-responses">Responses</h3>
|
|
268
|
-
|
|
269
|
-
|Status|Meaning|Description|Schema|
|
|
270
|
-
|---|---|---|---|
|
|
271
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
272
|
-
|
|
273
|
-
<aside class="success">
|
|
274
|
-
This operation does not require authentication
|
|
275
|
-
</aside>
|
|
276
|
-
|
|
277
|
-
## get__api_v1_account_admin_getTenantInfo
|
|
278
|
-
|
|
279
|
-
`GET /api/v1/account/admin/getTenantInfo`
|
|
280
|
-
|
|
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|
|
|
173
|
+
|» tenantId|body|string|true|none|
|
|
286
174
|
|
|
287
|
-
<h3 id="
|
|
175
|
+
<h3 id="post__api_v1_account_admin_opentenant-responses">Responses</h3>
|
|
288
176
|
|
|
289
177
|
|Status|Meaning|Description|Schema|
|
|
290
178
|
|---|---|---|---|
|
|
@@ -407,11 +295,17 @@ This operation does not require authentication
|
|
|
407
295
|
This operation does not require authentication
|
|
408
296
|
</aside>
|
|
409
297
|
|
|
410
|
-
##
|
|
298
|
+
## get__api_v1_account_admin_getInviteList
|
|
411
299
|
|
|
412
|
-
`
|
|
300
|
+
`GET /api/v1/account/admin/getInviteList`
|
|
413
301
|
|
|
414
|
-
<h3 id="
|
|
302
|
+
<h3 id="get__api_v1_account_admin_getinvitelist-parameters">Parameters</h3>
|
|
303
|
+
|
|
304
|
+
|Name|In|Type|Required|Description|
|
|
305
|
+
|---|---|---|---|---|
|
|
306
|
+
|tenantId|query|string|true|none|
|
|
307
|
+
|
|
308
|
+
<h3 id="get__api_v1_account_admin_getinvitelist-responses">Responses</h3>
|
|
415
309
|
|
|
416
310
|
|Status|Meaning|Description|Schema|
|
|
417
311
|
|---|---|---|---|
|
|
@@ -421,17 +315,56 @@ This operation does not require authentication
|
|
|
421
315
|
This operation does not require authentication
|
|
422
316
|
</aside>
|
|
423
317
|
|
|
424
|
-
##
|
|
318
|
+
## post__api_v1_account_admin_addInviteToken
|
|
425
319
|
|
|
426
|
-
`
|
|
320
|
+
`POST /api/v1/account/admin/addInviteToken`
|
|
427
321
|
|
|
428
|
-
|
|
322
|
+
> Body parameter
|
|
323
|
+
|
|
324
|
+
```json
|
|
325
|
+
{
|
|
326
|
+
"type": "object",
|
|
327
|
+
"required": [
|
|
328
|
+
"tenantId"
|
|
329
|
+
],
|
|
330
|
+
"properties": {
|
|
331
|
+
"tenantId": {
|
|
332
|
+
"type": "string"
|
|
333
|
+
},
|
|
334
|
+
"info": {
|
|
335
|
+
"type": "object",
|
|
336
|
+
"properties": {
|
|
337
|
+
"roleIds": {
|
|
338
|
+
"type": "array",
|
|
339
|
+
"items": {
|
|
340
|
+
"type": "number"
|
|
341
|
+
},
|
|
342
|
+
"default": []
|
|
343
|
+
},
|
|
344
|
+
"orgIds": {
|
|
345
|
+
"type": "array",
|
|
346
|
+
"items": {
|
|
347
|
+
"type": "number"
|
|
348
|
+
},
|
|
349
|
+
"default": []
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
<h3 id="post__api_v1_account_admin_addinvitetoken-parameters">Parameters</h3>
|
|
429
358
|
|
|
430
359
|
|Name|In|Type|Required|Description|
|
|
431
360
|
|---|---|---|---|---|
|
|
432
|
-
|
|
|
361
|
+
|body|body|object|true|none|
|
|
362
|
+
|» tenantId|body|string|true|none|
|
|
363
|
+
|» info|body|object|false|none|
|
|
364
|
+
|»» roleIds|body|[number]|false|none|
|
|
365
|
+
|»» orgIds|body|[number]|false|none|
|
|
433
366
|
|
|
434
|
-
<h3 id="
|
|
367
|
+
<h3 id="post__api_v1_account_admin_addinvitetoken-responses">Responses</h3>
|
|
435
368
|
|
|
436
369
|
|Status|Meaning|Description|Schema|
|
|
437
370
|
|---|---|---|---|
|
|
@@ -441,11 +374,82 @@ This operation does not require authentication
|
|
|
441
374
|
This operation does not require authentication
|
|
442
375
|
</aside>
|
|
443
376
|
|
|
444
|
-
##
|
|
377
|
+
## post__api_v1_account_admin_deleteInviteToken
|
|
445
378
|
|
|
446
|
-
`POST /api/v1/account/admin/
|
|
379
|
+
`POST /api/v1/account/admin/deleteInviteToken`
|
|
447
380
|
|
|
448
|
-
|
|
381
|
+
> Body parameter
|
|
382
|
+
|
|
383
|
+
```json
|
|
384
|
+
{
|
|
385
|
+
"type": "object",
|
|
386
|
+
"required": [
|
|
387
|
+
"id"
|
|
388
|
+
],
|
|
389
|
+
"properties": {
|
|
390
|
+
"id": {
|
|
391
|
+
"type": "number"
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
```
|
|
396
|
+
|
|
397
|
+
<h3 id="post__api_v1_account_admin_deleteinvitetoken-parameters">Parameters</h3>
|
|
398
|
+
|
|
399
|
+
|Name|In|Type|Required|Description|
|
|
400
|
+
|---|---|---|---|---|
|
|
401
|
+
|body|body|object|true|none|
|
|
402
|
+
|» id|body|number|true|none|
|
|
403
|
+
|
|
404
|
+
<h3 id="post__api_v1_account_admin_deleteinvitetoken-responses">Responses</h3>
|
|
405
|
+
|
|
406
|
+
|Status|Meaning|Description|Schema|
|
|
407
|
+
|---|---|---|---|
|
|
408
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
409
|
+
|
|
410
|
+
<aside class="success">
|
|
411
|
+
This operation does not require authentication
|
|
412
|
+
</aside>
|
|
413
|
+
|
|
414
|
+
## post__api_v1_account_admin_tenant_addOrg
|
|
415
|
+
|
|
416
|
+
`POST /api/v1/account/admin/tenant/addOrg`
|
|
417
|
+
|
|
418
|
+
<h3 id="post__api_v1_account_admin_tenant_addorg-responses">Responses</h3>
|
|
419
|
+
|
|
420
|
+
|Status|Meaning|Description|Schema|
|
|
421
|
+
|---|---|---|---|
|
|
422
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
423
|
+
|
|
424
|
+
<aside class="success">
|
|
425
|
+
This operation does not require authentication
|
|
426
|
+
</aside>
|
|
427
|
+
|
|
428
|
+
## get__api_v1_account_admin_tenant_orgList
|
|
429
|
+
|
|
430
|
+
`GET /api/v1/account/admin/tenant/orgList`
|
|
431
|
+
|
|
432
|
+
<h3 id="get__api_v1_account_admin_tenant_orglist-parameters">Parameters</h3>
|
|
433
|
+
|
|
434
|
+
|Name|In|Type|Required|Description|
|
|
435
|
+
|---|---|---|---|---|
|
|
436
|
+
|id|query|string|false|none|
|
|
437
|
+
|
|
438
|
+
<h3 id="get__api_v1_account_admin_tenant_orglist-responses">Responses</h3>
|
|
439
|
+
|
|
440
|
+
|Status|Meaning|Description|Schema|
|
|
441
|
+
|---|---|---|---|
|
|
442
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
443
|
+
|
|
444
|
+
<aside class="success">
|
|
445
|
+
This operation does not require authentication
|
|
446
|
+
</aside>
|
|
447
|
+
|
|
448
|
+
## post__api_v1_account_admin_tenant_editOrg
|
|
449
|
+
|
|
450
|
+
`POST /api/v1/account/admin/tenant/editOrg`
|
|
451
|
+
|
|
452
|
+
<h3 id="post__api_v1_account_admin_tenant_editorg-responses">Responses</h3>
|
|
449
453
|
|
|
450
454
|
|Status|Meaning|Description|Schema|
|
|
451
455
|
|---|---|---|---|
|
|
@@ -469,6 +473,192 @@ This operation does not require authentication
|
|
|
469
473
|
This operation does not require authentication
|
|
470
474
|
</aside>
|
|
471
475
|
|
|
476
|
+
## get__api_v1_account_admin_getRoleList
|
|
477
|
+
|
|
478
|
+
`GET /api/v1/account/admin/getRoleList`
|
|
479
|
+
|
|
480
|
+
<h3 id="get__api_v1_account_admin_getrolelist-parameters">Parameters</h3>
|
|
481
|
+
|
|
482
|
+
|Name|In|Type|Required|Description|
|
|
483
|
+
|---|---|---|---|---|
|
|
484
|
+
|tenantId|query|string|true|none|
|
|
485
|
+
|perPage|query|number|false|none|
|
|
486
|
+
|currentPage|query|number|false|none|
|
|
487
|
+
|filter|query|object|false|none|
|
|
488
|
+
|
|
489
|
+
<h3 id="get__api_v1_account_admin_getrolelist-responses">Responses</h3>
|
|
490
|
+
|
|
491
|
+
|Status|Meaning|Description|Schema|
|
|
492
|
+
|---|---|---|---|
|
|
493
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
494
|
+
|
|
495
|
+
<aside class="success">
|
|
496
|
+
This operation does not require authentication
|
|
497
|
+
</aside>
|
|
498
|
+
|
|
499
|
+
## post__api_v1_account_admin_addRole
|
|
500
|
+
|
|
501
|
+
`POST /api/v1/account/admin/addRole`
|
|
502
|
+
|
|
503
|
+
> Body parameter
|
|
504
|
+
|
|
505
|
+
```json
|
|
506
|
+
{
|
|
507
|
+
"type": "object",
|
|
508
|
+
"required": [
|
|
509
|
+
"tenantId",
|
|
510
|
+
"name"
|
|
511
|
+
],
|
|
512
|
+
"properties": {
|
|
513
|
+
"tenantId": {
|
|
514
|
+
"type": "string"
|
|
515
|
+
},
|
|
516
|
+
"name": {
|
|
517
|
+
"type": "string"
|
|
518
|
+
},
|
|
519
|
+
"description": {
|
|
520
|
+
"type": "string"
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
```
|
|
525
|
+
|
|
526
|
+
<h3 id="post__api_v1_account_admin_addrole-parameters">Parameters</h3>
|
|
527
|
+
|
|
528
|
+
|Name|In|Type|Required|Description|
|
|
529
|
+
|---|---|---|---|---|
|
|
530
|
+
|body|body|object|true|none|
|
|
531
|
+
|» tenantId|body|string|true|none|
|
|
532
|
+
|» name|body|string|true|none|
|
|
533
|
+
|» description|body|string|false|none|
|
|
534
|
+
|
|
535
|
+
<h3 id="post__api_v1_account_admin_addrole-responses">Responses</h3>
|
|
536
|
+
|
|
537
|
+
|Status|Meaning|Description|Schema|
|
|
538
|
+
|---|---|---|---|
|
|
539
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
540
|
+
|
|
541
|
+
<aside class="success">
|
|
542
|
+
This operation does not require authentication
|
|
543
|
+
</aside>
|
|
544
|
+
|
|
545
|
+
## post__api_v1_account_admin_saveRole
|
|
546
|
+
|
|
547
|
+
`POST /api/v1/account/admin/saveRole`
|
|
548
|
+
|
|
549
|
+
> Body parameter
|
|
550
|
+
|
|
551
|
+
```json
|
|
552
|
+
{
|
|
553
|
+
"type": "object",
|
|
554
|
+
"required": [
|
|
555
|
+
"name",
|
|
556
|
+
"id"
|
|
557
|
+
],
|
|
558
|
+
"properties": {
|
|
559
|
+
"id": {
|
|
560
|
+
"type": "number"
|
|
561
|
+
},
|
|
562
|
+
"name": {
|
|
563
|
+
"type": "string"
|
|
564
|
+
},
|
|
565
|
+
"description": {
|
|
566
|
+
"type": "string"
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
```
|
|
571
|
+
|
|
572
|
+
<h3 id="post__api_v1_account_admin_saverole-parameters">Parameters</h3>
|
|
573
|
+
|
|
574
|
+
|Name|In|Type|Required|Description|
|
|
575
|
+
|---|---|---|---|---|
|
|
576
|
+
|body|body|object|true|none|
|
|
577
|
+
|» id|body|number|true|none|
|
|
578
|
+
|» name|body|string|true|none|
|
|
579
|
+
|» description|body|string|false|none|
|
|
580
|
+
|
|
581
|
+
<h3 id="post__api_v1_account_admin_saverole-responses">Responses</h3>
|
|
582
|
+
|
|
583
|
+
|Status|Meaning|Description|Schema|
|
|
584
|
+
|---|---|---|---|
|
|
585
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
586
|
+
|
|
587
|
+
<aside class="success">
|
|
588
|
+
This operation does not require authentication
|
|
589
|
+
</aside>
|
|
590
|
+
|
|
591
|
+
## post__api_v1_account_admin_removeRole
|
|
592
|
+
|
|
593
|
+
`POST /api/v1/account/admin/removeRole`
|
|
594
|
+
|
|
595
|
+
> Body parameter
|
|
596
|
+
|
|
597
|
+
```json
|
|
598
|
+
{
|
|
599
|
+
"type": "object",
|
|
600
|
+
"required": [
|
|
601
|
+
"id"
|
|
602
|
+
],
|
|
603
|
+
"properties": {
|
|
604
|
+
"id": {
|
|
605
|
+
"type": "number"
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
```
|
|
610
|
+
|
|
611
|
+
<h3 id="post__api_v1_account_admin_removerole-parameters">Parameters</h3>
|
|
612
|
+
|
|
613
|
+
|Name|In|Type|Required|Description|
|
|
614
|
+
|---|---|---|---|---|
|
|
615
|
+
|body|body|object|true|none|
|
|
616
|
+
|» id|body|number|true|none|
|
|
617
|
+
|
|
618
|
+
<h3 id="post__api_v1_account_admin_removerole-responses">Responses</h3>
|
|
619
|
+
|
|
620
|
+
|Status|Meaning|Description|Schema|
|
|
621
|
+
|---|---|---|---|
|
|
622
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
623
|
+
|
|
624
|
+
<aside class="success">
|
|
625
|
+
This operation does not require authentication
|
|
626
|
+
</aside>
|
|
627
|
+
|
|
628
|
+
## get__api_v1_account_admin_getRolePermissionList
|
|
629
|
+
|
|
630
|
+
`GET /api/v1/account/admin/getRolePermissionList`
|
|
631
|
+
|
|
632
|
+
<h3 id="get__api_v1_account_admin_getrolepermissionlist-parameters">Parameters</h3>
|
|
633
|
+
|
|
634
|
+
|Name|In|Type|Required|Description|
|
|
635
|
+
|---|---|---|---|---|
|
|
636
|
+
|id|query|number|true|none|
|
|
637
|
+
|
|
638
|
+
<h3 id="get__api_v1_account_admin_getrolepermissionlist-responses">Responses</h3>
|
|
639
|
+
|
|
640
|
+
|Status|Meaning|Description|Schema|
|
|
641
|
+
|---|---|---|---|
|
|
642
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
643
|
+
|
|
644
|
+
<aside class="success">
|
|
645
|
+
This operation does not require authentication
|
|
646
|
+
</aside>
|
|
647
|
+
|
|
648
|
+
## post__api_v1_account_admin_saveRolePermissionList
|
|
649
|
+
|
|
650
|
+
`POST /api/v1/account/admin/saveRolePermissionList`
|
|
651
|
+
|
|
652
|
+
<h3 id="post__api_v1_account_admin_saverolepermissionlist-responses">Responses</h3>
|
|
653
|
+
|
|
654
|
+
|Status|Meaning|Description|Schema|
|
|
655
|
+
|---|---|---|---|
|
|
656
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
657
|
+
|
|
658
|
+
<aside class="success">
|
|
659
|
+
This operation does not require authentication
|
|
660
|
+
</aside>
|
|
661
|
+
|
|
472
662
|
## get__api_v1_account_admin_getTenantUserList
|
|
473
663
|
|
|
474
664
|
`GET /api/v1/account/admin/getTenantUserList`
|
|
@@ -687,9 +877,9 @@ This operation does not require authentication
|
|
|
687
877
|
This operation does not require authentication
|
|
688
878
|
</aside>
|
|
689
879
|
|
|
690
|
-
##
|
|
880
|
+
## post__api_v1_account_admin_closeTenantUser
|
|
691
881
|
|
|
692
|
-
`POST /api/v1/account/admin/
|
|
882
|
+
`POST /api/v1/account/admin/closeTenantUser`
|
|
693
883
|
|
|
694
884
|
> Body parameter
|
|
695
885
|
|
|
@@ -697,24 +887,29 @@ This operation does not require authentication
|
|
|
697
887
|
{
|
|
698
888
|
"type": "object",
|
|
699
889
|
"required": [
|
|
700
|
-
"tenantId"
|
|
890
|
+
"tenantId",
|
|
891
|
+
"tenantUserId"
|
|
701
892
|
],
|
|
702
893
|
"properties": {
|
|
703
894
|
"tenantId": {
|
|
704
895
|
"type": "string"
|
|
896
|
+
},
|
|
897
|
+
"tenantUserId": {
|
|
898
|
+
"type": "string"
|
|
705
899
|
}
|
|
706
900
|
}
|
|
707
901
|
}
|
|
708
902
|
```
|
|
709
903
|
|
|
710
|
-
<h3 id="
|
|
904
|
+
<h3 id="post__api_v1_account_admin_closetenantuser-parameters">Parameters</h3>
|
|
711
905
|
|
|
712
906
|
|Name|In|Type|Required|Description|
|
|
713
907
|
|---|---|---|---|---|
|
|
714
908
|
|body|body|object|true|none|
|
|
715
909
|
|» tenantId|body|string|true|none|
|
|
910
|
+
|» tenantUserId|body|string|true|none|
|
|
716
911
|
|
|
717
|
-
<h3 id="
|
|
912
|
+
<h3 id="post__api_v1_account_admin_closetenantuser-responses">Responses</h3>
|
|
718
913
|
|
|
719
914
|
|Status|Meaning|Description|Schema|
|
|
720
915
|
|---|---|---|---|
|
|
@@ -724,9 +919,9 @@ This operation does not require authentication
|
|
|
724
919
|
This operation does not require authentication
|
|
725
920
|
</aside>
|
|
726
921
|
|
|
727
|
-
##
|
|
922
|
+
## post__api_v1_account_admin_openTenantUser
|
|
728
923
|
|
|
729
|
-
`POST /api/v1/account/admin/
|
|
924
|
+
`POST /api/v1/account/admin/openTenantUser`
|
|
730
925
|
|
|
731
926
|
> Body parameter
|
|
732
927
|
|
|
@@ -734,24 +929,29 @@ This operation does not require authentication
|
|
|
734
929
|
{
|
|
735
930
|
"type": "object",
|
|
736
931
|
"required": [
|
|
737
|
-
"tenantId"
|
|
932
|
+
"tenantId",
|
|
933
|
+
"tenantUserId"
|
|
738
934
|
],
|
|
739
935
|
"properties": {
|
|
740
936
|
"tenantId": {
|
|
741
937
|
"type": "string"
|
|
938
|
+
},
|
|
939
|
+
"tenantUserId": {
|
|
940
|
+
"type": "string"
|
|
742
941
|
}
|
|
743
942
|
}
|
|
744
943
|
}
|
|
745
944
|
```
|
|
746
945
|
|
|
747
|
-
<h3 id="
|
|
946
|
+
<h3 id="post__api_v1_account_admin_opentenantuser-parameters">Parameters</h3>
|
|
748
947
|
|
|
749
948
|
|Name|In|Type|Required|Description|
|
|
750
949
|
|---|---|---|---|---|
|
|
751
950
|
|body|body|object|true|none|
|
|
752
951
|
|» tenantId|body|string|true|none|
|
|
952
|
+
|» tenantUserId|body|string|true|none|
|
|
753
953
|
|
|
754
|
-
<h3 id="
|
|
954
|
+
<h3 id="post__api_v1_account_admin_opentenantuser-responses">Responses</h3>
|
|
755
955
|
|
|
756
956
|
|Status|Meaning|Description|Schema|
|
|
757
957
|
|---|---|---|---|
|
|
@@ -761,9 +961,115 @@ This operation does not require authentication
|
|
|
761
961
|
This operation does not require authentication
|
|
762
962
|
</aside>
|
|
763
963
|
|
|
764
|
-
##
|
|
964
|
+
## get__api_v1_account_tenant_getUserTenant
|
|
765
965
|
|
|
766
|
-
`
|
|
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
|
+
## post__api_v1_account_tenant_addOrg
|
|
993
|
+
|
|
994
|
+
`POST /api/v1/account/tenant/addOrg`
|
|
995
|
+
|
|
996
|
+
<h3 id="post__api_v1_account_tenant_addorg-responses">Responses</h3>
|
|
997
|
+
|
|
998
|
+
|Status|Meaning|Description|Schema|
|
|
999
|
+
|---|---|---|---|
|
|
1000
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1001
|
+
|
|
1002
|
+
<aside class="success">
|
|
1003
|
+
This operation does not require authentication
|
|
1004
|
+
</aside>
|
|
1005
|
+
|
|
1006
|
+
## get__api_v1_account_tenant_orgList
|
|
1007
|
+
|
|
1008
|
+
`GET /api/v1/account/tenant/orgList`
|
|
1009
|
+
|
|
1010
|
+
<h3 id="get__api_v1_account_tenant_orglist-responses">Responses</h3>
|
|
1011
|
+
|
|
1012
|
+
|Status|Meaning|Description|Schema|
|
|
1013
|
+
|---|---|---|---|
|
|
1014
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1015
|
+
|
|
1016
|
+
<aside class="success">
|
|
1017
|
+
This operation does not require authentication
|
|
1018
|
+
</aside>
|
|
1019
|
+
|
|
1020
|
+
## post__api_v1_account_tenant_editOrg
|
|
1021
|
+
|
|
1022
|
+
`POST /api/v1/account/tenant/editOrg`
|
|
1023
|
+
|
|
1024
|
+
<h3 id="post__api_v1_account_tenant_editorg-responses">Responses</h3>
|
|
1025
|
+
|
|
1026
|
+
|Status|Meaning|Description|Schema|
|
|
1027
|
+
|---|---|---|---|
|
|
1028
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1029
|
+
|
|
1030
|
+
<aside class="success">
|
|
1031
|
+
This operation does not require authentication
|
|
1032
|
+
</aside>
|
|
1033
|
+
|
|
1034
|
+
## post__api_v1_account_tenant_removeOrg
|
|
1035
|
+
|
|
1036
|
+
`POST /api/v1/account/tenant/removeOrg`
|
|
1037
|
+
|
|
1038
|
+
<h3 id="post__api_v1_account_tenant_removeorg-responses">Responses</h3>
|
|
1039
|
+
|
|
1040
|
+
|Status|Meaning|Description|Schema|
|
|
1041
|
+
|---|---|---|---|
|
|
1042
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1043
|
+
|
|
1044
|
+
<aside class="success">
|
|
1045
|
+
This operation does not require authentication
|
|
1046
|
+
</aside>
|
|
1047
|
+
|
|
1048
|
+
## get__api_v1_account_tenant_getRoleList
|
|
1049
|
+
|
|
1050
|
+
`GET /api/v1/account/tenant/getRoleList`
|
|
1051
|
+
|
|
1052
|
+
<h3 id="get__api_v1_account_tenant_getrolelist-parameters">Parameters</h3>
|
|
1053
|
+
|
|
1054
|
+
|Name|In|Type|Required|Description|
|
|
1055
|
+
|---|---|---|---|---|
|
|
1056
|
+
|perPage|query|number|false|none|
|
|
1057
|
+
|currentPage|query|number|false|none|
|
|
1058
|
+
|filter|query|object|false|none|
|
|
1059
|
+
|
|
1060
|
+
<h3 id="get__api_v1_account_tenant_getrolelist-responses">Responses</h3>
|
|
1061
|
+
|
|
1062
|
+
|Status|Meaning|Description|Schema|
|
|
1063
|
+
|---|---|---|---|
|
|
1064
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1065
|
+
|
|
1066
|
+
<aside class="success">
|
|
1067
|
+
This operation does not require authentication
|
|
1068
|
+
</aside>
|
|
1069
|
+
|
|
1070
|
+
## post__api_v1_account_tenant_addRole
|
|
1071
|
+
|
|
1072
|
+
`POST /api/v1/account/tenant/addRole`
|
|
767
1073
|
|
|
768
1074
|
> Body parameter
|
|
769
1075
|
|
|
@@ -771,29 +1077,28 @@ This operation does not require authentication
|
|
|
771
1077
|
{
|
|
772
1078
|
"type": "object",
|
|
773
1079
|
"required": [
|
|
774
|
-
"
|
|
775
|
-
"tenantUserId"
|
|
1080
|
+
"name"
|
|
776
1081
|
],
|
|
777
1082
|
"properties": {
|
|
778
|
-
"
|
|
1083
|
+
"name": {
|
|
779
1084
|
"type": "string"
|
|
780
1085
|
},
|
|
781
|
-
"
|
|
1086
|
+
"description": {
|
|
782
1087
|
"type": "string"
|
|
783
1088
|
}
|
|
784
1089
|
}
|
|
785
1090
|
}
|
|
786
1091
|
```
|
|
787
1092
|
|
|
788
|
-
<h3 id="
|
|
1093
|
+
<h3 id="post__api_v1_account_tenant_addrole-parameters">Parameters</h3>
|
|
789
1094
|
|
|
790
1095
|
|Name|In|Type|Required|Description|
|
|
791
1096
|
|---|---|---|---|---|
|
|
792
1097
|
|body|body|object|true|none|
|
|
793
|
-
|»
|
|
794
|
-
|»
|
|
1098
|
+
|» name|body|string|true|none|
|
|
1099
|
+
|» description|body|string|false|none|
|
|
795
1100
|
|
|
796
|
-
<h3 id="
|
|
1101
|
+
<h3 id="post__api_v1_account_tenant_addrole-responses">Responses</h3>
|
|
797
1102
|
|
|
798
1103
|
|Status|Meaning|Description|Schema|
|
|
799
1104
|
|---|---|---|---|
|
|
@@ -803,9 +1108,9 @@ This operation does not require authentication
|
|
|
803
1108
|
This operation does not require authentication
|
|
804
1109
|
</aside>
|
|
805
1110
|
|
|
806
|
-
##
|
|
1111
|
+
## post__api_v1_account_tenant_saveRole
|
|
807
1112
|
|
|
808
|
-
`POST /api/v1/account/
|
|
1113
|
+
`POST /api/v1/account/tenant/saveRole`
|
|
809
1114
|
|
|
810
1115
|
> Body parameter
|
|
811
1116
|
|
|
@@ -813,29 +1118,33 @@ This operation does not require authentication
|
|
|
813
1118
|
{
|
|
814
1119
|
"type": "object",
|
|
815
1120
|
"required": [
|
|
816
|
-
"
|
|
817
|
-
"
|
|
1121
|
+
"name",
|
|
1122
|
+
"id"
|
|
818
1123
|
],
|
|
819
1124
|
"properties": {
|
|
820
|
-
"
|
|
1125
|
+
"id": {
|
|
1126
|
+
"type": "number"
|
|
1127
|
+
},
|
|
1128
|
+
"name": {
|
|
821
1129
|
"type": "string"
|
|
822
1130
|
},
|
|
823
|
-
"
|
|
1131
|
+
"description": {
|
|
824
1132
|
"type": "string"
|
|
825
1133
|
}
|
|
826
1134
|
}
|
|
827
1135
|
}
|
|
828
1136
|
```
|
|
829
1137
|
|
|
830
|
-
<h3 id="
|
|
1138
|
+
<h3 id="post__api_v1_account_tenant_saverole-parameters">Parameters</h3>
|
|
831
1139
|
|
|
832
1140
|
|Name|In|Type|Required|Description|
|
|
833
1141
|
|---|---|---|---|---|
|
|
834
1142
|
|body|body|object|true|none|
|
|
835
|
-
|»
|
|
836
|
-
|»
|
|
1143
|
+
|» id|body|number|true|none|
|
|
1144
|
+
|» name|body|string|true|none|
|
|
1145
|
+
|» description|body|string|false|none|
|
|
837
1146
|
|
|
838
|
-
<h3 id="
|
|
1147
|
+
<h3 id="post__api_v1_account_tenant_saverole-responses">Responses</h3>
|
|
839
1148
|
|
|
840
1149
|
|Status|Meaning|Description|Schema|
|
|
841
1150
|
|---|---|---|---|
|
|
@@ -845,17 +1154,34 @@ This operation does not require authentication
|
|
|
845
1154
|
This operation does not require authentication
|
|
846
1155
|
</aside>
|
|
847
1156
|
|
|
848
|
-
##
|
|
1157
|
+
## post__api_v1_account_tenant_removeRole
|
|
849
1158
|
|
|
850
|
-
`
|
|
1159
|
+
`POST /api/v1/account/tenant/removeRole`
|
|
851
1160
|
|
|
852
|
-
|
|
1161
|
+
> Body parameter
|
|
1162
|
+
|
|
1163
|
+
```json
|
|
1164
|
+
{
|
|
1165
|
+
"type": "object",
|
|
1166
|
+
"required": [
|
|
1167
|
+
"id"
|
|
1168
|
+
],
|
|
1169
|
+
"properties": {
|
|
1170
|
+
"id": {
|
|
1171
|
+
"type": "number"
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
```
|
|
1176
|
+
|
|
1177
|
+
<h3 id="post__api_v1_account_tenant_removerole-parameters">Parameters</h3>
|
|
853
1178
|
|
|
854
1179
|
|Name|In|Type|Required|Description|
|
|
855
1180
|
|---|---|---|---|---|
|
|
856
|
-
|
|
|
1181
|
+
|body|body|object|true|none|
|
|
1182
|
+
|» id|body|number|true|none|
|
|
857
1183
|
|
|
858
|
-
<h3 id="
|
|
1184
|
+
<h3 id="post__api_v1_account_tenant_removerole-responses">Responses</h3>
|
|
859
1185
|
|
|
860
1186
|
|Status|Meaning|Description|Schema|
|
|
861
1187
|
|---|---|---|---|
|
|
@@ -865,9 +1191,65 @@ This operation does not require authentication
|
|
|
865
1191
|
This operation does not require authentication
|
|
866
1192
|
</aside>
|
|
867
1193
|
|
|
868
|
-
##
|
|
1194
|
+
## get__api_v1_account_tenant_getRolePermissionList
|
|
869
1195
|
|
|
870
|
-
`
|
|
1196
|
+
`GET /api/v1/account/tenant/getRolePermissionList`
|
|
1197
|
+
|
|
1198
|
+
<h3 id="get__api_v1_account_tenant_getrolepermissionlist-parameters">Parameters</h3>
|
|
1199
|
+
|
|
1200
|
+
|Name|In|Type|Required|Description|
|
|
1201
|
+
|---|---|---|---|---|
|
|
1202
|
+
|id|query|number|true|none|
|
|
1203
|
+
|
|
1204
|
+
<h3 id="get__api_v1_account_tenant_getrolepermissionlist-responses">Responses</h3>
|
|
1205
|
+
|
|
1206
|
+
|Status|Meaning|Description|Schema|
|
|
1207
|
+
|---|---|---|---|
|
|
1208
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1209
|
+
|
|
1210
|
+
<aside class="success">
|
|
1211
|
+
This operation does not require authentication
|
|
1212
|
+
</aside>
|
|
1213
|
+
|
|
1214
|
+
## post__api_v1_account_tenant_saveRolePermissionList
|
|
1215
|
+
|
|
1216
|
+
`POST /api/v1/account/tenant/saveRolePermissionList`
|
|
1217
|
+
|
|
1218
|
+
<h3 id="post__api_v1_account_tenant_saverolepermissionlist-responses">Responses</h3>
|
|
1219
|
+
|
|
1220
|
+
|Status|Meaning|Description|Schema|
|
|
1221
|
+
|---|---|---|---|
|
|
1222
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1223
|
+
|
|
1224
|
+
<aside class="success">
|
|
1225
|
+
This operation does not require authentication
|
|
1226
|
+
</aside>
|
|
1227
|
+
|
|
1228
|
+
## get__api_v1_account_tenant_getTenantUserList
|
|
1229
|
+
|
|
1230
|
+
`GET /api/v1/account/tenant/getTenantUserList`
|
|
1231
|
+
|
|
1232
|
+
<h3 id="get__api_v1_account_tenant_gettenantuserlist-parameters">Parameters</h3>
|
|
1233
|
+
|
|
1234
|
+
|Name|In|Type|Required|Description|
|
|
1235
|
+
|---|---|---|---|---|
|
|
1236
|
+
|filter|query|object|false|none|
|
|
1237
|
+
|currentPage|query|number|false|none|
|
|
1238
|
+
|perPage|query|number|false|none|
|
|
1239
|
+
|
|
1240
|
+
<h3 id="get__api_v1_account_tenant_gettenantuserlist-responses">Responses</h3>
|
|
1241
|
+
|
|
1242
|
+
|Status|Meaning|Description|Schema|
|
|
1243
|
+
|---|---|---|---|
|
|
1244
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1245
|
+
|
|
1246
|
+
<aside class="success">
|
|
1247
|
+
This operation does not require authentication
|
|
1248
|
+
</aside>
|
|
1249
|
+
|
|
1250
|
+
## post__api_v1_account_tenant_addTenantUser
|
|
1251
|
+
|
|
1252
|
+
`POST /api/v1/account/tenant/addTenantUser`
|
|
871
1253
|
|
|
872
1254
|
> Body parameter
|
|
873
1255
|
|
|
@@ -875,46 +1257,61 @@ This operation does not require authentication
|
|
|
875
1257
|
{
|
|
876
1258
|
"type": "object",
|
|
877
1259
|
"required": [
|
|
878
|
-
"
|
|
1260
|
+
"userId",
|
|
1261
|
+
"name"
|
|
879
1262
|
],
|
|
880
1263
|
"properties": {
|
|
881
|
-
"
|
|
1264
|
+
"roleIds": {
|
|
1265
|
+
"type": "array",
|
|
1266
|
+
"items": {
|
|
1267
|
+
"type": "number"
|
|
1268
|
+
},
|
|
1269
|
+
"default": []
|
|
1270
|
+
},
|
|
1271
|
+
"orgIds": {
|
|
1272
|
+
"type": "array",
|
|
1273
|
+
"items": {
|
|
1274
|
+
"type": "number"
|
|
1275
|
+
},
|
|
1276
|
+
"default": []
|
|
1277
|
+
},
|
|
1278
|
+
"userId": {
|
|
882
1279
|
"type": "string"
|
|
883
1280
|
},
|
|
884
|
-
"
|
|
885
|
-
"type": "
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
},
|
|
899
|
-
"default": []
|
|
900
|
-
}
|
|
901
|
-
}
|
|
1281
|
+
"name": {
|
|
1282
|
+
"type": "string"
|
|
1283
|
+
},
|
|
1284
|
+
"avatar": {
|
|
1285
|
+
"type": "string"
|
|
1286
|
+
},
|
|
1287
|
+
"phone": {
|
|
1288
|
+
"type": "string"
|
|
1289
|
+
},
|
|
1290
|
+
"email": {
|
|
1291
|
+
"type": "string"
|
|
1292
|
+
},
|
|
1293
|
+
"description": {
|
|
1294
|
+
"type": "string"
|
|
902
1295
|
}
|
|
903
1296
|
}
|
|
904
1297
|
}
|
|
905
1298
|
```
|
|
906
1299
|
|
|
907
|
-
<h3 id="
|
|
1300
|
+
<h3 id="post__api_v1_account_tenant_addtenantuser-parameters">Parameters</h3>
|
|
908
1301
|
|
|
909
1302
|
|Name|In|Type|Required|Description|
|
|
910
1303
|
|---|---|---|---|---|
|
|
911
1304
|
|body|body|object|true|none|
|
|
912
|
-
|»
|
|
913
|
-
|»
|
|
914
|
-
|
|
915
|
-
|
|
1305
|
+
|» roleIds|body|[number]|false|none|
|
|
1306
|
+
|» orgIds|body|[number]|false|none|
|
|
1307
|
+
|» userId|body|string|true|none|
|
|
1308
|
+
|» name|body|string|true|none|
|
|
1309
|
+
|» avatar|body|string|false|none|
|
|
1310
|
+
|» phone|body|string|false|none|
|
|
1311
|
+
|» email|body|string|false|none|
|
|
1312
|
+
|» description|body|string|false|none|
|
|
916
1313
|
|
|
917
|
-
<h3 id="
|
|
1314
|
+
<h3 id="post__api_v1_account_tenant_addtenantuser-responses">Responses</h3>
|
|
918
1315
|
|
|
919
1316
|
|Status|Meaning|Description|Schema|
|
|
920
1317
|
|---|---|---|---|
|
|
@@ -924,9 +1321,9 @@ This operation does not require authentication
|
|
|
924
1321
|
This operation does not require authentication
|
|
925
1322
|
</aside>
|
|
926
1323
|
|
|
927
|
-
##
|
|
1324
|
+
## post__api_v1_account_tenant_saveTenantUser
|
|
928
1325
|
|
|
929
|
-
`POST /api/v1/account/
|
|
1326
|
+
`POST /api/v1/account/tenant/saveTenantUser`
|
|
930
1327
|
|
|
931
1328
|
> Body parameter
|
|
932
1329
|
|
|
@@ -934,24 +1331,56 @@ This operation does not require authentication
|
|
|
934
1331
|
{
|
|
935
1332
|
"type": "object",
|
|
936
1333
|
"required": [
|
|
937
|
-
"
|
|
1334
|
+
"name"
|
|
938
1335
|
],
|
|
939
1336
|
"properties": {
|
|
940
|
-
"
|
|
941
|
-
"type": "
|
|
1337
|
+
"roleIds": {
|
|
1338
|
+
"type": "array",
|
|
1339
|
+
"items": {
|
|
1340
|
+
"type": "number"
|
|
1341
|
+
},
|
|
1342
|
+
"default": []
|
|
1343
|
+
},
|
|
1344
|
+
"orgIds": {
|
|
1345
|
+
"type": "array",
|
|
1346
|
+
"items": {
|
|
1347
|
+
"type": "number"
|
|
1348
|
+
},
|
|
1349
|
+
"default": []
|
|
1350
|
+
},
|
|
1351
|
+
"name": {
|
|
1352
|
+
"type": "string"
|
|
1353
|
+
},
|
|
1354
|
+
"avatar": {
|
|
1355
|
+
"type": "string"
|
|
1356
|
+
},
|
|
1357
|
+
"phone": {
|
|
1358
|
+
"type": "string"
|
|
1359
|
+
},
|
|
1360
|
+
"email": {
|
|
1361
|
+
"type": "string"
|
|
1362
|
+
},
|
|
1363
|
+
"description": {
|
|
1364
|
+
"type": "string"
|
|
942
1365
|
}
|
|
943
1366
|
}
|
|
944
1367
|
}
|
|
945
1368
|
```
|
|
946
1369
|
|
|
947
|
-
<h3 id="
|
|
1370
|
+
<h3 id="post__api_v1_account_tenant_savetenantuser-parameters">Parameters</h3>
|
|
948
1371
|
|
|
949
1372
|
|Name|In|Type|Required|Description|
|
|
950
1373
|
|---|---|---|---|---|
|
|
951
1374
|
|body|body|object|true|none|
|
|
952
|
-
|»
|
|
1375
|
+
|» roleIds|body|[number]|false|none|
|
|
1376
|
+
|» orgIds|body|[number]|false|none|
|
|
1377
|
+
|» name|body|string|true|none|
|
|
1378
|
+
|» avatar|body|string|false|none|
|
|
1379
|
+
|» phone|body|string|false|none|
|
|
1380
|
+
|» email|body|string|false|none|
|
|
1381
|
+
|» description|body|string|false|none|
|
|
953
1382
|
|
|
954
|
-
<h3 id="
|
|
1383
|
+
<h3 id="post__api_v1_account_tenant_savetenantuser-responses">Responses</h3>
|
|
955
1384
|
|
|
956
1385
|
|Status|Meaning|Description|Schema|
|
|
957
1386
|
|---|---|---|---|
|
|
@@ -961,11 +1390,34 @@ This operation does not require authentication
|
|
|
961
1390
|
This operation does not require authentication
|
|
962
1391
|
</aside>
|
|
963
1392
|
|
|
964
|
-
##
|
|
1393
|
+
## post__api_v1_account_tenant_deleteTenantUser
|
|
965
1394
|
|
|
966
|
-
`
|
|
1395
|
+
`POST /api/v1/account/tenant/deleteTenantUser`
|
|
967
1396
|
|
|
968
|
-
|
|
1397
|
+
> Body parameter
|
|
1398
|
+
|
|
1399
|
+
```json
|
|
1400
|
+
{
|
|
1401
|
+
"type": "object",
|
|
1402
|
+
"required": [
|
|
1403
|
+
"tenantUserId"
|
|
1404
|
+
],
|
|
1405
|
+
"properties": {
|
|
1406
|
+
"tenantUserId": {
|
|
1407
|
+
"type": "string"
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
```
|
|
1412
|
+
|
|
1413
|
+
<h3 id="post__api_v1_account_tenant_deletetenantuser-parameters">Parameters</h3>
|
|
1414
|
+
|
|
1415
|
+
|Name|In|Type|Required|Description|
|
|
1416
|
+
|---|---|---|---|---|
|
|
1417
|
+
|body|body|object|true|none|
|
|
1418
|
+
|» tenantUserId|body|string|true|none|
|
|
1419
|
+
|
|
1420
|
+
<h3 id="post__api_v1_account_tenant_deletetenantuser-responses">Responses</h3>
|
|
969
1421
|
|
|
970
1422
|
|Status|Meaning|Description|Schema|
|
|
971
1423
|
|---|---|---|---|
|
|
@@ -975,11 +1427,34 @@ This operation does not require authentication
|
|
|
975
1427
|
This operation does not require authentication
|
|
976
1428
|
</aside>
|
|
977
1429
|
|
|
978
|
-
##
|
|
1430
|
+
## post__api_v1_account_tenant_closeTenantUser
|
|
1431
|
+
|
|
1432
|
+
`POST /api/v1/account/tenant/closeTenantUser`
|
|
1433
|
+
|
|
1434
|
+
> Body parameter
|
|
1435
|
+
|
|
1436
|
+
```json
|
|
1437
|
+
{
|
|
1438
|
+
"type": "object",
|
|
1439
|
+
"required": [
|
|
1440
|
+
"tenantUserId"
|
|
1441
|
+
],
|
|
1442
|
+
"properties": {
|
|
1443
|
+
"tenantUserId": {
|
|
1444
|
+
"type": "string"
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1448
|
+
```
|
|
1449
|
+
|
|
1450
|
+
<h3 id="post__api_v1_account_tenant_closetenantuser-parameters">Parameters</h3>
|
|
979
1451
|
|
|
980
|
-
|
|
1452
|
+
|Name|In|Type|Required|Description|
|
|
1453
|
+
|---|---|---|---|---|
|
|
1454
|
+
|body|body|object|true|none|
|
|
1455
|
+
|» tenantUserId|body|string|true|none|
|
|
981
1456
|
|
|
982
|
-
<h3 id="
|
|
1457
|
+
<h3 id="post__api_v1_account_tenant_closetenantuser-responses">Responses</h3>
|
|
983
1458
|
|
|
984
1459
|
|Status|Meaning|Description|Schema|
|
|
985
1460
|
|---|---|---|---|
|
|
@@ -989,33 +1464,34 @@ This operation does not require authentication
|
|
|
989
1464
|
This operation does not require authentication
|
|
990
1465
|
</aside>
|
|
991
1466
|
|
|
992
|
-
##
|
|
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|
|
|
1467
|
+
## post__api_v1_account_tenant_openTenantUser
|
|
1003
1468
|
|
|
1004
|
-
|
|
1469
|
+
`POST /api/v1/account/tenant/openTenantUser`
|
|
1005
1470
|
|
|
1006
|
-
|
|
1007
|
-
|---|---|---|---|
|
|
1008
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1471
|
+
> Body parameter
|
|
1009
1472
|
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1473
|
+
```json
|
|
1474
|
+
{
|
|
1475
|
+
"type": "object",
|
|
1476
|
+
"required": [
|
|
1477
|
+
"tenantUserId"
|
|
1478
|
+
],
|
|
1479
|
+
"properties": {
|
|
1480
|
+
"tenantUserId": {
|
|
1481
|
+
"type": "string"
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
```
|
|
1013
1486
|
|
|
1014
|
-
|
|
1487
|
+
<h3 id="post__api_v1_account_tenant_opentenantuser-parameters">Parameters</h3>
|
|
1015
1488
|
|
|
1016
|
-
|
|
1489
|
+
|Name|In|Type|Required|Description|
|
|
1490
|
+
|---|---|---|---|---|
|
|
1491
|
+
|body|body|object|true|none|
|
|
1492
|
+
|» tenantUserId|body|string|true|none|
|
|
1017
1493
|
|
|
1018
|
-
<h3 id="
|
|
1494
|
+
<h3 id="post__api_v1_account_tenant_opentenantuser-responses">Responses</h3>
|
|
1019
1495
|
|
|
1020
1496
|
|Status|Meaning|Description|Schema|
|
|
1021
1497
|
|---|---|---|---|
|
|
@@ -1082,7 +1558,7 @@ This operation does not require authentication
|
|
|
1082
1558
|
|
|
1083
1559
|
`POST /api/v1/account/sendEmailCode`
|
|
1084
1560
|
|
|
1085
|
-
|
|
1561
|
+
*发送登录邮箱验证码*
|
|
1086
1562
|
|
|
1087
1563
|
> Body parameter
|
|
1088
1564
|
|
|
@@ -1146,7 +1622,7 @@ This operation does not require authentication
|
|
|
1146
1622
|
|
|
1147
1623
|
`POST /api/v1/account/sendSMSCode`
|
|
1148
1624
|
|
|
1149
|
-
|
|
1625
|
+
*发送登录短信验证码*
|
|
1150
1626
|
|
|
1151
1627
|
> Body parameter
|
|
1152
1628
|
|
|
@@ -1229,7 +1705,7 @@ This operation does not require authentication
|
|
|
1229
1705
|
},
|
|
1230
1706
|
"type": {
|
|
1231
1707
|
"type": "number",
|
|
1232
|
-
"description": "0
|
|
1708
|
+
"description": "0:注册,2:登录,4:验证租户管理员,5:忘记密码"
|
|
1233
1709
|
},
|
|
1234
1710
|
"code": {
|
|
1235
1711
|
"type": "string",
|
|
@@ -1245,7 +1721,7 @@ This operation does not require authentication
|
|
|
1245
1721
|
|---|---|---|---|---|
|
|
1246
1722
|
|body|body|object|true|none|
|
|
1247
1723
|
|» name|body|string|true|被验证的账号,手机或邮箱|
|
|
1248
|
-
|» type|body|number|true|0
|
|
1724
|
+
|» type|body|number|true|0:注册,2:登录,4:验证租户管理员,5:忘记密码|
|
|
1249
1725
|
|» code|body|string|true|接受到的验证码|
|
|
1250
1726
|
|
|
1251
1727
|
> Example responses
|
|
@@ -1412,46 +1888,283 @@ This operation does not require authentication
|
|
|
1412
1888
|
"type": "object",
|
|
1413
1889
|
"required": [
|
|
1414
1890
|
"email",
|
|
1415
|
-
"password",
|
|
1416
|
-
"code"
|
|
1891
|
+
"password",
|
|
1892
|
+
"code"
|
|
1893
|
+
],
|
|
1894
|
+
"properties": {
|
|
1895
|
+
"avatar": {
|
|
1896
|
+
"type": "string",
|
|
1897
|
+
"description": "头像图片id"
|
|
1898
|
+
},
|
|
1899
|
+
"email": {
|
|
1900
|
+
"type": "string",
|
|
1901
|
+
"description": "邮箱"
|
|
1902
|
+
},
|
|
1903
|
+
"code": {
|
|
1904
|
+
"type": "string",
|
|
1905
|
+
"description": "验证码"
|
|
1906
|
+
},
|
|
1907
|
+
"password": {
|
|
1908
|
+
"type": "string",
|
|
1909
|
+
"description": "密码(需要md5加密)"
|
|
1910
|
+
},
|
|
1911
|
+
"invitationCode": {
|
|
1912
|
+
"type": "string",
|
|
1913
|
+
"description": "邀请码,用来默认加入租户"
|
|
1914
|
+
},
|
|
1915
|
+
"nickname": {
|
|
1916
|
+
"type": "string",
|
|
1917
|
+
"description": "昵称"
|
|
1918
|
+
},
|
|
1919
|
+
"gender": {
|
|
1920
|
+
"type": "string",
|
|
1921
|
+
"description": "性别"
|
|
1922
|
+
},
|
|
1923
|
+
"birthday": {
|
|
1924
|
+
"type": "string",
|
|
1925
|
+
"format": "date",
|
|
1926
|
+
"description": "出生日期"
|
|
1927
|
+
},
|
|
1928
|
+
"description": {
|
|
1929
|
+
"type": "string",
|
|
1930
|
+
"description": "个人简介"
|
|
1931
|
+
}
|
|
1932
|
+
}
|
|
1933
|
+
}
|
|
1934
|
+
]
|
|
1935
|
+
}
|
|
1936
|
+
```
|
|
1937
|
+
|
|
1938
|
+
<h3 id="post__api_v1_account_register-parameters">Parameters</h3>
|
|
1939
|
+
|
|
1940
|
+
|Name|In|Type|Required|Description|
|
|
1941
|
+
|---|---|---|---|---|
|
|
1942
|
+
|body|body|any|false|none|
|
|
1943
|
+
|
|
1944
|
+
> Example responses
|
|
1945
|
+
|
|
1946
|
+
> 200 Response
|
|
1947
|
+
|
|
1948
|
+
```json
|
|
1949
|
+
{
|
|
1950
|
+
"type": "object",
|
|
1951
|
+
"properties": {}
|
|
1952
|
+
}
|
|
1953
|
+
```
|
|
1954
|
+
|
|
1955
|
+
<h3 id="post__api_v1_account_register-responses">Responses</h3>
|
|
1956
|
+
|
|
1957
|
+
|Status|Meaning|Description|Schema|
|
|
1958
|
+
|---|---|---|---|
|
|
1959
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|Inline|
|
|
1960
|
+
|
|
1961
|
+
<h3 id="post__api_v1_account_register-responseschema">Response Schema</h3>
|
|
1962
|
+
|
|
1963
|
+
<aside class="success">
|
|
1964
|
+
This operation does not require authentication
|
|
1965
|
+
</aside>
|
|
1966
|
+
|
|
1967
|
+
## post__api_v1_account_login
|
|
1968
|
+
|
|
1969
|
+
`POST /api/v1/account/login`
|
|
1970
|
+
|
|
1971
|
+
*登录*
|
|
1972
|
+
|
|
1973
|
+
> Body parameter
|
|
1974
|
+
|
|
1975
|
+
```json
|
|
1976
|
+
{
|
|
1977
|
+
"type": "object",
|
|
1978
|
+
"required": [
|
|
1979
|
+
"username",
|
|
1980
|
+
"password"
|
|
1981
|
+
],
|
|
1982
|
+
"properties": {
|
|
1983
|
+
"username": {
|
|
1984
|
+
"type": "string",
|
|
1985
|
+
"description": "用户名"
|
|
1986
|
+
},
|
|
1987
|
+
"password": {
|
|
1988
|
+
"type": "string",
|
|
1989
|
+
"description": "密码"
|
|
1990
|
+
}
|
|
1991
|
+
}
|
|
1992
|
+
}
|
|
1993
|
+
```
|
|
1994
|
+
|
|
1995
|
+
<h3 id="post__api_v1_account_login-parameters">Parameters</h3>
|
|
1996
|
+
|
|
1997
|
+
|Name|In|Type|Required|Description|
|
|
1998
|
+
|---|---|---|---|---|
|
|
1999
|
+
|body|body|object|true|none|
|
|
2000
|
+
|» username|body|string|true|用户名|
|
|
2001
|
+
|» password|body|string|true|密码|
|
|
2002
|
+
|
|
2003
|
+
> Example responses
|
|
2004
|
+
|
|
2005
|
+
> 200 Response
|
|
2006
|
+
|
|
2007
|
+
```json
|
|
2008
|
+
{
|
|
2009
|
+
"type": "object",
|
|
2010
|
+
"properties": {
|
|
2011
|
+
"token": {
|
|
2012
|
+
"type": "string",
|
|
2013
|
+
"description": "用户token"
|
|
2014
|
+
},
|
|
2015
|
+
"currentTenantId": {
|
|
2016
|
+
"type": "string",
|
|
2017
|
+
"description": "当前租户id"
|
|
2018
|
+
}
|
|
2019
|
+
}
|
|
2020
|
+
}
|
|
2021
|
+
```
|
|
2022
|
+
|
|
2023
|
+
<h3 id="post__api_v1_account_login-responses">Responses</h3>
|
|
2024
|
+
|
|
2025
|
+
|Status|Meaning|Description|Schema|
|
|
2026
|
+
|---|---|---|---|
|
|
2027
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|Inline|
|
|
2028
|
+
|
|
2029
|
+
<h3 id="post__api_v1_account_login-responseschema">Response Schema</h3>
|
|
2030
|
+
|
|
2031
|
+
Status Code **200**
|
|
2032
|
+
|
|
2033
|
+
|Name|Type|Required|Restrictions|Description|
|
|
2034
|
+
|---|---|---|---|---|
|
|
2035
|
+
|» token|string|false|none|用户token|
|
|
2036
|
+
|» currentTenantId|string|false|none|当前租户id|
|
|
2037
|
+
|
|
2038
|
+
<aside class="success">
|
|
2039
|
+
This operation does not require authentication
|
|
2040
|
+
</aside>
|
|
2041
|
+
|
|
2042
|
+
## post__api_v1_account_modifyPassword
|
|
2043
|
+
|
|
2044
|
+
`POST /api/v1/account/modifyPassword`
|
|
2045
|
+
|
|
2046
|
+
*新用户重置新密码*
|
|
2047
|
+
|
|
2048
|
+
> Body parameter
|
|
2049
|
+
|
|
2050
|
+
```json
|
|
2051
|
+
{
|
|
2052
|
+
"oneOf": [
|
|
2053
|
+
{
|
|
2054
|
+
"type": "object",
|
|
2055
|
+
"required": [
|
|
2056
|
+
"email",
|
|
2057
|
+
"newPwd",
|
|
2058
|
+
"oldPwd"
|
|
2059
|
+
],
|
|
2060
|
+
"properties": {
|
|
2061
|
+
"email": {
|
|
2062
|
+
"type": "string",
|
|
2063
|
+
"description": "邮箱"
|
|
2064
|
+
},
|
|
2065
|
+
"newPwd": {
|
|
2066
|
+
"type": "string",
|
|
2067
|
+
"description": "新密码"
|
|
2068
|
+
},
|
|
2069
|
+
"oldPwd": {
|
|
2070
|
+
"type": "string",
|
|
2071
|
+
"description": "原密码"
|
|
2072
|
+
}
|
|
2073
|
+
}
|
|
2074
|
+
},
|
|
2075
|
+
{
|
|
2076
|
+
"type": "object",
|
|
2077
|
+
"required": [
|
|
2078
|
+
"phone",
|
|
2079
|
+
"newPwd",
|
|
2080
|
+
"oldPwd"
|
|
2081
|
+
],
|
|
2082
|
+
"properties": {
|
|
2083
|
+
"phone": {
|
|
2084
|
+
"type": "string",
|
|
2085
|
+
"description": "手机号"
|
|
2086
|
+
},
|
|
2087
|
+
"newPwd": {
|
|
2088
|
+
"type": "string",
|
|
2089
|
+
"description": "新密码"
|
|
2090
|
+
},
|
|
2091
|
+
"oldPwd": {
|
|
2092
|
+
"type": "string",
|
|
2093
|
+
"description": "原密码"
|
|
2094
|
+
}
|
|
2095
|
+
}
|
|
2096
|
+
}
|
|
2097
|
+
]
|
|
2098
|
+
}
|
|
2099
|
+
```
|
|
2100
|
+
|
|
2101
|
+
<h3 id="post__api_v1_account_modifypassword-parameters">Parameters</h3>
|
|
2102
|
+
|
|
2103
|
+
|Name|In|Type|Required|Description|
|
|
2104
|
+
|---|---|---|---|---|
|
|
2105
|
+
|body|body|any|false|none|
|
|
2106
|
+
|
|
2107
|
+
<h3 id="post__api_v1_account_modifypassword-responses">Responses</h3>
|
|
2108
|
+
|
|
2109
|
+
|Status|Meaning|Description|Schema|
|
|
2110
|
+
|---|---|---|---|
|
|
2111
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
2112
|
+
|
|
2113
|
+
<aside class="success">
|
|
2114
|
+
This operation does not require authentication
|
|
2115
|
+
</aside>
|
|
2116
|
+
|
|
2117
|
+
## post__api_v1_account_resetPassword
|
|
2118
|
+
|
|
2119
|
+
`POST /api/v1/account/resetPassword`
|
|
2120
|
+
|
|
2121
|
+
*用户重置密码*
|
|
2122
|
+
|
|
2123
|
+
> Body parameter
|
|
2124
|
+
|
|
2125
|
+
```json
|
|
2126
|
+
{
|
|
2127
|
+
"oneOf": [
|
|
2128
|
+
{
|
|
2129
|
+
"type": "object",
|
|
2130
|
+
"required": [
|
|
2131
|
+
"email",
|
|
2132
|
+
"newPwd",
|
|
2133
|
+
"token"
|
|
1417
2134
|
],
|
|
1418
2135
|
"properties": {
|
|
1419
|
-
"avatar": {
|
|
1420
|
-
"type": "string",
|
|
1421
|
-
"description": "头像图片id"
|
|
1422
|
-
},
|
|
1423
2136
|
"email": {
|
|
1424
2137
|
"type": "string",
|
|
1425
2138
|
"description": "邮箱"
|
|
1426
2139
|
},
|
|
1427
|
-
"
|
|
1428
|
-
"type": "string",
|
|
1429
|
-
"description": "验证码"
|
|
1430
|
-
},
|
|
1431
|
-
"password": {
|
|
1432
|
-
"type": "string",
|
|
1433
|
-
"description": "密码(需要md5加密)"
|
|
1434
|
-
},
|
|
1435
|
-
"invitationCode": {
|
|
2140
|
+
"newPwd": {
|
|
1436
2141
|
"type": "string",
|
|
1437
|
-
"description": "
|
|
2142
|
+
"description": "新密码"
|
|
1438
2143
|
},
|
|
1439
|
-
"
|
|
2144
|
+
"token": {
|
|
1440
2145
|
"type": "string",
|
|
1441
|
-
"description": "
|
|
1442
|
-
}
|
|
1443
|
-
|
|
2146
|
+
"description": "验证token"
|
|
2147
|
+
}
|
|
2148
|
+
}
|
|
2149
|
+
},
|
|
2150
|
+
{
|
|
2151
|
+
"type": "object",
|
|
2152
|
+
"required": [
|
|
2153
|
+
"phone",
|
|
2154
|
+
"newPwd"
|
|
2155
|
+
],
|
|
2156
|
+
"properties": {
|
|
2157
|
+
"phone": {
|
|
1444
2158
|
"type": "string",
|
|
1445
|
-
"description": "
|
|
2159
|
+
"description": "手机号"
|
|
1446
2160
|
},
|
|
1447
|
-
"
|
|
2161
|
+
"newPwd": {
|
|
1448
2162
|
"type": "string",
|
|
1449
|
-
"
|
|
1450
|
-
"description": "出生日期"
|
|
2163
|
+
"description": "新密码"
|
|
1451
2164
|
},
|
|
1452
|
-
"
|
|
2165
|
+
"token": {
|
|
1453
2166
|
"type": "string",
|
|
1454
|
-
"description": "
|
|
2167
|
+
"description": "验证token"
|
|
1455
2168
|
}
|
|
1456
2169
|
}
|
|
1457
2170
|
}
|
|
@@ -1459,105 +2172,111 @@ This operation does not require authentication
|
|
|
1459
2172
|
}
|
|
1460
2173
|
```
|
|
1461
2174
|
|
|
1462
|
-
<h3 id="
|
|
2175
|
+
<h3 id="post__api_v1_account_resetpassword-parameters">Parameters</h3>
|
|
1463
2176
|
|
|
1464
2177
|
|Name|In|Type|Required|Description|
|
|
1465
2178
|
|---|---|---|---|---|
|
|
1466
2179
|
|body|body|any|false|none|
|
|
1467
2180
|
|
|
1468
|
-
|
|
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>
|
|
2181
|
+
<h3 id="post__api_v1_account_resetpassword-responses">Responses</h3>
|
|
1480
2182
|
|
|
1481
2183
|
|Status|Meaning|Description|Schema|
|
|
1482
2184
|
|---|---|---|---|
|
|
1483
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|
|
|
1484
|
-
|
|
1485
|
-
<h3 id="post__api_v1_account_register-responseschema">Response Schema</h3>
|
|
2185
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1486
2186
|
|
|
1487
2187
|
<aside class="success">
|
|
1488
2188
|
This operation does not require authentication
|
|
1489
2189
|
</aside>
|
|
1490
2190
|
|
|
1491
|
-
##
|
|
2191
|
+
## post__api_v1_account_forgetPwd
|
|
1492
2192
|
|
|
1493
|
-
`POST /api/v1/account/
|
|
2193
|
+
`POST /api/v1/account/forgetPwd`
|
|
1494
2194
|
|
|
1495
|
-
|
|
2195
|
+
*忘记密码*
|
|
1496
2196
|
|
|
1497
2197
|
> Body parameter
|
|
1498
2198
|
|
|
1499
2199
|
```json
|
|
1500
2200
|
{
|
|
1501
|
-
"
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
2201
|
+
"oneOf": [
|
|
2202
|
+
{
|
|
2203
|
+
"type": "object",
|
|
2204
|
+
"required": [
|
|
2205
|
+
"email"
|
|
2206
|
+
],
|
|
2207
|
+
"properties": {
|
|
2208
|
+
"email": {
|
|
2209
|
+
"type": "string",
|
|
2210
|
+
"description": "邮箱"
|
|
2211
|
+
}
|
|
2212
|
+
}
|
|
1510
2213
|
},
|
|
1511
|
-
|
|
1512
|
-
"type": "
|
|
1513
|
-
"
|
|
2214
|
+
{
|
|
2215
|
+
"type": "object",
|
|
2216
|
+
"required": [
|
|
2217
|
+
"phone"
|
|
2218
|
+
],
|
|
2219
|
+
"properties": {
|
|
2220
|
+
"phone": {
|
|
2221
|
+
"type": "string",
|
|
2222
|
+
"description": "手机号"
|
|
2223
|
+
}
|
|
2224
|
+
}
|
|
1514
2225
|
}
|
|
1515
|
-
|
|
2226
|
+
]
|
|
1516
2227
|
}
|
|
1517
2228
|
```
|
|
1518
2229
|
|
|
1519
|
-
<h3 id="
|
|
2230
|
+
<h3 id="post__api_v1_account_forgetpwd-parameters">Parameters</h3>
|
|
1520
2231
|
|
|
1521
2232
|
|Name|In|Type|Required|Description|
|
|
1522
2233
|
|---|---|---|---|---|
|
|
1523
|
-
|body|body|
|
|
1524
|
-
|» username|body|string|true|用户名|
|
|
1525
|
-
|» password|body|string|true|密码|
|
|
2234
|
+
|body|body|any|false|none|
|
|
1526
2235
|
|
|
1527
|
-
|
|
2236
|
+
<h3 id="post__api_v1_account_forgetpwd-responses">Responses</h3>
|
|
1528
2237
|
|
|
1529
|
-
|
|
2238
|
+
|Status|Meaning|Description|Schema|
|
|
2239
|
+
|---|---|---|---|
|
|
2240
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
2241
|
+
|
|
2242
|
+
<aside class="success">
|
|
2243
|
+
This operation does not require authentication
|
|
2244
|
+
</aside>
|
|
2245
|
+
|
|
2246
|
+
## post__api_v1_account_parseResetToken
|
|
2247
|
+
|
|
2248
|
+
`POST /api/v1/account/parseResetToken`
|
|
2249
|
+
|
|
2250
|
+
*通过token获取name*
|
|
2251
|
+
|
|
2252
|
+
> Body parameter
|
|
1530
2253
|
|
|
1531
2254
|
```json
|
|
1532
2255
|
{
|
|
1533
2256
|
"type": "object",
|
|
2257
|
+
"required": [
|
|
2258
|
+
"token"
|
|
2259
|
+
],
|
|
1534
2260
|
"properties": {
|
|
1535
2261
|
"token": {
|
|
1536
|
-
"type": "string"
|
|
1537
|
-
"description": "用户token"
|
|
1538
|
-
},
|
|
1539
|
-
"currentTenantId": {
|
|
1540
|
-
"type": "string",
|
|
1541
|
-
"description": "当前租户id"
|
|
2262
|
+
"type": "string"
|
|
1542
2263
|
}
|
|
1543
2264
|
}
|
|
1544
2265
|
}
|
|
1545
2266
|
```
|
|
1546
2267
|
|
|
1547
|
-
<h3 id="
|
|
1548
|
-
|
|
1549
|
-
|Status|Meaning|Description|Schema|
|
|
1550
|
-
|---|---|---|---|
|
|
1551
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|Inline|
|
|
2268
|
+
<h3 id="post__api_v1_account_parseresettoken-parameters">Parameters</h3>
|
|
1552
2269
|
|
|
1553
|
-
|
|
2270
|
+
|Name|In|Type|Required|Description|
|
|
2271
|
+
|---|---|---|---|---|
|
|
2272
|
+
|body|body|object|true|none|
|
|
2273
|
+
|» token|body|string|true|none|
|
|
1554
2274
|
|
|
1555
|
-
|
|
2275
|
+
<h3 id="post__api_v1_account_parseresettoken-responses">Responses</h3>
|
|
1556
2276
|
|
|
1557
|
-
|
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|» currentTenantId|string|false|none|当前租户id|
|
|
2277
|
+
|Status|Meaning|Description|Schema|
|
|
2278
|
+
|---|---|---|---|
|
|
2279
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1561
2280
|
|
|
1562
2281
|
<aside class="success">
|
|
1563
2282
|
This operation does not require authentication
|
|
@@ -2604,6 +3323,123 @@ This operation does not require authentication
|
|
|
2604
3323
|
This operation does not require authentication
|
|
2605
3324
|
</aside>
|
|
2606
3325
|
|
|
3326
|
+
<h1 id="-kne-fastify-account--">租户管理-权限</h1>
|
|
3327
|
+
|
|
3328
|
+
## get__api_v1_account_tenant_getApplicationList
|
|
3329
|
+
|
|
3330
|
+
`GET /api/v1/account/tenant/getApplicationList`
|
|
3331
|
+
|
|
3332
|
+
*获取应用列表*
|
|
3333
|
+
|
|
3334
|
+
<h3 id="get__api_v1_account_tenant_getapplicationlist-responses">Responses</h3>
|
|
3335
|
+
|
|
3336
|
+
|Status|Meaning|Description|Schema|
|
|
3337
|
+
|---|---|---|---|
|
|
3338
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
3339
|
+
|
|
3340
|
+
<aside class="success">
|
|
3341
|
+
This operation does not require authentication
|
|
3342
|
+
</aside>
|
|
3343
|
+
|
|
3344
|
+
## get__api_v1_account_tenant_getPermissionList
|
|
3345
|
+
|
|
3346
|
+
`GET /api/v1/account/tenant/getPermissionList`
|
|
3347
|
+
|
|
3348
|
+
*获取应用权限列表*
|
|
3349
|
+
|
|
3350
|
+
<h3 id="get__api_v1_account_tenant_getpermissionlist-parameters">Parameters</h3>
|
|
3351
|
+
|
|
3352
|
+
|Name|In|Type|Required|Description|
|
|
3353
|
+
|---|---|---|---|---|
|
|
3354
|
+
|applicationId|query|string|true|none|
|
|
3355
|
+
|
|
3356
|
+
> Example responses
|
|
3357
|
+
|
|
3358
|
+
> 200 Response
|
|
3359
|
+
|
|
3360
|
+
```json
|
|
3361
|
+
{
|
|
3362
|
+
"type": "array",
|
|
3363
|
+
"items": {
|
|
3364
|
+
"type": "object",
|
|
3365
|
+
"properties": {
|
|
3366
|
+
"id": {
|
|
3367
|
+
"type": "number"
|
|
3368
|
+
},
|
|
3369
|
+
"code": {
|
|
3370
|
+
"type": "string"
|
|
3371
|
+
},
|
|
3372
|
+
"name": {
|
|
3373
|
+
"type": "string"
|
|
3374
|
+
},
|
|
3375
|
+
"isModule": {
|
|
3376
|
+
"type": "number"
|
|
3377
|
+
},
|
|
3378
|
+
"isMust": {
|
|
3379
|
+
"type": "number"
|
|
3380
|
+
},
|
|
3381
|
+
"type": {
|
|
3382
|
+
"type": "number"
|
|
3383
|
+
},
|
|
3384
|
+
"pid": {
|
|
3385
|
+
"type": "number"
|
|
3386
|
+
},
|
|
3387
|
+
"paths": {
|
|
3388
|
+
"type": "array",
|
|
3389
|
+
"items": {
|
|
3390
|
+
"type": "number"
|
|
3391
|
+
}
|
|
3392
|
+
},
|
|
3393
|
+
"description": {
|
|
3394
|
+
"type": "string"
|
|
3395
|
+
},
|
|
3396
|
+
"status": {
|
|
3397
|
+
"type": "number"
|
|
3398
|
+
},
|
|
3399
|
+
"createdAt": {
|
|
3400
|
+
"type": "string"
|
|
3401
|
+
},
|
|
3402
|
+
"updatedAt": {
|
|
3403
|
+
"type": "string"
|
|
3404
|
+
},
|
|
3405
|
+
"deletedAt": {
|
|
3406
|
+
"type": "string"
|
|
3407
|
+
}
|
|
3408
|
+
}
|
|
3409
|
+
}
|
|
3410
|
+
}
|
|
3411
|
+
```
|
|
3412
|
+
|
|
3413
|
+
<h3 id="get__api_v1_account_tenant_getpermissionlist-responses">Responses</h3>
|
|
3414
|
+
|
|
3415
|
+
|Status|Meaning|Description|Schema|
|
|
3416
|
+
|---|---|---|---|
|
|
3417
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|Inline|
|
|
3418
|
+
|
|
3419
|
+
<h3 id="get__api_v1_account_tenant_getpermissionlist-responseschema">Response Schema</h3>
|
|
3420
|
+
|
|
3421
|
+
Status Code **200**
|
|
3422
|
+
|
|
3423
|
+
|Name|Type|Required|Restrictions|Description|
|
|
3424
|
+
|---|---|---|---|---|
|
|
3425
|
+
|» id|number|false|none|none|
|
|
3426
|
+
|» code|string|false|none|none|
|
|
3427
|
+
|» name|string|false|none|none|
|
|
3428
|
+
|» isModule|number|false|none|none|
|
|
3429
|
+
|» isMust|number|false|none|none|
|
|
3430
|
+
|» type|number|false|none|none|
|
|
3431
|
+
|» pid|number|false|none|none|
|
|
3432
|
+
|» paths|[number]|false|none|none|
|
|
3433
|
+
|» description|string|false|none|none|
|
|
3434
|
+
|» status|number|false|none|none|
|
|
3435
|
+
|» createdAt|string|false|none|none|
|
|
3436
|
+
|» updatedAt|string|false|none|none|
|
|
3437
|
+
|» deletedAt|string|false|none|none|
|
|
3438
|
+
|
|
3439
|
+
<aside class="success">
|
|
3440
|
+
This operation does not require authentication
|
|
3441
|
+
</aside>
|
|
3442
|
+
|
|
2607
3443
|
# Schemas
|
|
2608
3444
|
|
|
2609
3445
|
|