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