@kne/fastify-account 1.0.0-alpha.11 → 1.0.0-alpha.14

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