@kne/fastify-account 1.0.0-alpha.0 → 1.0.0-alpha.10
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 +636 -5
- package/index.js +13 -4
- package/libs/controllers/account.js +8 -7
- package/libs/controllers/admin.js +16 -15
- package/libs/controllers/adminPermission.js +42 -35
- package/libs/controllers/adminRole.js +13 -12
- package/libs/controllers/adminTenant.js +39 -36
- package/libs/controllers/tenant.js +16 -4
- package/libs/controllers/user.js +23 -1
- package/libs/models/admin-role.js +4 -8
- package/libs/models/application.js +16 -10
- package/libs/models/login-log.js +4 -8
- package/libs/models/permission.js +7 -9
- package/libs/models/tenant-application.js +8 -10
- package/libs/models/tenant-org.js +5 -9
- package/libs/models/tenant-permission.js +7 -9
- package/libs/models/tenant-role-application.js +15 -10
- package/libs/models/tenant-role-permission.js +11 -9
- package/libs/models/tenant-role.js +5 -9
- package/libs/models/tenant-share-group-permission.js +5 -9
- package/libs/models/tenant-share-group.js +5 -9
- package/libs/models/tenant-source-user-share-group.js +5 -9
- package/libs/models/tenant-token.js +7 -9
- package/libs/models/tenant-user-org.js +11 -10
- package/libs/models/tenant-user-role.js +11 -10
- package/libs/models/tenant-user-share-group.js +6 -10
- package/libs/models/tenant-user.js +35 -16
- package/libs/models/tenant.js +17 -9
- package/libs/models/user-account.js +17 -9
- package/libs/models/user.js +27 -17
- package/libs/models/verification-code.js +4 -8
- package/libs/services/account.js +34 -16
- package/libs/services/admin.js +17 -121
- package/libs/services/application.js +151 -0
- package/libs/services/permission.js +47 -145
- package/libs/services/tenant-invite.js +62 -0
- package/libs/services/tenant-org.js +97 -0
- package/libs/services/tenant-role.js +108 -0
- package/libs/services/tenant-user.js +555 -0
- package/libs/services/tenant.js +68 -512
- package/libs/services/user.js +69 -30
- package/package.json +4 -3
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"
|
|
25
|
+
title: "@kne/fastify-account v1.0.0-alpha.9"
|
|
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</h1>
|
|
45
|
+
<h1 id="-kne-fastify-account">@kne/fastify-account v1.0.0-alpha.9</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
|
|
|
@@ -619,6 +619,43 @@ This operation does not require authentication
|
|
|
619
619
|
This operation does not require authentication
|
|
620
620
|
</aside>
|
|
621
621
|
|
|
622
|
+
## post__api_v1_account_admin_openUser
|
|
623
|
+
|
|
624
|
+
`POST /api/v1/account/admin/openUser`
|
|
625
|
+
|
|
626
|
+
> Body parameter
|
|
627
|
+
|
|
628
|
+
```json
|
|
629
|
+
{
|
|
630
|
+
"type": "object",
|
|
631
|
+
"required": [
|
|
632
|
+
"id"
|
|
633
|
+
],
|
|
634
|
+
"properties": {
|
|
635
|
+
"id": {
|
|
636
|
+
"type": "string"
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
```
|
|
641
|
+
|
|
642
|
+
<h3 id="post__api_v1_account_admin_openuser-parameters">Parameters</h3>
|
|
643
|
+
|
|
644
|
+
|Name|In|Type|Required|Description|
|
|
645
|
+
|---|---|---|---|---|
|
|
646
|
+
|body|body|object|true|none|
|
|
647
|
+
|» id|body|string|true|none|
|
|
648
|
+
|
|
649
|
+
<h3 id="post__api_v1_account_admin_openuser-responses">Responses</h3>
|
|
650
|
+
|
|
651
|
+
|Status|Meaning|Description|Schema|
|
|
652
|
+
|---|---|---|---|
|
|
653
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
654
|
+
|
|
655
|
+
<aside class="success">
|
|
656
|
+
This operation does not require authentication
|
|
657
|
+
</aside>
|
|
658
|
+
|
|
622
659
|
## post__api_v1_account_admin_addApplication
|
|
623
660
|
|
|
624
661
|
`POST /api/v1/account/admin/addApplication`
|
|
@@ -971,6 +1008,45 @@ This operation does not require authentication
|
|
|
971
1008
|
|
|
972
1009
|
`POST /api/v1/account/admin/saveTenantPermissionList`
|
|
973
1010
|
|
|
1011
|
+
> Body parameter
|
|
1012
|
+
|
|
1013
|
+
```json
|
|
1014
|
+
{
|
|
1015
|
+
"type": "object",
|
|
1016
|
+
"required": [
|
|
1017
|
+
"tenantId",
|
|
1018
|
+
"applications",
|
|
1019
|
+
"permissions"
|
|
1020
|
+
],
|
|
1021
|
+
"properties": {
|
|
1022
|
+
"tenantId": {
|
|
1023
|
+
"type": "string"
|
|
1024
|
+
},
|
|
1025
|
+
"applications": {
|
|
1026
|
+
"type": "array",
|
|
1027
|
+
"items": {
|
|
1028
|
+
"type": "string"
|
|
1029
|
+
}
|
|
1030
|
+
},
|
|
1031
|
+
"permissions": {
|
|
1032
|
+
"type": "array",
|
|
1033
|
+
"items": {
|
|
1034
|
+
"type": "number"
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
```
|
|
1040
|
+
|
|
1041
|
+
<h3 id="post__api_v1_account_admin_savetenantpermissionlist-parameters">Parameters</h3>
|
|
1042
|
+
|
|
1043
|
+
|Name|In|Type|Required|Description|
|
|
1044
|
+
|---|---|---|---|---|
|
|
1045
|
+
|body|body|object|true|none|
|
|
1046
|
+
|» tenantId|body|string|true|none|
|
|
1047
|
+
|» applications|body|[string]|true|none|
|
|
1048
|
+
|» permissions|body|[number]|true|none|
|
|
1049
|
+
|
|
974
1050
|
<h3 id="post__api_v1_account_admin_savetenantpermissionlist-responses">Responses</h3>
|
|
975
1051
|
|
|
976
1052
|
|Status|Meaning|Description|Schema|
|
|
@@ -985,6 +1061,12 @@ This operation does not require authentication
|
|
|
985
1061
|
|
|
986
1062
|
`GET /api/v1/account/admin/getTenantPermissionList`
|
|
987
1063
|
|
|
1064
|
+
<h3 id="get__api_v1_account_admin_gettenantpermissionlist-parameters">Parameters</h3>
|
|
1065
|
+
|
|
1066
|
+
|Name|In|Type|Required|Description|
|
|
1067
|
+
|---|---|---|---|---|
|
|
1068
|
+
|tenantId|query|string|true|none|
|
|
1069
|
+
|
|
988
1070
|
<h3 id="get__api_v1_account_admin_gettenantpermissionlist-responses">Responses</h3>
|
|
989
1071
|
|
|
990
1072
|
|Status|Meaning|Description|Schema|
|
|
@@ -1004,6 +1086,7 @@ This operation does not require authentication
|
|
|
1004
1086
|
|Name|In|Type|Required|Description|
|
|
1005
1087
|
|---|---|---|---|---|
|
|
1006
1088
|
|tenantId|query|string|true|none|
|
|
1089
|
+
|filter|query|object|false|none|
|
|
1007
1090
|
|
|
1008
1091
|
<h3 id="get__api_v1_account_admin_getrolelist-responses">Responses</h3>
|
|
1009
1092
|
|
|
@@ -1369,6 +1452,34 @@ This operation does not require authentication
|
|
|
1369
1452
|
This operation does not require authentication
|
|
1370
1453
|
</aside>
|
|
1371
1454
|
|
|
1455
|
+
## post__api_v1_account_admin_tenant_editOrg
|
|
1456
|
+
|
|
1457
|
+
`POST /api/v1/account/admin/tenant/editOrg`
|
|
1458
|
+
|
|
1459
|
+
<h3 id="post__api_v1_account_admin_tenant_editorg-responses">Responses</h3>
|
|
1460
|
+
|
|
1461
|
+
|Status|Meaning|Description|Schema|
|
|
1462
|
+
|---|---|---|---|
|
|
1463
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1464
|
+
|
|
1465
|
+
<aside class="success">
|
|
1466
|
+
This operation does not require authentication
|
|
1467
|
+
</aside>
|
|
1468
|
+
|
|
1469
|
+
## post__api_v1_account_admin_tenant_removeOrg
|
|
1470
|
+
|
|
1471
|
+
`POST /api/v1/account/admin/tenant/removeOrg`
|
|
1472
|
+
|
|
1473
|
+
<h3 id="post__api_v1_account_admin_tenant_removeorg-responses">Responses</h3>
|
|
1474
|
+
|
|
1475
|
+
|Status|Meaning|Description|Schema|
|
|
1476
|
+
|---|---|---|---|
|
|
1477
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1478
|
+
|
|
1479
|
+
<aside class="success">
|
|
1480
|
+
This operation does not require authentication
|
|
1481
|
+
</aside>
|
|
1482
|
+
|
|
1372
1483
|
## get__api_v1_account_admin_getTenantUserList
|
|
1373
1484
|
|
|
1374
1485
|
`GET /api/v1/account/admin/getTenantUserList`
|
|
@@ -1389,6 +1500,475 @@ This operation does not require authentication
|
|
|
1389
1500
|
This operation does not require authentication
|
|
1390
1501
|
</aside>
|
|
1391
1502
|
|
|
1503
|
+
## post__api_v1_account_admin_addTenantUser
|
|
1504
|
+
|
|
1505
|
+
`POST /api/v1/account/admin/addTenantUser`
|
|
1506
|
+
|
|
1507
|
+
> Body parameter
|
|
1508
|
+
|
|
1509
|
+
```json
|
|
1510
|
+
{
|
|
1511
|
+
"type": "object",
|
|
1512
|
+
"required": [
|
|
1513
|
+
"tenantId",
|
|
1514
|
+
"userId",
|
|
1515
|
+
"name"
|
|
1516
|
+
],
|
|
1517
|
+
"properties": {
|
|
1518
|
+
"tenantId": {
|
|
1519
|
+
"type": "string"
|
|
1520
|
+
},
|
|
1521
|
+
"roleIds": {
|
|
1522
|
+
"type": "array",
|
|
1523
|
+
"items": {
|
|
1524
|
+
"type": "number"
|
|
1525
|
+
},
|
|
1526
|
+
"default": []
|
|
1527
|
+
},
|
|
1528
|
+
"orgIds": {
|
|
1529
|
+
"type": "array",
|
|
1530
|
+
"items": {
|
|
1531
|
+
"type": "number"
|
|
1532
|
+
},
|
|
1533
|
+
"default": []
|
|
1534
|
+
},
|
|
1535
|
+
"userId": {
|
|
1536
|
+
"type": "string"
|
|
1537
|
+
},
|
|
1538
|
+
"name": {
|
|
1539
|
+
"type": "string"
|
|
1540
|
+
},
|
|
1541
|
+
"avatar": {
|
|
1542
|
+
"type": "string"
|
|
1543
|
+
},
|
|
1544
|
+
"phone": {
|
|
1545
|
+
"type": "string"
|
|
1546
|
+
},
|
|
1547
|
+
"email": {
|
|
1548
|
+
"type": "string"
|
|
1549
|
+
},
|
|
1550
|
+
"description": {
|
|
1551
|
+
"type": "string"
|
|
1552
|
+
}
|
|
1553
|
+
}
|
|
1554
|
+
}
|
|
1555
|
+
```
|
|
1556
|
+
|
|
1557
|
+
<h3 id="post__api_v1_account_admin_addtenantuser-parameters">Parameters</h3>
|
|
1558
|
+
|
|
1559
|
+
|Name|In|Type|Required|Description|
|
|
1560
|
+
|---|---|---|---|---|
|
|
1561
|
+
|body|body|object|true|none|
|
|
1562
|
+
|» tenantId|body|string|true|none|
|
|
1563
|
+
|» roleIds|body|[number]|false|none|
|
|
1564
|
+
|» orgIds|body|[number]|false|none|
|
|
1565
|
+
|» userId|body|string|true|none|
|
|
1566
|
+
|» name|body|string|true|none|
|
|
1567
|
+
|» avatar|body|string|false|none|
|
|
1568
|
+
|» phone|body|string|false|none|
|
|
1569
|
+
|» email|body|string|false|none|
|
|
1570
|
+
|» description|body|string|false|none|
|
|
1571
|
+
|
|
1572
|
+
<h3 id="post__api_v1_account_admin_addtenantuser-responses">Responses</h3>
|
|
1573
|
+
|
|
1574
|
+
|Status|Meaning|Description|Schema|
|
|
1575
|
+
|---|---|---|---|
|
|
1576
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1577
|
+
|
|
1578
|
+
<aside class="success">
|
|
1579
|
+
This operation does not require authentication
|
|
1580
|
+
</aside>
|
|
1581
|
+
|
|
1582
|
+
## post__api_v1_account_admin_saveTenantUser
|
|
1583
|
+
|
|
1584
|
+
`POST /api/v1/account/admin/saveTenantUser`
|
|
1585
|
+
|
|
1586
|
+
> Body parameter
|
|
1587
|
+
|
|
1588
|
+
```json
|
|
1589
|
+
{
|
|
1590
|
+
"type": "object",
|
|
1591
|
+
"required": [
|
|
1592
|
+
"tenantId",
|
|
1593
|
+
"name"
|
|
1594
|
+
],
|
|
1595
|
+
"properties": {
|
|
1596
|
+
"tenantId": {
|
|
1597
|
+
"type": "string"
|
|
1598
|
+
},
|
|
1599
|
+
"roleIds": {
|
|
1600
|
+
"type": "array",
|
|
1601
|
+
"items": {
|
|
1602
|
+
"type": "number"
|
|
1603
|
+
},
|
|
1604
|
+
"default": []
|
|
1605
|
+
},
|
|
1606
|
+
"orgIds": {
|
|
1607
|
+
"type": "array",
|
|
1608
|
+
"items": {
|
|
1609
|
+
"type": "number"
|
|
1610
|
+
},
|
|
1611
|
+
"default": []
|
|
1612
|
+
},
|
|
1613
|
+
"name": {
|
|
1614
|
+
"type": "string"
|
|
1615
|
+
},
|
|
1616
|
+
"avatar": {
|
|
1617
|
+
"type": "string"
|
|
1618
|
+
},
|
|
1619
|
+
"phone": {
|
|
1620
|
+
"type": "string"
|
|
1621
|
+
},
|
|
1622
|
+
"email": {
|
|
1623
|
+
"type": "string"
|
|
1624
|
+
},
|
|
1625
|
+
"description": {
|
|
1626
|
+
"type": "string"
|
|
1627
|
+
}
|
|
1628
|
+
}
|
|
1629
|
+
}
|
|
1630
|
+
```
|
|
1631
|
+
|
|
1632
|
+
<h3 id="post__api_v1_account_admin_savetenantuser-parameters">Parameters</h3>
|
|
1633
|
+
|
|
1634
|
+
|Name|In|Type|Required|Description|
|
|
1635
|
+
|---|---|---|---|---|
|
|
1636
|
+
|body|body|object|true|none|
|
|
1637
|
+
|» tenantId|body|string|true|none|
|
|
1638
|
+
|» roleIds|body|[number]|false|none|
|
|
1639
|
+
|» orgIds|body|[number]|false|none|
|
|
1640
|
+
|» name|body|string|true|none|
|
|
1641
|
+
|» avatar|body|string|false|none|
|
|
1642
|
+
|» phone|body|string|false|none|
|
|
1643
|
+
|» email|body|string|false|none|
|
|
1644
|
+
|» description|body|string|false|none|
|
|
1645
|
+
|
|
1646
|
+
<h3 id="post__api_v1_account_admin_savetenantuser-responses">Responses</h3>
|
|
1647
|
+
|
|
1648
|
+
|Status|Meaning|Description|Schema|
|
|
1649
|
+
|---|---|---|---|
|
|
1650
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1651
|
+
|
|
1652
|
+
<aside class="success">
|
|
1653
|
+
This operation does not require authentication
|
|
1654
|
+
</aside>
|
|
1655
|
+
|
|
1656
|
+
## post__api_v1_account_admin_deleteTenantUser
|
|
1657
|
+
|
|
1658
|
+
`POST /api/v1/account/admin/deleteTenantUser`
|
|
1659
|
+
|
|
1660
|
+
> Body parameter
|
|
1661
|
+
|
|
1662
|
+
```json
|
|
1663
|
+
{
|
|
1664
|
+
"type": "object",
|
|
1665
|
+
"required": [
|
|
1666
|
+
"tenantId",
|
|
1667
|
+
"tenantUserId"
|
|
1668
|
+
],
|
|
1669
|
+
"properties": {
|
|
1670
|
+
"tenantId": {
|
|
1671
|
+
"type": "string"
|
|
1672
|
+
},
|
|
1673
|
+
"tenantUserId": {
|
|
1674
|
+
"type": "string"
|
|
1675
|
+
}
|
|
1676
|
+
}
|
|
1677
|
+
}
|
|
1678
|
+
```
|
|
1679
|
+
|
|
1680
|
+
<h3 id="post__api_v1_account_admin_deletetenantuser-parameters">Parameters</h3>
|
|
1681
|
+
|
|
1682
|
+
|Name|In|Type|Required|Description|
|
|
1683
|
+
|---|---|---|---|---|
|
|
1684
|
+
|body|body|object|true|none|
|
|
1685
|
+
|» tenantId|body|string|true|none|
|
|
1686
|
+
|» tenantUserId|body|string|true|none|
|
|
1687
|
+
|
|
1688
|
+
<h3 id="post__api_v1_account_admin_deletetenantuser-responses">Responses</h3>
|
|
1689
|
+
|
|
1690
|
+
|Status|Meaning|Description|Schema|
|
|
1691
|
+
|---|---|---|---|
|
|
1692
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1693
|
+
|
|
1694
|
+
<aside class="success">
|
|
1695
|
+
This operation does not require authentication
|
|
1696
|
+
</aside>
|
|
1697
|
+
|
|
1698
|
+
## post__api_v1_account_admin_closeTenant
|
|
1699
|
+
|
|
1700
|
+
`POST /api/v1/account/admin/closeTenant`
|
|
1701
|
+
|
|
1702
|
+
> Body parameter
|
|
1703
|
+
|
|
1704
|
+
```json
|
|
1705
|
+
{
|
|
1706
|
+
"type": "object",
|
|
1707
|
+
"required": [
|
|
1708
|
+
"tenantId"
|
|
1709
|
+
],
|
|
1710
|
+
"properties": {
|
|
1711
|
+
"tenantId": {
|
|
1712
|
+
"type": "string"
|
|
1713
|
+
}
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
```
|
|
1717
|
+
|
|
1718
|
+
<h3 id="post__api_v1_account_admin_closetenant-parameters">Parameters</h3>
|
|
1719
|
+
|
|
1720
|
+
|Name|In|Type|Required|Description|
|
|
1721
|
+
|---|---|---|---|---|
|
|
1722
|
+
|body|body|object|true|none|
|
|
1723
|
+
|» tenantId|body|string|true|none|
|
|
1724
|
+
|
|
1725
|
+
<h3 id="post__api_v1_account_admin_closetenant-responses">Responses</h3>
|
|
1726
|
+
|
|
1727
|
+
|Status|Meaning|Description|Schema|
|
|
1728
|
+
|---|---|---|---|
|
|
1729
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1730
|
+
|
|
1731
|
+
<aside class="success">
|
|
1732
|
+
This operation does not require authentication
|
|
1733
|
+
</aside>
|
|
1734
|
+
|
|
1735
|
+
## post__api_v1_account_admin_openTenant
|
|
1736
|
+
|
|
1737
|
+
`POST /api/v1/account/admin/openTenant`
|
|
1738
|
+
|
|
1739
|
+
> Body parameter
|
|
1740
|
+
|
|
1741
|
+
```json
|
|
1742
|
+
{
|
|
1743
|
+
"type": "object",
|
|
1744
|
+
"required": [
|
|
1745
|
+
"tenantId"
|
|
1746
|
+
],
|
|
1747
|
+
"properties": {
|
|
1748
|
+
"tenantId": {
|
|
1749
|
+
"type": "string"
|
|
1750
|
+
}
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1753
|
+
```
|
|
1754
|
+
|
|
1755
|
+
<h3 id="post__api_v1_account_admin_opentenant-parameters">Parameters</h3>
|
|
1756
|
+
|
|
1757
|
+
|Name|In|Type|Required|Description|
|
|
1758
|
+
|---|---|---|---|---|
|
|
1759
|
+
|body|body|object|true|none|
|
|
1760
|
+
|» tenantId|body|string|true|none|
|
|
1761
|
+
|
|
1762
|
+
<h3 id="post__api_v1_account_admin_opentenant-responses">Responses</h3>
|
|
1763
|
+
|
|
1764
|
+
|Status|Meaning|Description|Schema|
|
|
1765
|
+
|---|---|---|---|
|
|
1766
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1767
|
+
|
|
1768
|
+
<aside class="success">
|
|
1769
|
+
This operation does not require authentication
|
|
1770
|
+
</aside>
|
|
1771
|
+
|
|
1772
|
+
## post__api_v1_account_admin_closeTenantUser
|
|
1773
|
+
|
|
1774
|
+
`POST /api/v1/account/admin/closeTenantUser`
|
|
1775
|
+
|
|
1776
|
+
> Body parameter
|
|
1777
|
+
|
|
1778
|
+
```json
|
|
1779
|
+
{
|
|
1780
|
+
"type": "object",
|
|
1781
|
+
"required": [
|
|
1782
|
+
"tenantId",
|
|
1783
|
+
"tenantUserId"
|
|
1784
|
+
],
|
|
1785
|
+
"properties": {
|
|
1786
|
+
"tenantId": {
|
|
1787
|
+
"type": "string"
|
|
1788
|
+
},
|
|
1789
|
+
"tenantUserId": {
|
|
1790
|
+
"type": "string"
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
1793
|
+
}
|
|
1794
|
+
```
|
|
1795
|
+
|
|
1796
|
+
<h3 id="post__api_v1_account_admin_closetenantuser-parameters">Parameters</h3>
|
|
1797
|
+
|
|
1798
|
+
|Name|In|Type|Required|Description|
|
|
1799
|
+
|---|---|---|---|---|
|
|
1800
|
+
|body|body|object|true|none|
|
|
1801
|
+
|» tenantId|body|string|true|none|
|
|
1802
|
+
|» tenantUserId|body|string|true|none|
|
|
1803
|
+
|
|
1804
|
+
<h3 id="post__api_v1_account_admin_closetenantuser-responses">Responses</h3>
|
|
1805
|
+
|
|
1806
|
+
|Status|Meaning|Description|Schema|
|
|
1807
|
+
|---|---|---|---|
|
|
1808
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1809
|
+
|
|
1810
|
+
<aside class="success">
|
|
1811
|
+
This operation does not require authentication
|
|
1812
|
+
</aside>
|
|
1813
|
+
|
|
1814
|
+
## post__api_v1_account_admin_openTenantUser
|
|
1815
|
+
|
|
1816
|
+
`POST /api/v1/account/admin/openTenantUser`
|
|
1817
|
+
|
|
1818
|
+
> Body parameter
|
|
1819
|
+
|
|
1820
|
+
```json
|
|
1821
|
+
{
|
|
1822
|
+
"type": "object",
|
|
1823
|
+
"required": [
|
|
1824
|
+
"tenantId",
|
|
1825
|
+
"tenantUserId"
|
|
1826
|
+
],
|
|
1827
|
+
"properties": {
|
|
1828
|
+
"tenantId": {
|
|
1829
|
+
"type": "string"
|
|
1830
|
+
},
|
|
1831
|
+
"tenantUserId": {
|
|
1832
|
+
"type": "string"
|
|
1833
|
+
}
|
|
1834
|
+
}
|
|
1835
|
+
}
|
|
1836
|
+
```
|
|
1837
|
+
|
|
1838
|
+
<h3 id="post__api_v1_account_admin_opentenantuser-parameters">Parameters</h3>
|
|
1839
|
+
|
|
1840
|
+
|Name|In|Type|Required|Description|
|
|
1841
|
+
|---|---|---|---|---|
|
|
1842
|
+
|body|body|object|true|none|
|
|
1843
|
+
|» tenantId|body|string|true|none|
|
|
1844
|
+
|» tenantUserId|body|string|true|none|
|
|
1845
|
+
|
|
1846
|
+
<h3 id="post__api_v1_account_admin_opentenantuser-responses">Responses</h3>
|
|
1847
|
+
|
|
1848
|
+
|Status|Meaning|Description|Schema|
|
|
1849
|
+
|---|---|---|---|
|
|
1850
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1851
|
+
|
|
1852
|
+
<aside class="success">
|
|
1853
|
+
This operation does not require authentication
|
|
1854
|
+
</aside>
|
|
1855
|
+
|
|
1856
|
+
## get__api_v1_account_admin_getInviteList
|
|
1857
|
+
|
|
1858
|
+
`GET /api/v1/account/admin/getInviteList`
|
|
1859
|
+
|
|
1860
|
+
<h3 id="get__api_v1_account_admin_getinvitelist-parameters">Parameters</h3>
|
|
1861
|
+
|
|
1862
|
+
|Name|In|Type|Required|Description|
|
|
1863
|
+
|---|---|---|---|---|
|
|
1864
|
+
|tenantId|query|string|true|none|
|
|
1865
|
+
|
|
1866
|
+
<h3 id="get__api_v1_account_admin_getinvitelist-responses">Responses</h3>
|
|
1867
|
+
|
|
1868
|
+
|Status|Meaning|Description|Schema|
|
|
1869
|
+
|---|---|---|---|
|
|
1870
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1871
|
+
|
|
1872
|
+
<aside class="success">
|
|
1873
|
+
This operation does not require authentication
|
|
1874
|
+
</aside>
|
|
1875
|
+
|
|
1876
|
+
## post__api_v1_account_admin_addInviteToken
|
|
1877
|
+
|
|
1878
|
+
`POST /api/v1/account/admin/addInviteToken`
|
|
1879
|
+
|
|
1880
|
+
> Body parameter
|
|
1881
|
+
|
|
1882
|
+
```json
|
|
1883
|
+
{
|
|
1884
|
+
"type": "object",
|
|
1885
|
+
"required": [
|
|
1886
|
+
"tenantId"
|
|
1887
|
+
],
|
|
1888
|
+
"properties": {
|
|
1889
|
+
"tenantId": {
|
|
1890
|
+
"type": "string"
|
|
1891
|
+
},
|
|
1892
|
+
"info": {
|
|
1893
|
+
"type": "object",
|
|
1894
|
+
"properties": {
|
|
1895
|
+
"roleIds": {
|
|
1896
|
+
"type": "array",
|
|
1897
|
+
"items": {
|
|
1898
|
+
"type": "number"
|
|
1899
|
+
},
|
|
1900
|
+
"default": []
|
|
1901
|
+
},
|
|
1902
|
+
"orgIds": {
|
|
1903
|
+
"type": "array",
|
|
1904
|
+
"items": {
|
|
1905
|
+
"type": "number"
|
|
1906
|
+
},
|
|
1907
|
+
"default": []
|
|
1908
|
+
}
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
}
|
|
1912
|
+
}
|
|
1913
|
+
```
|
|
1914
|
+
|
|
1915
|
+
<h3 id="post__api_v1_account_admin_addinvitetoken-parameters">Parameters</h3>
|
|
1916
|
+
|
|
1917
|
+
|Name|In|Type|Required|Description|
|
|
1918
|
+
|---|---|---|---|---|
|
|
1919
|
+
|body|body|object|true|none|
|
|
1920
|
+
|» tenantId|body|string|true|none|
|
|
1921
|
+
|» info|body|object|false|none|
|
|
1922
|
+
|»» roleIds|body|[number]|false|none|
|
|
1923
|
+
|»» orgIds|body|[number]|false|none|
|
|
1924
|
+
|
|
1925
|
+
<h3 id="post__api_v1_account_admin_addinvitetoken-responses">Responses</h3>
|
|
1926
|
+
|
|
1927
|
+
|Status|Meaning|Description|Schema|
|
|
1928
|
+
|---|---|---|---|
|
|
1929
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1930
|
+
|
|
1931
|
+
<aside class="success">
|
|
1932
|
+
This operation does not require authentication
|
|
1933
|
+
</aside>
|
|
1934
|
+
|
|
1935
|
+
## post__api_v1_account_admin_deleteInviteToken
|
|
1936
|
+
|
|
1937
|
+
`POST /api/v1/account/admin/deleteInviteToken`
|
|
1938
|
+
|
|
1939
|
+
> Body parameter
|
|
1940
|
+
|
|
1941
|
+
```json
|
|
1942
|
+
{
|
|
1943
|
+
"type": "object",
|
|
1944
|
+
"required": [
|
|
1945
|
+
"id"
|
|
1946
|
+
],
|
|
1947
|
+
"properties": {
|
|
1948
|
+
"id": {
|
|
1949
|
+
"type": "number"
|
|
1950
|
+
}
|
|
1951
|
+
}
|
|
1952
|
+
}
|
|
1953
|
+
```
|
|
1954
|
+
|
|
1955
|
+
<h3 id="post__api_v1_account_admin_deleteinvitetoken-parameters">Parameters</h3>
|
|
1956
|
+
|
|
1957
|
+
|Name|In|Type|Required|Description|
|
|
1958
|
+
|---|---|---|---|---|
|
|
1959
|
+
|body|body|object|true|none|
|
|
1960
|
+
|» id|body|number|true|none|
|
|
1961
|
+
|
|
1962
|
+
<h3 id="post__api_v1_account_admin_deleteinvitetoken-responses">Responses</h3>
|
|
1963
|
+
|
|
1964
|
+
|Status|Meaning|Description|Schema|
|
|
1965
|
+
|---|---|---|---|
|
|
1966
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1967
|
+
|
|
1968
|
+
<aside class="success">
|
|
1969
|
+
This operation does not require authentication
|
|
1970
|
+
</aside>
|
|
1971
|
+
|
|
1392
1972
|
## get__api_v1_account_tenant_getUserTenant
|
|
1393
1973
|
|
|
1394
1974
|
`GET /api/v1/account/tenant/getUserTenant`
|
|
@@ -1403,11 +1983,25 @@ This operation does not require authentication
|
|
|
1403
1983
|
This operation does not require authentication
|
|
1404
1984
|
</aside>
|
|
1405
1985
|
|
|
1406
|
-
##
|
|
1986
|
+
## get__api_v1_account_tenant_getTenantUserInfo
|
|
1407
1987
|
|
|
1408
|
-
`GET /api/v1/account/tenant/
|
|
1988
|
+
`GET /api/v1/account/tenant/getTenantUserInfo`
|
|
1409
1989
|
|
|
1410
|
-
<h3 id="
|
|
1990
|
+
<h3 id="get__api_v1_account_tenant_gettenantuserinfo-responses">Responses</h3>
|
|
1991
|
+
|
|
1992
|
+
|Status|Meaning|Description|Schema|
|
|
1993
|
+
|---|---|---|---|
|
|
1994
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1995
|
+
|
|
1996
|
+
<aside class="success">
|
|
1997
|
+
This operation does not require authentication
|
|
1998
|
+
</aside>
|
|
1999
|
+
|
|
2000
|
+
## get__api_v1_account_tenant_orgList
|
|
2001
|
+
|
|
2002
|
+
`GET /api/v1/account/tenant/orgList`
|
|
2003
|
+
|
|
2004
|
+
<h3 id="get__api_v1_account_tenant_orglist-responses">Responses</h3>
|
|
1411
2005
|
|
|
1412
2006
|
|Status|Meaning|Description|Schema|
|
|
1413
2007
|
|---|---|---|---|
|
|
@@ -1431,6 +2025,43 @@ This operation does not require authentication
|
|
|
1431
2025
|
This operation does not require authentication
|
|
1432
2026
|
</aside>
|
|
1433
2027
|
|
|
2028
|
+
## post__api_v1_account_setCurrentTenantId
|
|
2029
|
+
|
|
2030
|
+
`POST /api/v1/account/setCurrentTenantId`
|
|
2031
|
+
|
|
2032
|
+
> Body parameter
|
|
2033
|
+
|
|
2034
|
+
```json
|
|
2035
|
+
{
|
|
2036
|
+
"type": "object",
|
|
2037
|
+
"required": [
|
|
2038
|
+
"tenantId"
|
|
2039
|
+
],
|
|
2040
|
+
"properties": {
|
|
2041
|
+
"tenantId": {
|
|
2042
|
+
"type": "string"
|
|
2043
|
+
}
|
|
2044
|
+
}
|
|
2045
|
+
}
|
|
2046
|
+
```
|
|
2047
|
+
|
|
2048
|
+
<h3 id="post__api_v1_account_setcurrenttenantid-parameters">Parameters</h3>
|
|
2049
|
+
|
|
2050
|
+
|Name|In|Type|Required|Description|
|
|
2051
|
+
|---|---|---|---|---|
|
|
2052
|
+
|body|body|object|true|none|
|
|
2053
|
+
|» tenantId|body|string|true|none|
|
|
2054
|
+
|
|
2055
|
+
<h3 id="post__api_v1_account_setcurrenttenantid-responses">Responses</h3>
|
|
2056
|
+
|
|
2057
|
+
|Status|Meaning|Description|Schema|
|
|
2058
|
+
|---|---|---|---|
|
|
2059
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
2060
|
+
|
|
2061
|
+
<aside class="success">
|
|
2062
|
+
This operation does not require authentication
|
|
2063
|
+
</aside>
|
|
2064
|
+
|
|
1434
2065
|
# Schemas
|
|
1435
2066
|
|
|
1436
2067
|
|