@kne/fastify-account 1.0.0-alpha.2 → 1.0.0-alpha.20
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 +2506 -803
- package/index.js +61 -8
- package/libs/controllers/account.js +221 -37
- package/libs/controllers/admin.js +92 -17
- package/libs/controllers/adminPermission.js +188 -38
- package/libs/controllers/adminTenant.js +44 -257
- package/libs/controllers/adminTenantCompany.js +53 -0
- package/libs/controllers/adminTenantOrg.js +71 -0
- package/libs/controllers/{adminRole.js → adminTenantRole.js} +15 -12
- package/libs/controllers/adminTenantUser.js +169 -0
- package/libs/controllers/requestLog.js +77 -0
- package/libs/controllers/tenant.js +4 -14
- package/libs/controllers/tenantCompany.js +54 -0
- package/libs/controllers/tenantOrg.js +65 -0
- package/libs/controllers/tenantRole.js +219 -0
- package/libs/controllers/tenantUser.js +169 -0
- package/libs/controllers/user.js +4 -3
- package/libs/models/admin-role.js +4 -8
- package/libs/models/application.js +16 -10
- package/libs/models/company-info.js +25 -0
- package/libs/models/login-log.js +11 -9
- package/libs/models/permission.js +7 -9
- package/libs/models/request-log.js +43 -0
- 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 +13 -13
- package/libs/models/tenant-role-permission.js +9 -14
- 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 +8 -10
- package/libs/services/account.js +95 -71
- package/libs/services/admin.js +38 -122
- package/libs/services/application.js +170 -0
- package/libs/services/permission.js +161 -163
- package/libs/services/request-log.js +37 -0
- package/libs/services/tenant-company.js +54 -0
- package/libs/services/tenant-invite.js +62 -0
- package/libs/services/tenant-org.js +118 -0
- package/libs/services/tenant-role.js +109 -0
- package/libs/services/tenant-user.js +578 -0
- package/libs/services/tenant.js +69 -670
- package/libs/services/user.js +109 -33
- package/package.json +3 -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-alpha.
|
|
25
|
+
title: "@kne/fastify-account v1.0.0-alpha.18"
|
|
26
26
|
language_tabs:
|
|
27
27
|
- shell: Shell
|
|
28
28
|
- http: HTTP
|
|
@@ -42,7 +42,7 @@ headingLevel: 2
|
|
|
42
42
|
|
|
43
43
|
<!-- Generator: Widdershins v4.0.1 -->
|
|
44
44
|
|
|
45
|
-
<h1 id="-kne-fastify-account">@kne/fastify-account v1.0.0-alpha.
|
|
45
|
+
<h1 id="-kne-fastify-account">@kne/fastify-account v1.0.0-alpha.18</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,9 +50,67 @@ fastify的用户管理账号等实现
|
|
|
50
50
|
|
|
51
51
|
<h1 id="-kne-fastify-account-default">Default</h1>
|
|
52
52
|
|
|
53
|
-
##
|
|
53
|
+
## post__api_v1_account_admin_parsePermissionList
|
|
54
54
|
|
|
55
|
-
`POST /api/v1/account/
|
|
55
|
+
`POST /api/v1/account/admin/parsePermissionList`
|
|
56
|
+
|
|
57
|
+
<h3 id="post__api_v1_account_admin_parsepermissionlist-responses">Responses</h3>
|
|
58
|
+
|
|
59
|
+
|Status|Meaning|Description|Schema|
|
|
60
|
+
|---|---|---|---|
|
|
61
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
62
|
+
|
|
63
|
+
<aside class="success">
|
|
64
|
+
This operation does not require authentication
|
|
65
|
+
</aside>
|
|
66
|
+
|
|
67
|
+
## get__api_v1_account_admin_getAllTenantList
|
|
68
|
+
|
|
69
|
+
`GET /api/v1/account/admin/getAllTenantList`
|
|
70
|
+
|
|
71
|
+
<h3 id="get__api_v1_account_admin_getalltenantlist-parameters">Parameters</h3>
|
|
72
|
+
|
|
73
|
+
|Name|In|Type|Required|Description|
|
|
74
|
+
|---|---|---|---|---|
|
|
75
|
+
|name|query|string|false|none|
|
|
76
|
+
|serviceStartTime|query|string(date-time)|false|none|
|
|
77
|
+
|serviceEndTime|query|string(date-time)|false|none|
|
|
78
|
+
|perPage|query|number|false|none|
|
|
79
|
+
|currentPage|query|number|false|none|
|
|
80
|
+
|
|
81
|
+
<h3 id="get__api_v1_account_admin_getalltenantlist-responses">Responses</h3>
|
|
82
|
+
|
|
83
|
+
|Status|Meaning|Description|Schema|
|
|
84
|
+
|---|---|---|---|
|
|
85
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
86
|
+
|
|
87
|
+
<aside class="success">
|
|
88
|
+
This operation does not require authentication
|
|
89
|
+
</aside>
|
|
90
|
+
|
|
91
|
+
## get__api_v1_account_admin_getTenantInfo
|
|
92
|
+
|
|
93
|
+
`GET /api/v1/account/admin/getTenantInfo`
|
|
94
|
+
|
|
95
|
+
<h3 id="get__api_v1_account_admin_gettenantinfo-parameters">Parameters</h3>
|
|
96
|
+
|
|
97
|
+
|Name|In|Type|Required|Description|
|
|
98
|
+
|---|---|---|---|---|
|
|
99
|
+
|id|query|string|false|none|
|
|
100
|
+
|
|
101
|
+
<h3 id="get__api_v1_account_admin_gettenantinfo-responses">Responses</h3>
|
|
102
|
+
|
|
103
|
+
|Status|Meaning|Description|Schema|
|
|
104
|
+
|---|---|---|---|
|
|
105
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
106
|
+
|
|
107
|
+
<aside class="success">
|
|
108
|
+
This operation does not require authentication
|
|
109
|
+
</aside>
|
|
110
|
+
|
|
111
|
+
## post__api_v1_account_admin_closeTenant
|
|
112
|
+
|
|
113
|
+
`POST /api/v1/account/admin/closeTenant`
|
|
56
114
|
|
|
57
115
|
> Body parameter
|
|
58
116
|
|
|
@@ -60,75 +118,73 @@ fastify的用户管理账号等实现
|
|
|
60
118
|
{
|
|
61
119
|
"type": "object",
|
|
62
120
|
"required": [
|
|
63
|
-
"
|
|
121
|
+
"tenantId"
|
|
64
122
|
],
|
|
65
123
|
"properties": {
|
|
66
|
-
"
|
|
67
|
-
"type": "string"
|
|
68
|
-
"description": "邮箱"
|
|
124
|
+
"tenantId": {
|
|
125
|
+
"type": "string"
|
|
69
126
|
}
|
|
70
127
|
}
|
|
71
128
|
}
|
|
72
129
|
```
|
|
73
130
|
|
|
74
|
-
<h3 id="
|
|
131
|
+
<h3 id="post__api_v1_account_admin_closetenant-parameters">Parameters</h3>
|
|
75
132
|
|
|
76
133
|
|Name|In|Type|Required|Description|
|
|
77
134
|
|---|---|---|---|---|
|
|
78
135
|
|body|body|object|true|none|
|
|
79
|
-
|»
|
|
136
|
+
|» tenantId|body|string|true|none|
|
|
80
137
|
|
|
81
|
-
|
|
138
|
+
<h3 id="post__api_v1_account_admin_closetenant-responses">Responses</h3>
|
|
82
139
|
|
|
83
|
-
|
|
140
|
+
|Status|Meaning|Description|Schema|
|
|
141
|
+
|---|---|---|---|
|
|
142
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
143
|
+
|
|
144
|
+
<aside class="success">
|
|
145
|
+
This operation does not require authentication
|
|
146
|
+
</aside>
|
|
147
|
+
|
|
148
|
+
## post__api_v1_account_admin_openTenant
|
|
149
|
+
|
|
150
|
+
`POST /api/v1/account/admin/openTenant`
|
|
151
|
+
|
|
152
|
+
> Body parameter
|
|
84
153
|
|
|
85
154
|
```json
|
|
86
155
|
{
|
|
87
156
|
"type": "object",
|
|
157
|
+
"required": [
|
|
158
|
+
"tenantId"
|
|
159
|
+
],
|
|
88
160
|
"properties": {
|
|
89
|
-
"
|
|
90
|
-
"type": "number"
|
|
91
|
-
},
|
|
92
|
-
"data": {
|
|
93
|
-
"type": "object",
|
|
94
|
-
"properties": {
|
|
95
|
-
"code": {
|
|
96
|
-
"type": "string",
|
|
97
|
-
"description": "验证码"
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
"msg": {
|
|
161
|
+
"tenantId": {
|
|
102
162
|
"type": "string"
|
|
103
163
|
}
|
|
104
164
|
}
|
|
105
165
|
}
|
|
106
166
|
```
|
|
107
167
|
|
|
108
|
-
<h3 id="
|
|
109
|
-
|
|
110
|
-
|Status|Meaning|Description|Schema|
|
|
111
|
-
|---|---|---|---|
|
|
112
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|Inline|
|
|
168
|
+
<h3 id="post__api_v1_account_admin_opentenant-parameters">Parameters</h3>
|
|
113
169
|
|
|
114
|
-
|
|
170
|
+
|Name|In|Type|Required|Description|
|
|
171
|
+
|---|---|---|---|---|
|
|
172
|
+
|body|body|object|true|none|
|
|
173
|
+
|» tenantId|body|string|true|none|
|
|
115
174
|
|
|
116
|
-
|
|
175
|
+
<h3 id="post__api_v1_account_admin_opentenant-responses">Responses</h3>
|
|
117
176
|
|
|
118
|
-
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|» data|object|false|none|none|
|
|
122
|
-
|»» code|string|false|none|验证码|
|
|
123
|
-
|» msg|string|false|none|none|
|
|
177
|
+
|Status|Meaning|Description|Schema|
|
|
178
|
+
|---|---|---|---|
|
|
179
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
124
180
|
|
|
125
181
|
<aside class="success">
|
|
126
182
|
This operation does not require authentication
|
|
127
183
|
</aside>
|
|
128
184
|
|
|
129
|
-
##
|
|
185
|
+
## post__api_v1_account_admin_addTenant
|
|
130
186
|
|
|
131
|
-
`POST /api/v1/account/
|
|
187
|
+
`POST /api/v1/account/admin/addTenant`
|
|
132
188
|
|
|
133
189
|
> Body parameter
|
|
134
190
|
|
|
@@ -136,25 +192,41 @@ This operation does not require authentication
|
|
|
136
192
|
{
|
|
137
193
|
"type": "object",
|
|
138
194
|
"required": [
|
|
139
|
-
"
|
|
195
|
+
"name",
|
|
196
|
+
"accountNumber",
|
|
197
|
+
"serviceStartTime",
|
|
198
|
+
"serviceEndTime"
|
|
140
199
|
],
|
|
141
200
|
"properties": {
|
|
142
|
-
"
|
|
201
|
+
"name": {
|
|
202
|
+
"type": "string"
|
|
203
|
+
},
|
|
204
|
+
"accountNumber": {
|
|
205
|
+
"type": "number"
|
|
206
|
+
},
|
|
207
|
+
"serviceStartTime": {
|
|
143
208
|
"type": "string",
|
|
144
|
-
"
|
|
209
|
+
"format": "date-time"
|
|
210
|
+
},
|
|
211
|
+
"serviceEndTime": {
|
|
212
|
+
"type": "string",
|
|
213
|
+
"format": "date-time"
|
|
145
214
|
}
|
|
146
215
|
}
|
|
147
216
|
}
|
|
148
217
|
```
|
|
149
218
|
|
|
150
|
-
<h3 id="
|
|
219
|
+
<h3 id="post__api_v1_account_admin_addtenant-parameters">Parameters</h3>
|
|
151
220
|
|
|
152
221
|
|Name|In|Type|Required|Description|
|
|
153
222
|
|---|---|---|---|---|
|
|
154
223
|
|body|body|object|true|none|
|
|
155
|
-
|»
|
|
224
|
+
|» name|body|string|true|none|
|
|
225
|
+
|» accountNumber|body|number|true|none|
|
|
226
|
+
|» serviceStartTime|body|string(date-time)|true|none|
|
|
227
|
+
|» serviceEndTime|body|string(date-time)|true|none|
|
|
156
228
|
|
|
157
|
-
<h3 id="
|
|
229
|
+
<h3 id="post__api_v1_account_admin_addtenant-responses">Responses</h3>
|
|
158
230
|
|
|
159
231
|
|Status|Meaning|Description|Schema|
|
|
160
232
|
|---|---|---|---|
|
|
@@ -164,9 +236,9 @@ This operation does not require authentication
|
|
|
164
236
|
This operation does not require authentication
|
|
165
237
|
</aside>
|
|
166
238
|
|
|
167
|
-
##
|
|
239
|
+
## post__api_v1_account_admin_saveTenant
|
|
168
240
|
|
|
169
|
-
`POST /api/v1/account/
|
|
241
|
+
`POST /api/v1/account/admin/saveTenant`
|
|
170
242
|
|
|
171
243
|
> Body parameter
|
|
172
244
|
|
|
@@ -174,37 +246,46 @@ This operation does not require authentication
|
|
|
174
246
|
{
|
|
175
247
|
"type": "object",
|
|
176
248
|
"required": [
|
|
249
|
+
"id",
|
|
177
250
|
"name",
|
|
178
|
-
"
|
|
179
|
-
"
|
|
251
|
+
"accountNumber",
|
|
252
|
+
"serviceStartTime",
|
|
253
|
+
"serviceEndTime"
|
|
180
254
|
],
|
|
181
255
|
"properties": {
|
|
256
|
+
"id": {
|
|
257
|
+
"type": "string"
|
|
258
|
+
},
|
|
182
259
|
"name": {
|
|
183
|
-
"type": "string"
|
|
184
|
-
"description": "被验证的账号,手机或邮箱"
|
|
260
|
+
"type": "string"
|
|
185
261
|
},
|
|
186
|
-
"
|
|
187
|
-
"type": "number"
|
|
188
|
-
"description": "0:手机注册,1:邮箱注册,2:手机登录,3:邮箱登录,4:验证租户管理员"
|
|
262
|
+
"accountNumber": {
|
|
263
|
+
"type": "number"
|
|
189
264
|
},
|
|
190
|
-
"
|
|
265
|
+
"serviceStartTime": {
|
|
191
266
|
"type": "string",
|
|
192
|
-
"
|
|
267
|
+
"format": "date-time"
|
|
268
|
+
},
|
|
269
|
+
"serviceEndTime": {
|
|
270
|
+
"type": "string",
|
|
271
|
+
"format": "date-time"
|
|
193
272
|
}
|
|
194
273
|
}
|
|
195
274
|
}
|
|
196
275
|
```
|
|
197
276
|
|
|
198
|
-
<h3 id="
|
|
277
|
+
<h3 id="post__api_v1_account_admin_savetenant-parameters">Parameters</h3>
|
|
199
278
|
|
|
200
279
|
|Name|In|Type|Required|Description|
|
|
201
280
|
|---|---|---|---|---|
|
|
202
281
|
|body|body|object|true|none|
|
|
203
|
-
|»
|
|
204
|
-
|»
|
|
205
|
-
|»
|
|
282
|
+
|» id|body|string|true|none|
|
|
283
|
+
|» name|body|string|true|none|
|
|
284
|
+
|» accountNumber|body|number|true|none|
|
|
285
|
+
|» serviceStartTime|body|string(date-time)|true|none|
|
|
286
|
+
|» serviceEndTime|body|string(date-time)|true|none|
|
|
206
287
|
|
|
207
|
-
<h3 id="
|
|
288
|
+
<h3 id="post__api_v1_account_admin_savetenant-responses">Responses</h3>
|
|
208
289
|
|
|
209
290
|
|Status|Meaning|Description|Schema|
|
|
210
291
|
|---|---|---|---|
|
|
@@ -214,48 +295,17 @@ This operation does not require authentication
|
|
|
214
295
|
This operation does not require authentication
|
|
215
296
|
</aside>
|
|
216
297
|
|
|
217
|
-
##
|
|
218
|
-
|
|
219
|
-
`POST /api/v1/account/accountIsExists`
|
|
220
|
-
|
|
221
|
-
> Body parameter
|
|
298
|
+
## get__api_v1_account_admin_getInviteList
|
|
222
299
|
|
|
223
|
-
|
|
224
|
-
{
|
|
225
|
-
"oneOf": [
|
|
226
|
-
{
|
|
227
|
-
"type": "object",
|
|
228
|
-
"required": [
|
|
229
|
-
"phone"
|
|
230
|
-
],
|
|
231
|
-
"properties": {
|
|
232
|
-
"phone": {
|
|
233
|
-
"type": "string"
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
"type": "object",
|
|
239
|
-
"required": [
|
|
240
|
-
"email"
|
|
241
|
-
],
|
|
242
|
-
"properties": {
|
|
243
|
-
"email": {
|
|
244
|
-
"type": "string"
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
]
|
|
249
|
-
}
|
|
250
|
-
```
|
|
300
|
+
`GET /api/v1/account/admin/getInviteList`
|
|
251
301
|
|
|
252
|
-
<h3 id="
|
|
302
|
+
<h3 id="get__api_v1_account_admin_getinvitelist-parameters">Parameters</h3>
|
|
253
303
|
|
|
254
304
|
|Name|In|Type|Required|Description|
|
|
255
305
|
|---|---|---|---|---|
|
|
256
|
-
|
|
|
306
|
+
|tenantId|query|string|true|none|
|
|
257
307
|
|
|
258
|
-
<h3 id="
|
|
308
|
+
<h3 id="get__api_v1_account_admin_getinvitelist-responses">Responses</h3>
|
|
259
309
|
|
|
260
310
|
|Status|Meaning|Description|Schema|
|
|
261
311
|
|---|---|---|---|
|
|
@@ -265,102 +315,56 @@ This operation does not require authentication
|
|
|
265
315
|
This operation does not require authentication
|
|
266
316
|
</aside>
|
|
267
317
|
|
|
268
|
-
##
|
|
318
|
+
## post__api_v1_account_admin_addInviteToken
|
|
269
319
|
|
|
270
|
-
`POST /api/v1/account/
|
|
320
|
+
`POST /api/v1/account/admin/addInviteToken`
|
|
271
321
|
|
|
272
322
|
> Body parameter
|
|
273
323
|
|
|
274
324
|
```json
|
|
275
325
|
{
|
|
276
|
-
"
|
|
277
|
-
|
|
326
|
+
"type": "object",
|
|
327
|
+
"required": [
|
|
328
|
+
"tenantId"
|
|
329
|
+
],
|
|
330
|
+
"properties": {
|
|
331
|
+
"tenantId": {
|
|
332
|
+
"type": "string"
|
|
333
|
+
},
|
|
334
|
+
"info": {
|
|
278
335
|
"type": "object",
|
|
279
|
-
"required": [
|
|
280
|
-
"phone",
|
|
281
|
-
"password",
|
|
282
|
-
"code"
|
|
283
|
-
],
|
|
284
336
|
"properties": {
|
|
285
|
-
"
|
|
286
|
-
"type": "
|
|
337
|
+
"roleIds": {
|
|
338
|
+
"type": "array",
|
|
339
|
+
"items": {
|
|
340
|
+
"type": "number"
|
|
341
|
+
},
|
|
342
|
+
"default": []
|
|
287
343
|
},
|
|
288
|
-
"
|
|
289
|
-
"type": "
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
"password": {
|
|
295
|
-
"type": "string"
|
|
296
|
-
},
|
|
297
|
-
"invitationCode": {
|
|
298
|
-
"type": "string"
|
|
299
|
-
},
|
|
300
|
-
"nickname": {
|
|
301
|
-
"type": "string"
|
|
302
|
-
},
|
|
303
|
-
"gender": {
|
|
304
|
-
"type": "string"
|
|
305
|
-
},
|
|
306
|
-
"birthday": {
|
|
307
|
-
"type": "string",
|
|
308
|
-
"format": "date"
|
|
309
|
-
},
|
|
310
|
-
"description": {
|
|
311
|
-
"type": "string"
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
"type": "object",
|
|
317
|
-
"required": [
|
|
318
|
-
"email",
|
|
319
|
-
"password",
|
|
320
|
-
"code"
|
|
321
|
-
],
|
|
322
|
-
"properties": {
|
|
323
|
-
"avatar": {
|
|
324
|
-
"type": "string"
|
|
325
|
-
},
|
|
326
|
-
"email": {
|
|
327
|
-
"type": "string"
|
|
328
|
-
},
|
|
329
|
-
"code": {
|
|
330
|
-
"type": "string"
|
|
331
|
-
},
|
|
332
|
-
"password": {
|
|
333
|
-
"type": "string"
|
|
334
|
-
},
|
|
335
|
-
"invitationCode": {
|
|
336
|
-
"type": "string"
|
|
337
|
-
},
|
|
338
|
-
"nickname": {
|
|
339
|
-
"type": "string"
|
|
340
|
-
},
|
|
341
|
-
"gender": {
|
|
342
|
-
"type": "string"
|
|
343
|
-
},
|
|
344
|
-
"birthday": {
|
|
345
|
-
"type": "string",
|
|
346
|
-
"format": "date"
|
|
347
|
-
},
|
|
348
|
-
"description": {
|
|
349
|
-
"type": "string"
|
|
344
|
+
"orgIds": {
|
|
345
|
+
"type": "array",
|
|
346
|
+
"items": {
|
|
347
|
+
"type": "number"
|
|
348
|
+
},
|
|
349
|
+
"default": []
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
-
|
|
353
|
+
}
|
|
354
354
|
}
|
|
355
355
|
```
|
|
356
356
|
|
|
357
|
-
<h3 id="
|
|
357
|
+
<h3 id="post__api_v1_account_admin_addinvitetoken-parameters">Parameters</h3>
|
|
358
358
|
|
|
359
359
|
|Name|In|Type|Required|Description|
|
|
360
360
|
|---|---|---|---|---|
|
|
361
|
-
|body|body|
|
|
361
|
+
|body|body|object|true|none|
|
|
362
|
+
|» tenantId|body|string|true|none|
|
|
363
|
+
|» info|body|object|false|none|
|
|
364
|
+
|»» roleIds|body|[number]|false|none|
|
|
365
|
+
|»» orgIds|body|[number]|false|none|
|
|
362
366
|
|
|
363
|
-
<h3 id="
|
|
367
|
+
<h3 id="post__api_v1_account_admin_addinvitetoken-responses">Responses</h3>
|
|
364
368
|
|
|
365
369
|
|Status|Meaning|Description|Schema|
|
|
366
370
|
|---|---|---|---|
|
|
@@ -370,9 +374,9 @@ This operation does not require authentication
|
|
|
370
374
|
This operation does not require authentication
|
|
371
375
|
</aside>
|
|
372
376
|
|
|
373
|
-
##
|
|
377
|
+
## post__api_v1_account_admin_deleteInviteToken
|
|
374
378
|
|
|
375
|
-
`POST /api/v1/account/
|
|
379
|
+
`POST /api/v1/account/admin/deleteInviteToken`
|
|
376
380
|
|
|
377
381
|
> Body parameter
|
|
378
382
|
|
|
@@ -380,29 +384,24 @@ This operation does not require authentication
|
|
|
380
384
|
{
|
|
381
385
|
"type": "object",
|
|
382
386
|
"required": [
|
|
383
|
-
"
|
|
384
|
-
"password"
|
|
387
|
+
"id"
|
|
385
388
|
],
|
|
386
389
|
"properties": {
|
|
387
|
-
"
|
|
388
|
-
"type": "
|
|
389
|
-
},
|
|
390
|
-
"password": {
|
|
391
|
-
"type": "string"
|
|
390
|
+
"id": {
|
|
391
|
+
"type": "number"
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
395
|
```
|
|
396
396
|
|
|
397
|
-
<h3 id="
|
|
397
|
+
<h3 id="post__api_v1_account_admin_deleteinvitetoken-parameters">Parameters</h3>
|
|
398
398
|
|
|
399
399
|
|Name|In|Type|Required|Description|
|
|
400
400
|
|---|---|---|---|---|
|
|
401
401
|
|body|body|object|true|none|
|
|
402
|
-
|»
|
|
403
|
-
|» password|body|string|true|none|
|
|
402
|
+
|» id|body|number|true|none|
|
|
404
403
|
|
|
405
|
-
<h3 id="
|
|
404
|
+
<h3 id="post__api_v1_account_admin_deleteinvitetoken-responses">Responses</h3>
|
|
406
405
|
|
|
407
406
|
|Status|Meaning|Description|Schema|
|
|
408
407
|
|---|---|---|---|
|
|
@@ -412,11 +411,11 @@ This operation does not require authentication
|
|
|
412
411
|
This operation does not require authentication
|
|
413
412
|
</aside>
|
|
414
413
|
|
|
415
|
-
##
|
|
414
|
+
## post__api_v1_account_admin_tenant_addOrg
|
|
416
415
|
|
|
417
|
-
`POST /api/v1/account/
|
|
416
|
+
`POST /api/v1/account/admin/tenant/addOrg`
|
|
418
417
|
|
|
419
|
-
<h3 id="
|
|
418
|
+
<h3 id="post__api_v1_account_admin_tenant_addorg-responses">Responses</h3>
|
|
420
419
|
|
|
421
420
|
|Status|Meaning|Description|Schema|
|
|
422
421
|
|---|---|---|---|
|
|
@@ -426,11 +425,17 @@ This operation does not require authentication
|
|
|
426
425
|
This operation does not require authentication
|
|
427
426
|
</aside>
|
|
428
427
|
|
|
429
|
-
##
|
|
428
|
+
## get__api_v1_account_admin_tenant_orgList
|
|
430
429
|
|
|
431
|
-
`GET /api/v1/account/admin/
|
|
430
|
+
`GET /api/v1/account/admin/tenant/orgList`
|
|
432
431
|
|
|
433
|
-
<h3 id="
|
|
432
|
+
<h3 id="get__api_v1_account_admin_tenant_orglist-parameters">Parameters</h3>
|
|
433
|
+
|
|
434
|
+
|Name|In|Type|Required|Description|
|
|
435
|
+
|---|---|---|---|---|
|
|
436
|
+
|id|query|string|false|none|
|
|
437
|
+
|
|
438
|
+
<h3 id="get__api_v1_account_admin_tenant_orglist-responses">Responses</h3>
|
|
434
439
|
|
|
435
440
|
|Status|Meaning|Description|Schema|
|
|
436
441
|
|---|---|---|---|
|
|
@@ -440,26 +445,25 @@ This operation does not require authentication
|
|
|
440
445
|
This operation does not require authentication
|
|
441
446
|
</aside>
|
|
442
447
|
|
|
443
|
-
##
|
|
448
|
+
## post__api_v1_account_admin_tenant_editOrg
|
|
444
449
|
|
|
445
|
-
`POST /api/v1/account/admin/
|
|
450
|
+
`POST /api/v1/account/admin/tenant/editOrg`
|
|
446
451
|
|
|
447
|
-
>
|
|
452
|
+
<h3 id="post__api_v1_account_admin_tenant_editorg-responses">Responses</h3>
|
|
448
453
|
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
"properties": {}
|
|
453
|
-
}
|
|
454
|
-
```
|
|
454
|
+
|Status|Meaning|Description|Schema|
|
|
455
|
+
|---|---|---|---|
|
|
456
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
455
457
|
|
|
456
|
-
<
|
|
458
|
+
<aside class="success">
|
|
459
|
+
This operation does not require authentication
|
|
460
|
+
</aside>
|
|
457
461
|
|
|
458
|
-
|
|
459
|
-
|---|---|---|---|---|
|
|
460
|
-
|body|body|object|false|none|
|
|
462
|
+
## post__api_v1_account_admin_tenant_removeOrg
|
|
461
463
|
|
|
462
|
-
|
|
464
|
+
`POST /api/v1/account/admin/tenant/removeOrg`
|
|
465
|
+
|
|
466
|
+
<h3 id="post__api_v1_account_admin_tenant_removeorg-responses">Responses</h3>
|
|
463
467
|
|
|
464
468
|
|Status|Meaning|Description|Schema|
|
|
465
469
|
|---|---|---|---|
|
|
@@ -469,11 +473,20 @@ This operation does not require authentication
|
|
|
469
473
|
This operation does not require authentication
|
|
470
474
|
</aside>
|
|
471
475
|
|
|
472
|
-
##
|
|
476
|
+
## get__api_v1_account_admin_getRoleList
|
|
473
477
|
|
|
474
|
-
`GET /api/v1/account/admin/
|
|
478
|
+
`GET /api/v1/account/admin/getRoleList`
|
|
475
479
|
|
|
476
|
-
<h3 id="
|
|
480
|
+
<h3 id="get__api_v1_account_admin_getrolelist-parameters">Parameters</h3>
|
|
481
|
+
|
|
482
|
+
|Name|In|Type|Required|Description|
|
|
483
|
+
|---|---|---|---|---|
|
|
484
|
+
|tenantId|query|string|true|none|
|
|
485
|
+
|perPage|query|number|false|none|
|
|
486
|
+
|currentPage|query|number|false|none|
|
|
487
|
+
|filter|query|object|false|none|
|
|
488
|
+
|
|
489
|
+
<h3 id="get__api_v1_account_admin_getrolelist-responses">Responses</h3>
|
|
477
490
|
|
|
478
491
|
|Status|Meaning|Description|Schema|
|
|
479
492
|
|---|---|---|---|
|
|
@@ -483,9 +496,9 @@ This operation does not require authentication
|
|
|
483
496
|
This operation does not require authentication
|
|
484
497
|
</aside>
|
|
485
498
|
|
|
486
|
-
##
|
|
499
|
+
## post__api_v1_account_admin_addRole
|
|
487
500
|
|
|
488
|
-
`POST /api/v1/account/admin/
|
|
501
|
+
`POST /api/v1/account/admin/addRole`
|
|
489
502
|
|
|
490
503
|
> Body parameter
|
|
491
504
|
|
|
@@ -493,29 +506,33 @@ This operation does not require authentication
|
|
|
493
506
|
{
|
|
494
507
|
"type": "object",
|
|
495
508
|
"required": [
|
|
496
|
-
"
|
|
497
|
-
"
|
|
509
|
+
"tenantId",
|
|
510
|
+
"name"
|
|
498
511
|
],
|
|
499
512
|
"properties": {
|
|
500
|
-
"
|
|
513
|
+
"tenantId": {
|
|
501
514
|
"type": "string"
|
|
502
515
|
},
|
|
503
|
-
"
|
|
516
|
+
"name": {
|
|
517
|
+
"type": "string"
|
|
518
|
+
},
|
|
519
|
+
"description": {
|
|
504
520
|
"type": "string"
|
|
505
521
|
}
|
|
506
522
|
}
|
|
507
523
|
}
|
|
508
524
|
```
|
|
509
525
|
|
|
510
|
-
<h3 id="
|
|
526
|
+
<h3 id="post__api_v1_account_admin_addrole-parameters">Parameters</h3>
|
|
511
527
|
|
|
512
528
|
|Name|In|Type|Required|Description|
|
|
513
529
|
|---|---|---|---|---|
|
|
514
530
|
|body|body|object|true|none|
|
|
515
|
-
|»
|
|
516
|
-
|»
|
|
531
|
+
|» tenantId|body|string|true|none|
|
|
532
|
+
|» name|body|string|true|none|
|
|
533
|
+
|» description|body|string|false|none|
|
|
517
534
|
|
|
518
|
-
<h3 id="
|
|
535
|
+
<h3 id="post__api_v1_account_admin_addrole-responses">Responses</h3>
|
|
519
536
|
|
|
520
537
|
|Status|Meaning|Description|Schema|
|
|
521
538
|
|---|---|---|---|
|
|
@@ -525,9 +542,9 @@ This operation does not require authentication
|
|
|
525
542
|
This operation does not require authentication
|
|
526
543
|
</aside>
|
|
527
544
|
|
|
528
|
-
##
|
|
545
|
+
## post__api_v1_account_admin_saveRole
|
|
529
546
|
|
|
530
|
-
`POST /api/v1/account/admin/
|
|
547
|
+
`POST /api/v1/account/admin/saveRole`
|
|
531
548
|
|
|
532
549
|
> Body parameter
|
|
533
550
|
|
|
@@ -535,22 +552,14 @@ This operation does not require authentication
|
|
|
535
552
|
{
|
|
536
553
|
"type": "object",
|
|
537
554
|
"required": [
|
|
555
|
+
"name",
|
|
538
556
|
"id"
|
|
539
557
|
],
|
|
540
558
|
"properties": {
|
|
541
559
|
"id": {
|
|
542
|
-
"type": "
|
|
543
|
-
},
|
|
544
|
-
"avatar": {
|
|
545
|
-
"type": "string"
|
|
546
|
-
},
|
|
547
|
-
"nickname": {
|
|
548
|
-
"type": "string"
|
|
549
|
-
},
|
|
550
|
-
"phone": {
|
|
551
|
-
"type": "string"
|
|
560
|
+
"type": "number"
|
|
552
561
|
},
|
|
553
|
-
"
|
|
562
|
+
"name": {
|
|
554
563
|
"type": "string"
|
|
555
564
|
},
|
|
556
565
|
"description": {
|
|
@@ -560,19 +569,16 @@ This operation does not require authentication
|
|
|
560
569
|
}
|
|
561
570
|
```
|
|
562
571
|
|
|
563
|
-
<h3 id="
|
|
572
|
+
<h3 id="post__api_v1_account_admin_saverole-parameters">Parameters</h3>
|
|
564
573
|
|
|
565
574
|
|Name|In|Type|Required|Description|
|
|
566
575
|
|---|---|---|---|---|
|
|
567
576
|
|body|body|object|true|none|
|
|
568
|
-
|» id|body|
|
|
569
|
-
|»
|
|
570
|
-
|» nickname|body|string|false|none|
|
|
571
|
-
|» phone|body|string|false|none|
|
|
572
|
-
|» email|body|string|false|none|
|
|
577
|
+
|» id|body|number|true|none|
|
|
578
|
+
|» name|body|string|true|none|
|
|
573
579
|
|» description|body|string|false|none|
|
|
574
580
|
|
|
575
|
-
<h3 id="
|
|
581
|
+
<h3 id="post__api_v1_account_admin_saverole-responses">Responses</h3>
|
|
576
582
|
|
|
577
583
|
|Status|Meaning|Description|Schema|
|
|
578
584
|
|---|---|---|---|
|
|
@@ -582,9 +588,9 @@ This operation does not require authentication
|
|
|
582
588
|
This operation does not require authentication
|
|
583
589
|
</aside>
|
|
584
590
|
|
|
585
|
-
##
|
|
591
|
+
## post__api_v1_account_admin_removeRole
|
|
586
592
|
|
|
587
|
-
`POST /api/v1/account/admin/
|
|
593
|
+
`POST /api/v1/account/admin/removeRole`
|
|
588
594
|
|
|
589
595
|
> Body parameter
|
|
590
596
|
|
|
@@ -596,20 +602,20 @@ This operation does not require authentication
|
|
|
596
602
|
],
|
|
597
603
|
"properties": {
|
|
598
604
|
"id": {
|
|
599
|
-
"type": "
|
|
605
|
+
"type": "number"
|
|
600
606
|
}
|
|
601
607
|
}
|
|
602
608
|
}
|
|
603
609
|
```
|
|
604
610
|
|
|
605
|
-
<h3 id="
|
|
611
|
+
<h3 id="post__api_v1_account_admin_removerole-parameters">Parameters</h3>
|
|
606
612
|
|
|
607
613
|
|Name|In|Type|Required|Description|
|
|
608
614
|
|---|---|---|---|---|
|
|
609
615
|
|body|body|object|true|none|
|
|
610
|
-
|» id|body|
|
|
616
|
+
|» id|body|number|true|none|
|
|
611
617
|
|
|
612
|
-
<h3 id="
|
|
618
|
+
<h3 id="post__api_v1_account_admin_removerole-responses">Responses</h3>
|
|
613
619
|
|
|
614
620
|
|Status|Meaning|Description|Schema|
|
|
615
621
|
|---|---|---|---|
|
|
@@ -619,34 +625,17 @@ This operation does not require authentication
|
|
|
619
625
|
This operation does not require authentication
|
|
620
626
|
</aside>
|
|
621
627
|
|
|
622
|
-
##
|
|
623
|
-
|
|
624
|
-
`POST /api/v1/account/admin/openUser`
|
|
625
|
-
|
|
626
|
-
> Body parameter
|
|
628
|
+
## get__api_v1_account_admin_getRolePermissionList
|
|
627
629
|
|
|
628
|
-
|
|
629
|
-
{
|
|
630
|
-
"type": "object",
|
|
631
|
-
"required": [
|
|
632
|
-
"id"
|
|
633
|
-
],
|
|
634
|
-
"properties": {
|
|
635
|
-
"id": {
|
|
636
|
-
"type": "string"
|
|
637
|
-
}
|
|
638
|
-
}
|
|
639
|
-
}
|
|
640
|
-
```
|
|
630
|
+
`GET /api/v1/account/admin/getRolePermissionList`
|
|
641
631
|
|
|
642
|
-
<h3 id="
|
|
632
|
+
<h3 id="get__api_v1_account_admin_getrolepermissionlist-parameters">Parameters</h3>
|
|
643
633
|
|
|
644
634
|
|Name|In|Type|Required|Description|
|
|
645
635
|
|---|---|---|---|---|
|
|
646
|
-
|
|
|
647
|
-
|» id|body|string|true|none|
|
|
636
|
+
|id|query|number|true|none|
|
|
648
637
|
|
|
649
|
-
<h3 id="
|
|
638
|
+
<h3 id="get__api_v1_account_admin_getrolepermissionlist-responses">Responses</h3>
|
|
650
639
|
|
|
651
640
|
|Status|Meaning|Description|Schema|
|
|
652
641
|
|---|---|---|---|
|
|
@@ -656,30 +645,88 @@ This operation does not require authentication
|
|
|
656
645
|
This operation does not require authentication
|
|
657
646
|
</aside>
|
|
658
647
|
|
|
659
|
-
##
|
|
648
|
+
## post__api_v1_account_admin_saveRolePermissionList
|
|
660
649
|
|
|
661
|
-
`POST /api/v1/account/admin/
|
|
650
|
+
`POST /api/v1/account/admin/saveRolePermissionList`
|
|
662
651
|
|
|
663
|
-
>
|
|
652
|
+
<h3 id="post__api_v1_account_admin_saverolepermissionlist-responses">Responses</h3>
|
|
664
653
|
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
654
|
+
|Status|Meaning|Description|Schema|
|
|
655
|
+
|---|---|---|---|
|
|
656
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
657
|
+
|
|
658
|
+
<aside class="success">
|
|
659
|
+
This operation does not require authentication
|
|
660
|
+
</aside>
|
|
661
|
+
|
|
662
|
+
## get__api_v1_account_admin_getTenantUserList
|
|
663
|
+
|
|
664
|
+
`GET /api/v1/account/admin/getTenantUserList`
|
|
665
|
+
|
|
666
|
+
<h3 id="get__api_v1_account_admin_gettenantuserlist-parameters">Parameters</h3>
|
|
667
|
+
|
|
668
|
+
|Name|In|Type|Required|Description|
|
|
669
|
+
|---|---|---|---|---|
|
|
670
|
+
|tenantId|query|string|true|none|
|
|
671
|
+
|filter|query|object|false|none|
|
|
672
|
+
|currentPage|query|number|false|none|
|
|
673
|
+
|perPage|query|number|false|none|
|
|
674
|
+
|
|
675
|
+
<h3 id="get__api_v1_account_admin_gettenantuserlist-responses">Responses</h3>
|
|
676
|
+
|
|
677
|
+
|Status|Meaning|Description|Schema|
|
|
678
|
+
|---|---|---|---|
|
|
679
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
680
|
+
|
|
681
|
+
<aside class="success">
|
|
682
|
+
This operation does not require authentication
|
|
683
|
+
</aside>
|
|
684
|
+
|
|
685
|
+
## post__api_v1_account_admin_addTenantUser
|
|
686
|
+
|
|
687
|
+
`POST /api/v1/account/admin/addTenantUser`
|
|
688
|
+
|
|
689
|
+
> Body parameter
|
|
690
|
+
|
|
691
|
+
```json
|
|
692
|
+
{
|
|
693
|
+
"type": "object",
|
|
694
|
+
"required": [
|
|
695
|
+
"tenantId",
|
|
696
|
+
"userId",
|
|
697
|
+
"name"
|
|
698
|
+
],
|
|
699
|
+
"properties": {
|
|
700
|
+
"tenantId": {
|
|
680
701
|
"type": "string"
|
|
681
702
|
},
|
|
682
|
-
"
|
|
703
|
+
"roleIds": {
|
|
704
|
+
"type": "array",
|
|
705
|
+
"items": {
|
|
706
|
+
"type": "number"
|
|
707
|
+
},
|
|
708
|
+
"default": []
|
|
709
|
+
},
|
|
710
|
+
"orgIds": {
|
|
711
|
+
"type": "array",
|
|
712
|
+
"items": {
|
|
713
|
+
"type": "number"
|
|
714
|
+
},
|
|
715
|
+
"default": []
|
|
716
|
+
},
|
|
717
|
+
"userId": {
|
|
718
|
+
"type": "string"
|
|
719
|
+
},
|
|
720
|
+
"name": {
|
|
721
|
+
"type": "string"
|
|
722
|
+
},
|
|
723
|
+
"avatar": {
|
|
724
|
+
"type": "string"
|
|
725
|
+
},
|
|
726
|
+
"phone": {
|
|
727
|
+
"type": "string"
|
|
728
|
+
},
|
|
729
|
+
"email": {
|
|
683
730
|
"type": "string"
|
|
684
731
|
},
|
|
685
732
|
"description": {
|
|
@@ -689,18 +736,22 @@ This operation does not require authentication
|
|
|
689
736
|
}
|
|
690
737
|
```
|
|
691
738
|
|
|
692
|
-
<h3 id="
|
|
739
|
+
<h3 id="post__api_v1_account_admin_addtenantuser-parameters">Parameters</h3>
|
|
693
740
|
|
|
694
741
|
|Name|In|Type|Required|Description|
|
|
695
742
|
|---|---|---|---|---|
|
|
696
743
|
|body|body|object|true|none|
|
|
744
|
+
|» tenantId|body|string|true|none|
|
|
745
|
+
|» roleIds|body|[number]|false|none|
|
|
746
|
+
|» orgIds|body|[number]|false|none|
|
|
747
|
+
|» userId|body|string|true|none|
|
|
697
748
|
|» name|body|string|true|none|
|
|
698
|
-
|» url|body|string|false|none|
|
|
699
749
|
|» avatar|body|string|false|none|
|
|
700
|
-
|»
|
|
750
|
+
|» phone|body|string|false|none|
|
|
751
|
+
|» email|body|string|false|none|
|
|
701
752
|
|» description|body|string|false|none|
|
|
702
753
|
|
|
703
|
-
<h3 id="
|
|
754
|
+
<h3 id="post__api_v1_account_admin_addtenantuser-responses">Responses</h3>
|
|
704
755
|
|
|
705
756
|
|Status|Meaning|Description|Schema|
|
|
706
757
|
|---|---|---|---|
|
|
@@ -710,9 +761,9 @@ This operation does not require authentication
|
|
|
710
761
|
This operation does not require authentication
|
|
711
762
|
</aside>
|
|
712
763
|
|
|
713
|
-
##
|
|
764
|
+
## post__api_v1_account_admin_saveTenantUser
|
|
714
765
|
|
|
715
|
-
`POST /api/v1/account/admin/
|
|
766
|
+
`POST /api/v1/account/admin/saveTenantUser`
|
|
716
767
|
|
|
717
768
|
> Body parameter
|
|
718
769
|
|
|
@@ -720,16 +771,26 @@ This operation does not require authentication
|
|
|
720
771
|
{
|
|
721
772
|
"type": "object",
|
|
722
773
|
"required": [
|
|
723
|
-
"
|
|
724
|
-
"name"
|
|
725
|
-
"code"
|
|
774
|
+
"tenantId",
|
|
775
|
+
"name"
|
|
726
776
|
],
|
|
727
777
|
"properties": {
|
|
728
|
-
"
|
|
778
|
+
"tenantId": {
|
|
729
779
|
"type": "string"
|
|
730
780
|
},
|
|
731
|
-
"
|
|
732
|
-
"type": "
|
|
781
|
+
"roleIds": {
|
|
782
|
+
"type": "array",
|
|
783
|
+
"items": {
|
|
784
|
+
"type": "number"
|
|
785
|
+
},
|
|
786
|
+
"default": []
|
|
787
|
+
},
|
|
788
|
+
"orgIds": {
|
|
789
|
+
"type": "array",
|
|
790
|
+
"items": {
|
|
791
|
+
"type": "number"
|
|
792
|
+
},
|
|
793
|
+
"default": []
|
|
733
794
|
},
|
|
734
795
|
"name": {
|
|
735
796
|
"type": "string"
|
|
@@ -737,29 +798,1313 @@ This operation does not require authentication
|
|
|
737
798
|
"avatar": {
|
|
738
799
|
"type": "string"
|
|
739
800
|
},
|
|
740
|
-
"
|
|
801
|
+
"phone": {
|
|
802
|
+
"type": "string"
|
|
803
|
+
},
|
|
804
|
+
"email": {
|
|
741
805
|
"type": "string"
|
|
742
806
|
},
|
|
743
807
|
"description": {
|
|
744
808
|
"type": "string"
|
|
745
809
|
}
|
|
746
|
-
}
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
```
|
|
813
|
+
|
|
814
|
+
<h3 id="post__api_v1_account_admin_savetenantuser-parameters">Parameters</h3>
|
|
815
|
+
|
|
816
|
+
|Name|In|Type|Required|Description|
|
|
817
|
+
|---|---|---|---|---|
|
|
818
|
+
|body|body|object|true|none|
|
|
819
|
+
|» tenantId|body|string|true|none|
|
|
820
|
+
|» roleIds|body|[number]|false|none|
|
|
821
|
+
|» orgIds|body|[number]|false|none|
|
|
822
|
+
|» name|body|string|true|none|
|
|
823
|
+
|» avatar|body|string|false|none|
|
|
824
|
+
|» phone|body|string|false|none|
|
|
825
|
+
|» email|body|string|false|none|
|
|
826
|
+
|» description|body|string|false|none|
|
|
827
|
+
|
|
828
|
+
<h3 id="post__api_v1_account_admin_savetenantuser-responses">Responses</h3>
|
|
829
|
+
|
|
830
|
+
|Status|Meaning|Description|Schema|
|
|
831
|
+
|---|---|---|---|
|
|
832
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
833
|
+
|
|
834
|
+
<aside class="success">
|
|
835
|
+
This operation does not require authentication
|
|
836
|
+
</aside>
|
|
837
|
+
|
|
838
|
+
## post__api_v1_account_admin_deleteTenantUser
|
|
839
|
+
|
|
840
|
+
`POST /api/v1/account/admin/deleteTenantUser`
|
|
841
|
+
|
|
842
|
+
> Body parameter
|
|
843
|
+
|
|
844
|
+
```json
|
|
845
|
+
{
|
|
846
|
+
"type": "object",
|
|
847
|
+
"required": [
|
|
848
|
+
"tenantId",
|
|
849
|
+
"tenantUserId"
|
|
850
|
+
],
|
|
851
|
+
"properties": {
|
|
852
|
+
"tenantId": {
|
|
853
|
+
"type": "string"
|
|
854
|
+
},
|
|
855
|
+
"tenantUserId": {
|
|
856
|
+
"type": "string"
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
```
|
|
861
|
+
|
|
862
|
+
<h3 id="post__api_v1_account_admin_deletetenantuser-parameters">Parameters</h3>
|
|
863
|
+
|
|
864
|
+
|Name|In|Type|Required|Description|
|
|
865
|
+
|---|---|---|---|---|
|
|
866
|
+
|body|body|object|true|none|
|
|
867
|
+
|» tenantId|body|string|true|none|
|
|
868
|
+
|» tenantUserId|body|string|true|none|
|
|
869
|
+
|
|
870
|
+
<h3 id="post__api_v1_account_admin_deletetenantuser-responses">Responses</h3>
|
|
871
|
+
|
|
872
|
+
|Status|Meaning|Description|Schema|
|
|
873
|
+
|---|---|---|---|
|
|
874
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
875
|
+
|
|
876
|
+
<aside class="success">
|
|
877
|
+
This operation does not require authentication
|
|
878
|
+
</aside>
|
|
879
|
+
|
|
880
|
+
## post__api_v1_account_admin_closeTenantUser
|
|
881
|
+
|
|
882
|
+
`POST /api/v1/account/admin/closeTenantUser`
|
|
883
|
+
|
|
884
|
+
> Body parameter
|
|
885
|
+
|
|
886
|
+
```json
|
|
887
|
+
{
|
|
888
|
+
"type": "object",
|
|
889
|
+
"required": [
|
|
890
|
+
"tenantId",
|
|
891
|
+
"tenantUserId"
|
|
892
|
+
],
|
|
893
|
+
"properties": {
|
|
894
|
+
"tenantId": {
|
|
895
|
+
"type": "string"
|
|
896
|
+
},
|
|
897
|
+
"tenantUserId": {
|
|
898
|
+
"type": "string"
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
```
|
|
903
|
+
|
|
904
|
+
<h3 id="post__api_v1_account_admin_closetenantuser-parameters">Parameters</h3>
|
|
905
|
+
|
|
906
|
+
|Name|In|Type|Required|Description|
|
|
907
|
+
|---|---|---|---|---|
|
|
908
|
+
|body|body|object|true|none|
|
|
909
|
+
|» tenantId|body|string|true|none|
|
|
910
|
+
|» tenantUserId|body|string|true|none|
|
|
911
|
+
|
|
912
|
+
<h3 id="post__api_v1_account_admin_closetenantuser-responses">Responses</h3>
|
|
913
|
+
|
|
914
|
+
|Status|Meaning|Description|Schema|
|
|
915
|
+
|---|---|---|---|
|
|
916
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
917
|
+
|
|
918
|
+
<aside class="success">
|
|
919
|
+
This operation does not require authentication
|
|
920
|
+
</aside>
|
|
921
|
+
|
|
922
|
+
## post__api_v1_account_admin_openTenantUser
|
|
923
|
+
|
|
924
|
+
`POST /api/v1/account/admin/openTenantUser`
|
|
925
|
+
|
|
926
|
+
> Body parameter
|
|
927
|
+
|
|
928
|
+
```json
|
|
929
|
+
{
|
|
930
|
+
"type": "object",
|
|
931
|
+
"required": [
|
|
932
|
+
"tenantId",
|
|
933
|
+
"tenantUserId"
|
|
934
|
+
],
|
|
935
|
+
"properties": {
|
|
936
|
+
"tenantId": {
|
|
937
|
+
"type": "string"
|
|
938
|
+
},
|
|
939
|
+
"tenantUserId": {
|
|
940
|
+
"type": "string"
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
```
|
|
945
|
+
|
|
946
|
+
<h3 id="post__api_v1_account_admin_opentenantuser-parameters">Parameters</h3>
|
|
947
|
+
|
|
948
|
+
|Name|In|Type|Required|Description|
|
|
949
|
+
|---|---|---|---|---|
|
|
950
|
+
|body|body|object|true|none|
|
|
951
|
+
|» tenantId|body|string|true|none|
|
|
952
|
+
|» tenantUserId|body|string|true|none|
|
|
953
|
+
|
|
954
|
+
<h3 id="post__api_v1_account_admin_opentenantuser-responses">Responses</h3>
|
|
955
|
+
|
|
956
|
+
|Status|Meaning|Description|Schema|
|
|
957
|
+
|---|---|---|---|
|
|
958
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
959
|
+
|
|
960
|
+
<aside class="success">
|
|
961
|
+
This operation does not require authentication
|
|
962
|
+
</aside>
|
|
963
|
+
|
|
964
|
+
## get__api_v1_account_tenant_getUserTenant
|
|
965
|
+
|
|
966
|
+
`GET /api/v1/account/tenant/getUserTenant`
|
|
967
|
+
|
|
968
|
+
<h3 id="get__api_v1_account_tenant_getusertenant-responses">Responses</h3>
|
|
969
|
+
|
|
970
|
+
|Status|Meaning|Description|Schema|
|
|
971
|
+
|---|---|---|---|
|
|
972
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
973
|
+
|
|
974
|
+
<aside class="success">
|
|
975
|
+
This operation does not require authentication
|
|
976
|
+
</aside>
|
|
977
|
+
|
|
978
|
+
## get__api_v1_account_tenant_getTenantUserInfo
|
|
979
|
+
|
|
980
|
+
`GET /api/v1/account/tenant/getTenantUserInfo`
|
|
981
|
+
|
|
982
|
+
<h3 id="get__api_v1_account_tenant_gettenantuserinfo-responses">Responses</h3>
|
|
983
|
+
|
|
984
|
+
|Status|Meaning|Description|Schema|
|
|
985
|
+
|---|---|---|---|
|
|
986
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
987
|
+
|
|
988
|
+
<aside class="success">
|
|
989
|
+
This operation does not require authentication
|
|
990
|
+
</aside>
|
|
991
|
+
|
|
992
|
+
## post__api_v1_account_tenant_addOrg
|
|
993
|
+
|
|
994
|
+
`POST /api/v1/account/tenant/addOrg`
|
|
995
|
+
|
|
996
|
+
<h3 id="post__api_v1_account_tenant_addorg-responses">Responses</h3>
|
|
997
|
+
|
|
998
|
+
|Status|Meaning|Description|Schema|
|
|
999
|
+
|---|---|---|---|
|
|
1000
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1001
|
+
|
|
1002
|
+
<aside class="success">
|
|
1003
|
+
This operation does not require authentication
|
|
1004
|
+
</aside>
|
|
1005
|
+
|
|
1006
|
+
## get__api_v1_account_tenant_orgList
|
|
1007
|
+
|
|
1008
|
+
`GET /api/v1/account/tenant/orgList`
|
|
1009
|
+
|
|
1010
|
+
<h3 id="get__api_v1_account_tenant_orglist-responses">Responses</h3>
|
|
1011
|
+
|
|
1012
|
+
|Status|Meaning|Description|Schema|
|
|
1013
|
+
|---|---|---|---|
|
|
1014
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1015
|
+
|
|
1016
|
+
<aside class="success">
|
|
1017
|
+
This operation does not require authentication
|
|
1018
|
+
</aside>
|
|
1019
|
+
|
|
1020
|
+
## post__api_v1_account_tenant_editOrg
|
|
1021
|
+
|
|
1022
|
+
`POST /api/v1/account/tenant/editOrg`
|
|
1023
|
+
|
|
1024
|
+
<h3 id="post__api_v1_account_tenant_editorg-responses">Responses</h3>
|
|
1025
|
+
|
|
1026
|
+
|Status|Meaning|Description|Schema|
|
|
1027
|
+
|---|---|---|---|
|
|
1028
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1029
|
+
|
|
1030
|
+
<aside class="success">
|
|
1031
|
+
This operation does not require authentication
|
|
1032
|
+
</aside>
|
|
1033
|
+
|
|
1034
|
+
## post__api_v1_account_tenant_removeOrg
|
|
1035
|
+
|
|
1036
|
+
`POST /api/v1/account/tenant/removeOrg`
|
|
1037
|
+
|
|
1038
|
+
<h3 id="post__api_v1_account_tenant_removeorg-responses">Responses</h3>
|
|
1039
|
+
|
|
1040
|
+
|Status|Meaning|Description|Schema|
|
|
1041
|
+
|---|---|---|---|
|
|
1042
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1043
|
+
|
|
1044
|
+
<aside class="success">
|
|
1045
|
+
This operation does not require authentication
|
|
1046
|
+
</aside>
|
|
1047
|
+
|
|
1048
|
+
## get__api_v1_account_tenant_getRoleList
|
|
1049
|
+
|
|
1050
|
+
`GET /api/v1/account/tenant/getRoleList`
|
|
1051
|
+
|
|
1052
|
+
<h3 id="get__api_v1_account_tenant_getrolelist-parameters">Parameters</h3>
|
|
1053
|
+
|
|
1054
|
+
|Name|In|Type|Required|Description|
|
|
1055
|
+
|---|---|---|---|---|
|
|
1056
|
+
|perPage|query|number|false|none|
|
|
1057
|
+
|currentPage|query|number|false|none|
|
|
1058
|
+
|filter|query|object|false|none|
|
|
1059
|
+
|
|
1060
|
+
<h3 id="get__api_v1_account_tenant_getrolelist-responses">Responses</h3>
|
|
1061
|
+
|
|
1062
|
+
|Status|Meaning|Description|Schema|
|
|
1063
|
+
|---|---|---|---|
|
|
1064
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1065
|
+
|
|
1066
|
+
<aside class="success">
|
|
1067
|
+
This operation does not require authentication
|
|
1068
|
+
</aside>
|
|
1069
|
+
|
|
1070
|
+
## post__api_v1_account_tenant_addRole
|
|
1071
|
+
|
|
1072
|
+
`POST /api/v1/account/tenant/addRole`
|
|
1073
|
+
|
|
1074
|
+
> Body parameter
|
|
1075
|
+
|
|
1076
|
+
```json
|
|
1077
|
+
{
|
|
1078
|
+
"type": "object",
|
|
1079
|
+
"required": [
|
|
1080
|
+
"name"
|
|
1081
|
+
],
|
|
1082
|
+
"properties": {
|
|
1083
|
+
"name": {
|
|
1084
|
+
"type": "string"
|
|
1085
|
+
},
|
|
1086
|
+
"description": {
|
|
1087
|
+
"type": "string"
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
```
|
|
1092
|
+
|
|
1093
|
+
<h3 id="post__api_v1_account_tenant_addrole-parameters">Parameters</h3>
|
|
1094
|
+
|
|
1095
|
+
|Name|In|Type|Required|Description|
|
|
1096
|
+
|---|---|---|---|---|
|
|
1097
|
+
|body|body|object|true|none|
|
|
1098
|
+
|» name|body|string|true|none|
|
|
1099
|
+
|» description|body|string|false|none|
|
|
1100
|
+
|
|
1101
|
+
<h3 id="post__api_v1_account_tenant_addrole-responses">Responses</h3>
|
|
1102
|
+
|
|
1103
|
+
|Status|Meaning|Description|Schema|
|
|
1104
|
+
|---|---|---|---|
|
|
1105
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1106
|
+
|
|
1107
|
+
<aside class="success">
|
|
1108
|
+
This operation does not require authentication
|
|
1109
|
+
</aside>
|
|
1110
|
+
|
|
1111
|
+
## post__api_v1_account_tenant_saveRole
|
|
1112
|
+
|
|
1113
|
+
`POST /api/v1/account/tenant/saveRole`
|
|
1114
|
+
|
|
1115
|
+
> Body parameter
|
|
1116
|
+
|
|
1117
|
+
```json
|
|
1118
|
+
{
|
|
1119
|
+
"type": "object",
|
|
1120
|
+
"required": [
|
|
1121
|
+
"name",
|
|
1122
|
+
"id"
|
|
1123
|
+
],
|
|
1124
|
+
"properties": {
|
|
1125
|
+
"id": {
|
|
1126
|
+
"type": "number"
|
|
1127
|
+
},
|
|
1128
|
+
"name": {
|
|
1129
|
+
"type": "string"
|
|
1130
|
+
},
|
|
1131
|
+
"description": {
|
|
1132
|
+
"type": "string"
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
```
|
|
1137
|
+
|
|
1138
|
+
<h3 id="post__api_v1_account_tenant_saverole-parameters">Parameters</h3>
|
|
1139
|
+
|
|
1140
|
+
|Name|In|Type|Required|Description|
|
|
1141
|
+
|---|---|---|---|---|
|
|
1142
|
+
|body|body|object|true|none|
|
|
1143
|
+
|» id|body|number|true|none|
|
|
1144
|
+
|» name|body|string|true|none|
|
|
1145
|
+
|» description|body|string|false|none|
|
|
1146
|
+
|
|
1147
|
+
<h3 id="post__api_v1_account_tenant_saverole-responses">Responses</h3>
|
|
1148
|
+
|
|
1149
|
+
|Status|Meaning|Description|Schema|
|
|
1150
|
+
|---|---|---|---|
|
|
1151
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1152
|
+
|
|
1153
|
+
<aside class="success">
|
|
1154
|
+
This operation does not require authentication
|
|
1155
|
+
</aside>
|
|
1156
|
+
|
|
1157
|
+
## post__api_v1_account_tenant_removeRole
|
|
1158
|
+
|
|
1159
|
+
`POST /api/v1/account/tenant/removeRole`
|
|
1160
|
+
|
|
1161
|
+
> Body parameter
|
|
1162
|
+
|
|
1163
|
+
```json
|
|
1164
|
+
{
|
|
1165
|
+
"type": "object",
|
|
1166
|
+
"required": [
|
|
1167
|
+
"id"
|
|
1168
|
+
],
|
|
1169
|
+
"properties": {
|
|
1170
|
+
"id": {
|
|
1171
|
+
"type": "number"
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
```
|
|
1176
|
+
|
|
1177
|
+
<h3 id="post__api_v1_account_tenant_removerole-parameters">Parameters</h3>
|
|
1178
|
+
|
|
1179
|
+
|Name|In|Type|Required|Description|
|
|
1180
|
+
|---|---|---|---|---|
|
|
1181
|
+
|body|body|object|true|none|
|
|
1182
|
+
|» id|body|number|true|none|
|
|
1183
|
+
|
|
1184
|
+
<h3 id="post__api_v1_account_tenant_removerole-responses">Responses</h3>
|
|
1185
|
+
|
|
1186
|
+
|Status|Meaning|Description|Schema|
|
|
1187
|
+
|---|---|---|---|
|
|
1188
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1189
|
+
|
|
1190
|
+
<aside class="success">
|
|
1191
|
+
This operation does not require authentication
|
|
1192
|
+
</aside>
|
|
1193
|
+
|
|
1194
|
+
## get__api_v1_account_tenant_getRolePermissionList
|
|
1195
|
+
|
|
1196
|
+
`GET /api/v1/account/tenant/getRolePermissionList`
|
|
1197
|
+
|
|
1198
|
+
<h3 id="get__api_v1_account_tenant_getrolepermissionlist-parameters">Parameters</h3>
|
|
1199
|
+
|
|
1200
|
+
|Name|In|Type|Required|Description|
|
|
1201
|
+
|---|---|---|---|---|
|
|
1202
|
+
|id|query|number|true|none|
|
|
1203
|
+
|
|
1204
|
+
<h3 id="get__api_v1_account_tenant_getrolepermissionlist-responses">Responses</h3>
|
|
1205
|
+
|
|
1206
|
+
|Status|Meaning|Description|Schema|
|
|
1207
|
+
|---|---|---|---|
|
|
1208
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1209
|
+
|
|
1210
|
+
<aside class="success">
|
|
1211
|
+
This operation does not require authentication
|
|
1212
|
+
</aside>
|
|
1213
|
+
|
|
1214
|
+
## post__api_v1_account_tenant_saveRolePermissionList
|
|
1215
|
+
|
|
1216
|
+
`POST /api/v1/account/tenant/saveRolePermissionList`
|
|
1217
|
+
|
|
1218
|
+
<h3 id="post__api_v1_account_tenant_saverolepermissionlist-responses">Responses</h3>
|
|
1219
|
+
|
|
1220
|
+
|Status|Meaning|Description|Schema|
|
|
1221
|
+
|---|---|---|---|
|
|
1222
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1223
|
+
|
|
1224
|
+
<aside class="success">
|
|
1225
|
+
This operation does not require authentication
|
|
1226
|
+
</aside>
|
|
1227
|
+
|
|
1228
|
+
## get__api_v1_account_tenant_getTenantUserList
|
|
1229
|
+
|
|
1230
|
+
`GET /api/v1/account/tenant/getTenantUserList`
|
|
1231
|
+
|
|
1232
|
+
<h3 id="get__api_v1_account_tenant_gettenantuserlist-parameters">Parameters</h3>
|
|
1233
|
+
|
|
1234
|
+
|Name|In|Type|Required|Description|
|
|
1235
|
+
|---|---|---|---|---|
|
|
1236
|
+
|filter|query|object|false|none|
|
|
1237
|
+
|currentPage|query|number|false|none|
|
|
1238
|
+
|perPage|query|number|false|none|
|
|
1239
|
+
|
|
1240
|
+
<h3 id="get__api_v1_account_tenant_gettenantuserlist-responses">Responses</h3>
|
|
1241
|
+
|
|
1242
|
+
|Status|Meaning|Description|Schema|
|
|
1243
|
+
|---|---|---|---|
|
|
1244
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1245
|
+
|
|
1246
|
+
<aside class="success">
|
|
1247
|
+
This operation does not require authentication
|
|
1248
|
+
</aside>
|
|
1249
|
+
|
|
1250
|
+
## post__api_v1_account_tenant_addTenantUser
|
|
1251
|
+
|
|
1252
|
+
`POST /api/v1/account/tenant/addTenantUser`
|
|
1253
|
+
|
|
1254
|
+
> Body parameter
|
|
1255
|
+
|
|
1256
|
+
```json
|
|
1257
|
+
{
|
|
1258
|
+
"type": "object",
|
|
1259
|
+
"required": [
|
|
1260
|
+
"userId",
|
|
1261
|
+
"name"
|
|
1262
|
+
],
|
|
1263
|
+
"properties": {
|
|
1264
|
+
"roleIds": {
|
|
1265
|
+
"type": "array",
|
|
1266
|
+
"items": {
|
|
1267
|
+
"type": "number"
|
|
1268
|
+
},
|
|
1269
|
+
"default": []
|
|
1270
|
+
},
|
|
1271
|
+
"orgIds": {
|
|
1272
|
+
"type": "array",
|
|
1273
|
+
"items": {
|
|
1274
|
+
"type": "number"
|
|
1275
|
+
},
|
|
1276
|
+
"default": []
|
|
1277
|
+
},
|
|
1278
|
+
"userId": {
|
|
1279
|
+
"type": "string"
|
|
1280
|
+
},
|
|
1281
|
+
"name": {
|
|
1282
|
+
"type": "string"
|
|
1283
|
+
},
|
|
1284
|
+
"avatar": {
|
|
1285
|
+
"type": "string"
|
|
1286
|
+
},
|
|
1287
|
+
"phone": {
|
|
1288
|
+
"type": "string"
|
|
1289
|
+
},
|
|
1290
|
+
"email": {
|
|
1291
|
+
"type": "string"
|
|
1292
|
+
},
|
|
1293
|
+
"description": {
|
|
1294
|
+
"type": "string"
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
```
|
|
1299
|
+
|
|
1300
|
+
<h3 id="post__api_v1_account_tenant_addtenantuser-parameters">Parameters</h3>
|
|
1301
|
+
|
|
1302
|
+
|Name|In|Type|Required|Description|
|
|
1303
|
+
|---|---|---|---|---|
|
|
1304
|
+
|body|body|object|true|none|
|
|
1305
|
+
|» roleIds|body|[number]|false|none|
|
|
1306
|
+
|» orgIds|body|[number]|false|none|
|
|
1307
|
+
|» userId|body|string|true|none|
|
|
1308
|
+
|» name|body|string|true|none|
|
|
1309
|
+
|» avatar|body|string|false|none|
|
|
1310
|
+
|» phone|body|string|false|none|
|
|
1311
|
+
|» email|body|string|false|none|
|
|
1312
|
+
|» description|body|string|false|none|
|
|
1313
|
+
|
|
1314
|
+
<h3 id="post__api_v1_account_tenant_addtenantuser-responses">Responses</h3>
|
|
1315
|
+
|
|
1316
|
+
|Status|Meaning|Description|Schema|
|
|
1317
|
+
|---|---|---|---|
|
|
1318
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1319
|
+
|
|
1320
|
+
<aside class="success">
|
|
1321
|
+
This operation does not require authentication
|
|
1322
|
+
</aside>
|
|
1323
|
+
|
|
1324
|
+
## post__api_v1_account_tenant_saveTenantUser
|
|
1325
|
+
|
|
1326
|
+
`POST /api/v1/account/tenant/saveTenantUser`
|
|
1327
|
+
|
|
1328
|
+
> Body parameter
|
|
1329
|
+
|
|
1330
|
+
```json
|
|
1331
|
+
{
|
|
1332
|
+
"type": "object",
|
|
1333
|
+
"required": [
|
|
1334
|
+
"name"
|
|
1335
|
+
],
|
|
1336
|
+
"properties": {
|
|
1337
|
+
"roleIds": {
|
|
1338
|
+
"type": "array",
|
|
1339
|
+
"items": {
|
|
1340
|
+
"type": "number"
|
|
1341
|
+
},
|
|
1342
|
+
"default": []
|
|
1343
|
+
},
|
|
1344
|
+
"orgIds": {
|
|
1345
|
+
"type": "array",
|
|
1346
|
+
"items": {
|
|
1347
|
+
"type": "number"
|
|
1348
|
+
},
|
|
1349
|
+
"default": []
|
|
1350
|
+
},
|
|
1351
|
+
"name": {
|
|
1352
|
+
"type": "string"
|
|
1353
|
+
},
|
|
1354
|
+
"avatar": {
|
|
1355
|
+
"type": "string"
|
|
1356
|
+
},
|
|
1357
|
+
"phone": {
|
|
1358
|
+
"type": "string"
|
|
1359
|
+
},
|
|
1360
|
+
"email": {
|
|
1361
|
+
"type": "string"
|
|
1362
|
+
},
|
|
1363
|
+
"description": {
|
|
1364
|
+
"type": "string"
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
}
|
|
1368
|
+
```
|
|
1369
|
+
|
|
1370
|
+
<h3 id="post__api_v1_account_tenant_savetenantuser-parameters">Parameters</h3>
|
|
1371
|
+
|
|
1372
|
+
|Name|In|Type|Required|Description|
|
|
1373
|
+
|---|---|---|---|---|
|
|
1374
|
+
|body|body|object|true|none|
|
|
1375
|
+
|» roleIds|body|[number]|false|none|
|
|
1376
|
+
|» orgIds|body|[number]|false|none|
|
|
1377
|
+
|» name|body|string|true|none|
|
|
1378
|
+
|» avatar|body|string|false|none|
|
|
1379
|
+
|» phone|body|string|false|none|
|
|
1380
|
+
|» email|body|string|false|none|
|
|
1381
|
+
|» description|body|string|false|none|
|
|
1382
|
+
|
|
1383
|
+
<h3 id="post__api_v1_account_tenant_savetenantuser-responses">Responses</h3>
|
|
1384
|
+
|
|
1385
|
+
|Status|Meaning|Description|Schema|
|
|
1386
|
+
|---|---|---|---|
|
|
1387
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1388
|
+
|
|
1389
|
+
<aside class="success">
|
|
1390
|
+
This operation does not require authentication
|
|
1391
|
+
</aside>
|
|
1392
|
+
|
|
1393
|
+
## post__api_v1_account_tenant_deleteTenantUser
|
|
1394
|
+
|
|
1395
|
+
`POST /api/v1/account/tenant/deleteTenantUser`
|
|
1396
|
+
|
|
1397
|
+
> Body parameter
|
|
1398
|
+
|
|
1399
|
+
```json
|
|
1400
|
+
{
|
|
1401
|
+
"type": "object",
|
|
1402
|
+
"required": [
|
|
1403
|
+
"tenantUserId"
|
|
1404
|
+
],
|
|
1405
|
+
"properties": {
|
|
1406
|
+
"tenantUserId": {
|
|
1407
|
+
"type": "string"
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
```
|
|
1412
|
+
|
|
1413
|
+
<h3 id="post__api_v1_account_tenant_deletetenantuser-parameters">Parameters</h3>
|
|
1414
|
+
|
|
1415
|
+
|Name|In|Type|Required|Description|
|
|
1416
|
+
|---|---|---|---|---|
|
|
1417
|
+
|body|body|object|true|none|
|
|
1418
|
+
|» tenantUserId|body|string|true|none|
|
|
1419
|
+
|
|
1420
|
+
<h3 id="post__api_v1_account_tenant_deletetenantuser-responses">Responses</h3>
|
|
1421
|
+
|
|
1422
|
+
|Status|Meaning|Description|Schema|
|
|
1423
|
+
|---|---|---|---|
|
|
1424
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1425
|
+
|
|
1426
|
+
<aside class="success">
|
|
1427
|
+
This operation does not require authentication
|
|
1428
|
+
</aside>
|
|
1429
|
+
|
|
1430
|
+
## post__api_v1_account_tenant_closeTenantUser
|
|
1431
|
+
|
|
1432
|
+
`POST /api/v1/account/tenant/closeTenantUser`
|
|
1433
|
+
|
|
1434
|
+
> Body parameter
|
|
1435
|
+
|
|
1436
|
+
```json
|
|
1437
|
+
{
|
|
1438
|
+
"type": "object",
|
|
1439
|
+
"required": [
|
|
1440
|
+
"tenantUserId"
|
|
1441
|
+
],
|
|
1442
|
+
"properties": {
|
|
1443
|
+
"tenantUserId": {
|
|
1444
|
+
"type": "string"
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1448
|
+
```
|
|
1449
|
+
|
|
1450
|
+
<h3 id="post__api_v1_account_tenant_closetenantuser-parameters">Parameters</h3>
|
|
1451
|
+
|
|
1452
|
+
|Name|In|Type|Required|Description|
|
|
1453
|
+
|---|---|---|---|---|
|
|
1454
|
+
|body|body|object|true|none|
|
|
1455
|
+
|» tenantUserId|body|string|true|none|
|
|
1456
|
+
|
|
1457
|
+
<h3 id="post__api_v1_account_tenant_closetenantuser-responses">Responses</h3>
|
|
1458
|
+
|
|
1459
|
+
|Status|Meaning|Description|Schema|
|
|
1460
|
+
|---|---|---|---|
|
|
1461
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1462
|
+
|
|
1463
|
+
<aside class="success">
|
|
1464
|
+
This operation does not require authentication
|
|
1465
|
+
</aside>
|
|
1466
|
+
|
|
1467
|
+
## post__api_v1_account_tenant_openTenantUser
|
|
1468
|
+
|
|
1469
|
+
`POST /api/v1/account/tenant/openTenantUser`
|
|
1470
|
+
|
|
1471
|
+
> Body parameter
|
|
1472
|
+
|
|
1473
|
+
```json
|
|
1474
|
+
{
|
|
1475
|
+
"type": "object",
|
|
1476
|
+
"required": [
|
|
1477
|
+
"tenantUserId"
|
|
1478
|
+
],
|
|
1479
|
+
"properties": {
|
|
1480
|
+
"tenantUserId": {
|
|
1481
|
+
"type": "string"
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
```
|
|
1486
|
+
|
|
1487
|
+
<h3 id="post__api_v1_account_tenant_opentenantuser-parameters">Parameters</h3>
|
|
1488
|
+
|
|
1489
|
+
|Name|In|Type|Required|Description|
|
|
1490
|
+
|---|---|---|---|---|
|
|
1491
|
+
|body|body|object|true|none|
|
|
1492
|
+
|» tenantUserId|body|string|true|none|
|
|
1493
|
+
|
|
1494
|
+
<h3 id="post__api_v1_account_tenant_opentenantuser-responses">Responses</h3>
|
|
1495
|
+
|
|
1496
|
+
|Status|Meaning|Description|Schema|
|
|
1497
|
+
|---|---|---|---|
|
|
1498
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1499
|
+
|
|
1500
|
+
<aside class="success">
|
|
1501
|
+
This operation does not require authentication
|
|
1502
|
+
</aside>
|
|
1503
|
+
|
|
1504
|
+
## get__api_v1_account_getUserInfo
|
|
1505
|
+
|
|
1506
|
+
`GET /api/v1/account/getUserInfo`
|
|
1507
|
+
|
|
1508
|
+
<h3 id="get__api_v1_account_getuserinfo-responses">Responses</h3>
|
|
1509
|
+
|
|
1510
|
+
|Status|Meaning|Description|Schema|
|
|
1511
|
+
|---|---|---|---|
|
|
1512
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1513
|
+
|
|
1514
|
+
<aside class="success">
|
|
1515
|
+
This operation does not require authentication
|
|
1516
|
+
</aside>
|
|
1517
|
+
|
|
1518
|
+
## post__api_v1_account_setCurrentTenantId
|
|
1519
|
+
|
|
1520
|
+
`POST /api/v1/account/setCurrentTenantId`
|
|
1521
|
+
|
|
1522
|
+
> Body parameter
|
|
1523
|
+
|
|
1524
|
+
```json
|
|
1525
|
+
{
|
|
1526
|
+
"type": "object",
|
|
1527
|
+
"required": [
|
|
1528
|
+
"tenantId"
|
|
1529
|
+
],
|
|
1530
|
+
"properties": {
|
|
1531
|
+
"tenantId": {
|
|
1532
|
+
"type": "string"
|
|
1533
|
+
}
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
```
|
|
1537
|
+
|
|
1538
|
+
<h3 id="post__api_v1_account_setcurrenttenantid-parameters">Parameters</h3>
|
|
1539
|
+
|
|
1540
|
+
|Name|In|Type|Required|Description|
|
|
1541
|
+
|---|---|---|---|---|
|
|
1542
|
+
|body|body|object|true|none|
|
|
1543
|
+
|» tenantId|body|string|true|none|
|
|
1544
|
+
|
|
1545
|
+
<h3 id="post__api_v1_account_setcurrenttenantid-responses">Responses</h3>
|
|
1546
|
+
|
|
1547
|
+
|Status|Meaning|Description|Schema|
|
|
1548
|
+
|---|---|---|---|
|
|
1549
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1550
|
+
|
|
1551
|
+
<aside class="success">
|
|
1552
|
+
This operation does not require authentication
|
|
1553
|
+
</aside>
|
|
1554
|
+
|
|
1555
|
+
<h1 id="-kne-fastify-account--">账号</h1>
|
|
1556
|
+
|
|
1557
|
+
## post__api_v1_account_sendEmailCode
|
|
1558
|
+
|
|
1559
|
+
`POST /api/v1/account/sendEmailCode`
|
|
1560
|
+
|
|
1561
|
+
*发送登录邮箱验证码*
|
|
1562
|
+
|
|
1563
|
+
> Body parameter
|
|
1564
|
+
|
|
1565
|
+
```json
|
|
1566
|
+
{
|
|
1567
|
+
"type": "object",
|
|
1568
|
+
"required": [
|
|
1569
|
+
"email"
|
|
1570
|
+
],
|
|
1571
|
+
"properties": {
|
|
1572
|
+
"email": {
|
|
1573
|
+
"type": "string",
|
|
1574
|
+
"description": "邮箱"
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
```
|
|
1579
|
+
|
|
1580
|
+
<h3 id="post__api_v1_account_sendemailcode-parameters">Parameters</h3>
|
|
1581
|
+
|
|
1582
|
+
|Name|In|Type|Required|Description|
|
|
1583
|
+
|---|---|---|---|---|
|
|
1584
|
+
|body|body|object|true|none|
|
|
1585
|
+
|» email|body|string|true|邮箱|
|
|
1586
|
+
|
|
1587
|
+
> Example responses
|
|
1588
|
+
|
|
1589
|
+
> 200 Response
|
|
1590
|
+
|
|
1591
|
+
```json
|
|
1592
|
+
{
|
|
1593
|
+
"type": "object",
|
|
1594
|
+
"properties": {
|
|
1595
|
+
"code": {
|
|
1596
|
+
"type": "string",
|
|
1597
|
+
"description": "验证码"
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
```
|
|
1602
|
+
|
|
1603
|
+
<h3 id="post__api_v1_account_sendemailcode-responses">Responses</h3>
|
|
1604
|
+
|
|
1605
|
+
|Status|Meaning|Description|Schema|
|
|
1606
|
+
|---|---|---|---|
|
|
1607
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|Inline|
|
|
1608
|
+
|
|
1609
|
+
<h3 id="post__api_v1_account_sendemailcode-responseschema">Response Schema</h3>
|
|
1610
|
+
|
|
1611
|
+
Status Code **200**
|
|
1612
|
+
|
|
1613
|
+
|Name|Type|Required|Restrictions|Description|
|
|
1614
|
+
|---|---|---|---|---|
|
|
1615
|
+
|» code|string|false|none|验证码|
|
|
1616
|
+
|
|
1617
|
+
<aside class="success">
|
|
1618
|
+
This operation does not require authentication
|
|
1619
|
+
</aside>
|
|
1620
|
+
|
|
1621
|
+
## post__api_v1_account_sendSMSCode
|
|
1622
|
+
|
|
1623
|
+
`POST /api/v1/account/sendSMSCode`
|
|
1624
|
+
|
|
1625
|
+
*发送登录短信验证码*
|
|
1626
|
+
|
|
1627
|
+
> Body parameter
|
|
1628
|
+
|
|
1629
|
+
```json
|
|
1630
|
+
{
|
|
1631
|
+
"type": "object",
|
|
1632
|
+
"required": [
|
|
1633
|
+
"phone"
|
|
1634
|
+
],
|
|
1635
|
+
"properties": {
|
|
1636
|
+
"phone": {
|
|
1637
|
+
"type": "string",
|
|
1638
|
+
"description": "电话"
|
|
1639
|
+
}
|
|
1640
|
+
}
|
|
1641
|
+
}
|
|
1642
|
+
```
|
|
1643
|
+
|
|
1644
|
+
<h3 id="post__api_v1_account_sendsmscode-parameters">Parameters</h3>
|
|
1645
|
+
|
|
1646
|
+
|Name|In|Type|Required|Description|
|
|
1647
|
+
|---|---|---|---|---|
|
|
1648
|
+
|body|body|object|true|none|
|
|
1649
|
+
|» phone|body|string|true|电话|
|
|
1650
|
+
|
|
1651
|
+
> Example responses
|
|
1652
|
+
|
|
1653
|
+
> 200 Response
|
|
1654
|
+
|
|
1655
|
+
```json
|
|
1656
|
+
{
|
|
1657
|
+
"type": "object",
|
|
1658
|
+
"properties": {
|
|
1659
|
+
"code": {
|
|
1660
|
+
"type": "string",
|
|
1661
|
+
"description": "验证码"
|
|
1662
|
+
}
|
|
1663
|
+
}
|
|
1664
|
+
}
|
|
1665
|
+
```
|
|
1666
|
+
|
|
1667
|
+
<h3 id="post__api_v1_account_sendsmscode-responses">Responses</h3>
|
|
1668
|
+
|
|
1669
|
+
|Status|Meaning|Description|Schema|
|
|
1670
|
+
|---|---|---|---|
|
|
1671
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|Inline|
|
|
1672
|
+
|
|
1673
|
+
<h3 id="post__api_v1_account_sendsmscode-responseschema">Response Schema</h3>
|
|
1674
|
+
|
|
1675
|
+
Status Code **200**
|
|
1676
|
+
|
|
1677
|
+
|Name|Type|Required|Restrictions|Description|
|
|
1678
|
+
|---|---|---|---|---|
|
|
1679
|
+
|» code|string|false|none|验证码|
|
|
1680
|
+
|
|
1681
|
+
<aside class="success">
|
|
1682
|
+
This operation does not require authentication
|
|
1683
|
+
</aside>
|
|
1684
|
+
|
|
1685
|
+
## post__api_v1_account_validateCode
|
|
1686
|
+
|
|
1687
|
+
`POST /api/v1/account/validateCode`
|
|
1688
|
+
|
|
1689
|
+
*验证码验证*
|
|
1690
|
+
|
|
1691
|
+
> Body parameter
|
|
1692
|
+
|
|
1693
|
+
```json
|
|
1694
|
+
{
|
|
1695
|
+
"type": "object",
|
|
1696
|
+
"required": [
|
|
1697
|
+
"name",
|
|
1698
|
+
"type",
|
|
1699
|
+
"code"
|
|
1700
|
+
],
|
|
1701
|
+
"properties": {
|
|
1702
|
+
"name": {
|
|
1703
|
+
"type": "string",
|
|
1704
|
+
"description": "被验证的账号,手机或邮箱"
|
|
1705
|
+
},
|
|
1706
|
+
"type": {
|
|
1707
|
+
"type": "number",
|
|
1708
|
+
"description": "0:注册,2:登录,4:验证租户管理员,5:忘记密码"
|
|
1709
|
+
},
|
|
1710
|
+
"code": {
|
|
1711
|
+
"type": "string",
|
|
1712
|
+
"description": "接受到的验证码"
|
|
1713
|
+
}
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
```
|
|
1717
|
+
|
|
1718
|
+
<h3 id="post__api_v1_account_validatecode-parameters">Parameters</h3>
|
|
1719
|
+
|
|
1720
|
+
|Name|In|Type|Required|Description|
|
|
1721
|
+
|---|---|---|---|---|
|
|
1722
|
+
|body|body|object|true|none|
|
|
1723
|
+
|» name|body|string|true|被验证的账号,手机或邮箱|
|
|
1724
|
+
|» type|body|number|true|0:注册,2:登录,4:验证租户管理员,5:忘记密码|
|
|
1725
|
+
|» code|body|string|true|接受到的验证码|
|
|
1726
|
+
|
|
1727
|
+
> Example responses
|
|
1728
|
+
|
|
1729
|
+
> 200 Response
|
|
1730
|
+
|
|
1731
|
+
```json
|
|
1732
|
+
{
|
|
1733
|
+
"type": "object",
|
|
1734
|
+
"properties": {}
|
|
1735
|
+
}
|
|
1736
|
+
```
|
|
1737
|
+
|
|
1738
|
+
<h3 id="post__api_v1_account_validatecode-responses">Responses</h3>
|
|
1739
|
+
|
|
1740
|
+
|Status|Meaning|Description|Schema|
|
|
1741
|
+
|---|---|---|---|
|
|
1742
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|Inline|
|
|
1743
|
+
|
|
1744
|
+
<h3 id="post__api_v1_account_validatecode-responseschema">Response Schema</h3>
|
|
1745
|
+
|
|
1746
|
+
<aside class="success">
|
|
1747
|
+
This operation does not require authentication
|
|
1748
|
+
</aside>
|
|
1749
|
+
|
|
1750
|
+
## post__api_v1_account_accountIsExists
|
|
1751
|
+
|
|
1752
|
+
`POST /api/v1/account/accountIsExists`
|
|
1753
|
+
|
|
1754
|
+
*账号是否已存在*
|
|
1755
|
+
|
|
1756
|
+
> Body parameter
|
|
1757
|
+
|
|
1758
|
+
```json
|
|
1759
|
+
{
|
|
1760
|
+
"oneOf": [
|
|
1761
|
+
{
|
|
1762
|
+
"type": "object",
|
|
1763
|
+
"required": [
|
|
1764
|
+
"phone"
|
|
1765
|
+
],
|
|
1766
|
+
"properties": {
|
|
1767
|
+
"phone": {
|
|
1768
|
+
"type": "string",
|
|
1769
|
+
"description": "电话"
|
|
1770
|
+
}
|
|
1771
|
+
}
|
|
1772
|
+
},
|
|
1773
|
+
{
|
|
1774
|
+
"type": "object",
|
|
1775
|
+
"required": [
|
|
1776
|
+
"email"
|
|
1777
|
+
],
|
|
1778
|
+
"properties": {
|
|
1779
|
+
"email": {
|
|
1780
|
+
"type": "string",
|
|
1781
|
+
"description": "邮箱"
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
]
|
|
1786
|
+
}
|
|
1787
|
+
```
|
|
1788
|
+
|
|
1789
|
+
<h3 id="post__api_v1_account_accountisexists-parameters">Parameters</h3>
|
|
1790
|
+
|
|
1791
|
+
|Name|In|Type|Required|Description|
|
|
1792
|
+
|---|---|---|---|---|
|
|
1793
|
+
|body|body|any|false|none|
|
|
1794
|
+
|
|
1795
|
+
> Example responses
|
|
1796
|
+
|
|
1797
|
+
> 200 Response
|
|
1798
|
+
|
|
1799
|
+
```json
|
|
1800
|
+
{
|
|
1801
|
+
"type": "object",
|
|
1802
|
+
"properties": {
|
|
1803
|
+
"isExists": {
|
|
1804
|
+
"type": "boolean",
|
|
1805
|
+
"description": "true已存在,false不存在"
|
|
1806
|
+
}
|
|
1807
|
+
}
|
|
1808
|
+
}
|
|
1809
|
+
```
|
|
1810
|
+
|
|
1811
|
+
<h3 id="post__api_v1_account_accountisexists-responses">Responses</h3>
|
|
1812
|
+
|
|
1813
|
+
|Status|Meaning|Description|Schema|
|
|
1814
|
+
|---|---|---|---|
|
|
1815
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|Inline|
|
|
1816
|
+
|
|
1817
|
+
<h3 id="post__api_v1_account_accountisexists-responseschema">Response Schema</h3>
|
|
1818
|
+
|
|
1819
|
+
Status Code **200**
|
|
1820
|
+
|
|
1821
|
+
|Name|Type|Required|Restrictions|Description|
|
|
1822
|
+
|---|---|---|---|---|
|
|
1823
|
+
|» isExists|boolean|false|none|true已存在,false不存在|
|
|
1824
|
+
|
|
1825
|
+
<aside class="success">
|
|
1826
|
+
This operation does not require authentication
|
|
1827
|
+
</aside>
|
|
1828
|
+
|
|
1829
|
+
## post__api_v1_account_register
|
|
1830
|
+
|
|
1831
|
+
`POST /api/v1/account/register`
|
|
1832
|
+
|
|
1833
|
+
*注册账号*
|
|
1834
|
+
|
|
1835
|
+
> Body parameter
|
|
1836
|
+
|
|
1837
|
+
```json
|
|
1838
|
+
{
|
|
1839
|
+
"oneOf": [
|
|
1840
|
+
{
|
|
1841
|
+
"type": "object",
|
|
1842
|
+
"required": [
|
|
1843
|
+
"phone",
|
|
1844
|
+
"password",
|
|
1845
|
+
"code"
|
|
1846
|
+
],
|
|
1847
|
+
"properties": {
|
|
1848
|
+
"avatar": {
|
|
1849
|
+
"type": "string",
|
|
1850
|
+
"description": "头像图片id"
|
|
1851
|
+
},
|
|
1852
|
+
"phone": {
|
|
1853
|
+
"type": "string",
|
|
1854
|
+
"description": "电话"
|
|
1855
|
+
},
|
|
1856
|
+
"code": {
|
|
1857
|
+
"type": "string",
|
|
1858
|
+
"description": "验证码"
|
|
1859
|
+
},
|
|
1860
|
+
"password": {
|
|
1861
|
+
"type": "string",
|
|
1862
|
+
"description": "密码(需要md5加密)"
|
|
1863
|
+
},
|
|
1864
|
+
"invitationCode": {
|
|
1865
|
+
"type": "string",
|
|
1866
|
+
"description": "邀请码,用来默认加入租户"
|
|
1867
|
+
},
|
|
1868
|
+
"nickname": {
|
|
1869
|
+
"type": "string",
|
|
1870
|
+
"description": "昵称"
|
|
1871
|
+
},
|
|
1872
|
+
"gender": {
|
|
1873
|
+
"type": "string",
|
|
1874
|
+
"description": "性别"
|
|
1875
|
+
},
|
|
1876
|
+
"birthday": {
|
|
1877
|
+
"type": "string",
|
|
1878
|
+
"format": "date",
|
|
1879
|
+
"description": "出生日期"
|
|
1880
|
+
},
|
|
1881
|
+
"description": {
|
|
1882
|
+
"type": "string",
|
|
1883
|
+
"description": "个人简介"
|
|
1884
|
+
}
|
|
1885
|
+
}
|
|
1886
|
+
},
|
|
1887
|
+
{
|
|
1888
|
+
"type": "object",
|
|
1889
|
+
"required": [
|
|
1890
|
+
"email",
|
|
1891
|
+
"password",
|
|
1892
|
+
"code"
|
|
1893
|
+
],
|
|
1894
|
+
"properties": {
|
|
1895
|
+
"avatar": {
|
|
1896
|
+
"type": "string",
|
|
1897
|
+
"description": "头像图片id"
|
|
1898
|
+
},
|
|
1899
|
+
"email": {
|
|
1900
|
+
"type": "string",
|
|
1901
|
+
"description": "邮箱"
|
|
1902
|
+
},
|
|
1903
|
+
"code": {
|
|
1904
|
+
"type": "string",
|
|
1905
|
+
"description": "验证码"
|
|
1906
|
+
},
|
|
1907
|
+
"password": {
|
|
1908
|
+
"type": "string",
|
|
1909
|
+
"description": "密码(需要md5加密)"
|
|
1910
|
+
},
|
|
1911
|
+
"invitationCode": {
|
|
1912
|
+
"type": "string",
|
|
1913
|
+
"description": "邀请码,用来默认加入租户"
|
|
1914
|
+
},
|
|
1915
|
+
"nickname": {
|
|
1916
|
+
"type": "string",
|
|
1917
|
+
"description": "昵称"
|
|
1918
|
+
},
|
|
1919
|
+
"gender": {
|
|
1920
|
+
"type": "string",
|
|
1921
|
+
"description": "性别"
|
|
1922
|
+
},
|
|
1923
|
+
"birthday": {
|
|
1924
|
+
"type": "string",
|
|
1925
|
+
"format": "date",
|
|
1926
|
+
"description": "出生日期"
|
|
1927
|
+
},
|
|
1928
|
+
"description": {
|
|
1929
|
+
"type": "string",
|
|
1930
|
+
"description": "个人简介"
|
|
1931
|
+
}
|
|
1932
|
+
}
|
|
1933
|
+
}
|
|
1934
|
+
]
|
|
1935
|
+
}
|
|
1936
|
+
```
|
|
1937
|
+
|
|
1938
|
+
<h3 id="post__api_v1_account_register-parameters">Parameters</h3>
|
|
1939
|
+
|
|
1940
|
+
|Name|In|Type|Required|Description|
|
|
1941
|
+
|---|---|---|---|---|
|
|
1942
|
+
|body|body|any|false|none|
|
|
1943
|
+
|
|
1944
|
+
> Example responses
|
|
1945
|
+
|
|
1946
|
+
> 200 Response
|
|
1947
|
+
|
|
1948
|
+
```json
|
|
1949
|
+
{
|
|
1950
|
+
"type": "object",
|
|
1951
|
+
"properties": {}
|
|
1952
|
+
}
|
|
1953
|
+
```
|
|
1954
|
+
|
|
1955
|
+
<h3 id="post__api_v1_account_register-responses">Responses</h3>
|
|
1956
|
+
|
|
1957
|
+
|Status|Meaning|Description|Schema|
|
|
1958
|
+
|---|---|---|---|
|
|
1959
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|Inline|
|
|
1960
|
+
|
|
1961
|
+
<h3 id="post__api_v1_account_register-responseschema">Response Schema</h3>
|
|
1962
|
+
|
|
1963
|
+
<aside class="success">
|
|
1964
|
+
This operation does not require authentication
|
|
1965
|
+
</aside>
|
|
1966
|
+
|
|
1967
|
+
## post__api_v1_account_login
|
|
1968
|
+
|
|
1969
|
+
`POST /api/v1/account/login`
|
|
1970
|
+
|
|
1971
|
+
*登录*
|
|
1972
|
+
|
|
1973
|
+
> Body parameter
|
|
1974
|
+
|
|
1975
|
+
```json
|
|
1976
|
+
{
|
|
1977
|
+
"type": "object",
|
|
1978
|
+
"required": [
|
|
1979
|
+
"username",
|
|
1980
|
+
"password"
|
|
1981
|
+
],
|
|
1982
|
+
"properties": {
|
|
1983
|
+
"username": {
|
|
1984
|
+
"type": "string",
|
|
1985
|
+
"description": "用户名"
|
|
1986
|
+
},
|
|
1987
|
+
"password": {
|
|
1988
|
+
"type": "string",
|
|
1989
|
+
"description": "密码"
|
|
1990
|
+
}
|
|
1991
|
+
}
|
|
1992
|
+
}
|
|
1993
|
+
```
|
|
1994
|
+
|
|
1995
|
+
<h3 id="post__api_v1_account_login-parameters">Parameters</h3>
|
|
1996
|
+
|
|
1997
|
+
|Name|In|Type|Required|Description|
|
|
1998
|
+
|---|---|---|---|---|
|
|
1999
|
+
|body|body|object|true|none|
|
|
2000
|
+
|» username|body|string|true|用户名|
|
|
2001
|
+
|» password|body|string|true|密码|
|
|
2002
|
+
|
|
2003
|
+
> Example responses
|
|
2004
|
+
|
|
2005
|
+
> 200 Response
|
|
2006
|
+
|
|
2007
|
+
```json
|
|
2008
|
+
{
|
|
2009
|
+
"type": "object",
|
|
2010
|
+
"properties": {
|
|
2011
|
+
"token": {
|
|
2012
|
+
"type": "string",
|
|
2013
|
+
"description": "用户token"
|
|
2014
|
+
},
|
|
2015
|
+
"currentTenantId": {
|
|
2016
|
+
"type": "string",
|
|
2017
|
+
"description": "当前租户id"
|
|
2018
|
+
}
|
|
2019
|
+
}
|
|
2020
|
+
}
|
|
2021
|
+
```
|
|
2022
|
+
|
|
2023
|
+
<h3 id="post__api_v1_account_login-responses">Responses</h3>
|
|
2024
|
+
|
|
2025
|
+
|Status|Meaning|Description|Schema|
|
|
2026
|
+
|---|---|---|---|
|
|
2027
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|Inline|
|
|
2028
|
+
|
|
2029
|
+
<h3 id="post__api_v1_account_login-responseschema">Response Schema</h3>
|
|
2030
|
+
|
|
2031
|
+
Status Code **200**
|
|
2032
|
+
|
|
2033
|
+
|Name|Type|Required|Restrictions|Description|
|
|
2034
|
+
|---|---|---|---|---|
|
|
2035
|
+
|» token|string|false|none|用户token|
|
|
2036
|
+
|» currentTenantId|string|false|none|当前租户id|
|
|
2037
|
+
|
|
2038
|
+
<aside class="success">
|
|
2039
|
+
This operation does not require authentication
|
|
2040
|
+
</aside>
|
|
2041
|
+
|
|
2042
|
+
## post__api_v1_account_modifyPassword
|
|
2043
|
+
|
|
2044
|
+
`POST /api/v1/account/modifyPassword`
|
|
2045
|
+
|
|
2046
|
+
*新用户重置新密码*
|
|
2047
|
+
|
|
2048
|
+
> Body parameter
|
|
2049
|
+
|
|
2050
|
+
```json
|
|
2051
|
+
{
|
|
2052
|
+
"oneOf": [
|
|
2053
|
+
{
|
|
2054
|
+
"type": "object",
|
|
2055
|
+
"required": [
|
|
2056
|
+
"email",
|
|
2057
|
+
"newPwd",
|
|
2058
|
+
"oldPwd"
|
|
2059
|
+
],
|
|
2060
|
+
"properties": {
|
|
2061
|
+
"email": {
|
|
2062
|
+
"type": "string",
|
|
2063
|
+
"description": "邮箱"
|
|
2064
|
+
},
|
|
2065
|
+
"newPwd": {
|
|
2066
|
+
"type": "string",
|
|
2067
|
+
"description": "新密码"
|
|
2068
|
+
},
|
|
2069
|
+
"oldPwd": {
|
|
2070
|
+
"type": "string",
|
|
2071
|
+
"description": "原密码"
|
|
2072
|
+
}
|
|
2073
|
+
}
|
|
2074
|
+
},
|
|
2075
|
+
{
|
|
2076
|
+
"type": "object",
|
|
2077
|
+
"required": [
|
|
2078
|
+
"phone",
|
|
2079
|
+
"newPwd",
|
|
2080
|
+
"oldPwd"
|
|
2081
|
+
],
|
|
2082
|
+
"properties": {
|
|
2083
|
+
"phone": {
|
|
2084
|
+
"type": "string",
|
|
2085
|
+
"description": "手机号"
|
|
2086
|
+
},
|
|
2087
|
+
"newPwd": {
|
|
2088
|
+
"type": "string",
|
|
2089
|
+
"description": "新密码"
|
|
2090
|
+
},
|
|
2091
|
+
"oldPwd": {
|
|
2092
|
+
"type": "string",
|
|
2093
|
+
"description": "原密码"
|
|
2094
|
+
}
|
|
2095
|
+
}
|
|
2096
|
+
}
|
|
2097
|
+
]
|
|
747
2098
|
}
|
|
748
2099
|
```
|
|
749
2100
|
|
|
750
|
-
<h3 id="
|
|
2101
|
+
<h3 id="post__api_v1_account_modifypassword-parameters">Parameters</h3>
|
|
751
2102
|
|
|
752
2103
|
|Name|In|Type|Required|Description|
|
|
753
2104
|
|---|---|---|---|---|
|
|
754
|
-
|body|body|
|
|
755
|
-
|» id|body|string|true|none|
|
|
756
|
-
|» url|body|string|false|none|
|
|
757
|
-
|» name|body|string|true|none|
|
|
758
|
-
|» avatar|body|string|false|none|
|
|
759
|
-
|» code|body|string|true|none|
|
|
760
|
-
|» description|body|string|false|none|
|
|
2105
|
+
|body|body|any|false|none|
|
|
761
2106
|
|
|
762
|
-
<h3 id="
|
|
2107
|
+
<h3 id="post__api_v1_account_modifypassword-responses">Responses</h3>
|
|
763
2108
|
|
|
764
2109
|
|Status|Meaning|Description|Schema|
|
|
765
2110
|
|---|---|---|---|
|
|
@@ -769,9 +2114,11 @@ This operation does not require authentication
|
|
|
769
2114
|
This operation does not require authentication
|
|
770
2115
|
</aside>
|
|
771
2116
|
|
|
772
|
-
##
|
|
2117
|
+
## post__api_v1_account_resetPassword
|
|
773
2118
|
|
|
774
|
-
`POST /api/v1/account/
|
|
2119
|
+
`POST /api/v1/account/resetPassword`
|
|
2120
|
+
|
|
2121
|
+
*用户重置密码*
|
|
775
2122
|
|
|
776
2123
|
> Body parameter
|
|
777
2124
|
|
|
@@ -779,24 +2126,31 @@ This operation does not require authentication
|
|
|
779
2126
|
{
|
|
780
2127
|
"type": "object",
|
|
781
2128
|
"required": [
|
|
782
|
-
"
|
|
2129
|
+
"newPwd",
|
|
2130
|
+
"token"
|
|
783
2131
|
],
|
|
784
2132
|
"properties": {
|
|
785
|
-
"
|
|
786
|
-
"type": "string"
|
|
2133
|
+
"newPwd": {
|
|
2134
|
+
"type": "string",
|
|
2135
|
+
"description": "新密码"
|
|
2136
|
+
},
|
|
2137
|
+
"token": {
|
|
2138
|
+
"type": "string",
|
|
2139
|
+
"description": "验证token"
|
|
787
2140
|
}
|
|
788
2141
|
}
|
|
789
2142
|
}
|
|
790
2143
|
```
|
|
791
2144
|
|
|
792
|
-
<h3 id="
|
|
2145
|
+
<h3 id="post__api_v1_account_resetpassword-parameters">Parameters</h3>
|
|
793
2146
|
|
|
794
2147
|
|Name|In|Type|Required|Description|
|
|
795
2148
|
|---|---|---|---|---|
|
|
796
2149
|
|body|body|object|true|none|
|
|
797
|
-
|»
|
|
2150
|
+
|» newPwd|body|string|true|新密码|
|
|
2151
|
+
|» token|body|string|true|验证token|
|
|
798
2152
|
|
|
799
|
-
<h3 id="
|
|
2153
|
+
<h3 id="post__api_v1_account_resetpassword-responses">Responses</h3>
|
|
800
2154
|
|
|
801
2155
|
|Status|Meaning|Description|Schema|
|
|
802
2156
|
|---|---|---|---|
|
|
@@ -806,17 +2160,52 @@ This operation does not require authentication
|
|
|
806
2160
|
This operation does not require authentication
|
|
807
2161
|
</aside>
|
|
808
2162
|
|
|
809
|
-
##
|
|
2163
|
+
## post__api_v1_account_forgetPwd
|
|
810
2164
|
|
|
811
|
-
`
|
|
2165
|
+
`POST /api/v1/account/forgetPwd`
|
|
812
2166
|
|
|
813
|
-
|
|
2167
|
+
*忘记密码*
|
|
2168
|
+
|
|
2169
|
+
> Body parameter
|
|
2170
|
+
|
|
2171
|
+
```json
|
|
2172
|
+
{
|
|
2173
|
+
"oneOf": [
|
|
2174
|
+
{
|
|
2175
|
+
"type": "object",
|
|
2176
|
+
"required": [
|
|
2177
|
+
"email"
|
|
2178
|
+
],
|
|
2179
|
+
"properties": {
|
|
2180
|
+
"email": {
|
|
2181
|
+
"type": "string",
|
|
2182
|
+
"description": "邮箱"
|
|
2183
|
+
}
|
|
2184
|
+
}
|
|
2185
|
+
},
|
|
2186
|
+
{
|
|
2187
|
+
"type": "object",
|
|
2188
|
+
"required": [
|
|
2189
|
+
"phone"
|
|
2190
|
+
],
|
|
2191
|
+
"properties": {
|
|
2192
|
+
"phone": {
|
|
2193
|
+
"type": "string",
|
|
2194
|
+
"description": "手机号"
|
|
2195
|
+
}
|
|
2196
|
+
}
|
|
2197
|
+
}
|
|
2198
|
+
]
|
|
2199
|
+
}
|
|
2200
|
+
```
|
|
2201
|
+
|
|
2202
|
+
<h3 id="post__api_v1_account_forgetpwd-parameters">Parameters</h3>
|
|
814
2203
|
|
|
815
2204
|
|Name|In|Type|Required|Description|
|
|
816
2205
|
|---|---|---|---|---|
|
|
817
|
-
|
|
|
2206
|
+
|body|body|any|false|none|
|
|
818
2207
|
|
|
819
|
-
<h3 id="
|
|
2208
|
+
<h3 id="post__api_v1_account_forgetpwd-responses">Responses</h3>
|
|
820
2209
|
|
|
821
2210
|
|Status|Meaning|Description|Schema|
|
|
822
2211
|
|---|---|---|---|
|
|
@@ -826,9 +2215,11 @@ This operation does not require authentication
|
|
|
826
2215
|
This operation does not require authentication
|
|
827
2216
|
</aside>
|
|
828
2217
|
|
|
829
|
-
##
|
|
2218
|
+
## post__api_v1_account_parseResetToken
|
|
830
2219
|
|
|
831
|
-
`POST /api/v1/account/
|
|
2220
|
+
`POST /api/v1/account/parseResetToken`
|
|
2221
|
+
|
|
2222
|
+
*通过token获取name*
|
|
832
2223
|
|
|
833
2224
|
> Body parameter
|
|
834
2225
|
|
|
@@ -836,54 +2227,24 @@ This operation does not require authentication
|
|
|
836
2227
|
{
|
|
837
2228
|
"type": "object",
|
|
838
2229
|
"required": [
|
|
839
|
-
"
|
|
840
|
-
"name",
|
|
841
|
-
"code"
|
|
2230
|
+
"token"
|
|
842
2231
|
],
|
|
843
2232
|
"properties": {
|
|
844
|
-
"
|
|
845
|
-
"type": "string"
|
|
846
|
-
},
|
|
847
|
-
"name": {
|
|
848
|
-
"type": "string"
|
|
849
|
-
},
|
|
850
|
-
"code": {
|
|
851
|
-
"type": "string"
|
|
852
|
-
},
|
|
853
|
-
"type": {
|
|
854
|
-
"type": "number"
|
|
855
|
-
},
|
|
856
|
-
"isModule": {
|
|
857
|
-
"type": "number"
|
|
858
|
-
},
|
|
859
|
-
"isMust": {
|
|
860
|
-
"type": "number"
|
|
861
|
-
},
|
|
862
|
-
"pid": {
|
|
863
|
-
"type": "number"
|
|
864
|
-
},
|
|
865
|
-
"description": {
|
|
2233
|
+
"token": {
|
|
866
2234
|
"type": "string"
|
|
867
2235
|
}
|
|
868
2236
|
}
|
|
869
2237
|
}
|
|
870
2238
|
```
|
|
871
2239
|
|
|
872
|
-
<h3 id="
|
|
2240
|
+
<h3 id="post__api_v1_account_parseresettoken-parameters">Parameters</h3>
|
|
873
2241
|
|
|
874
2242
|
|Name|In|Type|Required|Description|
|
|
875
2243
|
|---|---|---|---|---|
|
|
876
2244
|
|body|body|object|true|none|
|
|
877
|
-
|»
|
|
878
|
-
|» name|body|string|true|none|
|
|
879
|
-
|» code|body|string|true|none|
|
|
880
|
-
|» type|body|number|false|none|
|
|
881
|
-
|» isModule|body|number|false|none|
|
|
882
|
-
|» isMust|body|number|false|none|
|
|
883
|
-
|» pid|body|number|false|none|
|
|
884
|
-
|» description|body|string|false|none|
|
|
2245
|
+
|» token|body|string|true|none|
|
|
885
2246
|
|
|
886
|
-
<h3 id="
|
|
2247
|
+
<h3 id="post__api_v1_account_parseresettoken-responses">Responses</h3>
|
|
887
2248
|
|
|
888
2249
|
|Status|Meaning|Description|Schema|
|
|
889
2250
|
|---|---|---|---|
|
|
@@ -893,18 +2254,17 @@ This operation does not require authentication
|
|
|
893
2254
|
This operation does not require authentication
|
|
894
2255
|
</aside>
|
|
895
2256
|
|
|
896
|
-
|
|
2257
|
+
<h1 id="-kne-fastify-account--">管理后台</h1>
|
|
897
2258
|
|
|
898
|
-
|
|
2259
|
+
## post__api_v1_account_initSuperAdmin
|
|
899
2260
|
|
|
900
|
-
|
|
2261
|
+
`POST /api/v1/account/initSuperAdmin`
|
|
901
2262
|
|
|
902
|
-
|
|
903
|
-
|---|---|---|---|---|
|
|
904
|
-
|applicationId|query|string|true|none|
|
|
905
|
-
|tenantId|query|string|false|none|
|
|
2263
|
+
*初始化用户为管理员*
|
|
906
2264
|
|
|
907
|
-
|
|
2265
|
+
用于系统初始化时,设置第一个用户,只能使用一次,其他用户由该用户创建
|
|
2266
|
+
|
|
2267
|
+
<h3 id="post__api_v1_account_initsuperadmin-responses">Responses</h3>
|
|
908
2268
|
|
|
909
2269
|
|Status|Meaning|Description|Schema|
|
|
910
2270
|
|---|---|---|---|
|
|
@@ -914,46 +2274,98 @@ This operation does not require authentication
|
|
|
914
2274
|
This operation does not require authentication
|
|
915
2275
|
</aside>
|
|
916
2276
|
|
|
917
|
-
##
|
|
2277
|
+
## get__api_v1_account_admin_getSuperAdminInfo
|
|
918
2278
|
|
|
919
|
-
`
|
|
2279
|
+
`GET /api/v1/account/admin/getSuperAdminInfo`
|
|
920
2280
|
|
|
921
|
-
|
|
2281
|
+
*获取管理员信息*
|
|
2282
|
+
|
|
2283
|
+
> Example responses
|
|
2284
|
+
|
|
2285
|
+
> 200 Response
|
|
922
2286
|
|
|
923
2287
|
```json
|
|
924
2288
|
{
|
|
925
2289
|
"type": "object",
|
|
926
|
-
"required": [
|
|
927
|
-
"id"
|
|
928
|
-
],
|
|
929
2290
|
"properties": {
|
|
930
|
-
"
|
|
931
|
-
"type": "
|
|
2291
|
+
"userInfo": {
|
|
2292
|
+
"type": "object",
|
|
2293
|
+
"properties": {
|
|
2294
|
+
"id": {
|
|
2295
|
+
"type": "string",
|
|
2296
|
+
"description": "用户id"
|
|
2297
|
+
},
|
|
2298
|
+
"nickname": {
|
|
2299
|
+
"type": "string",
|
|
2300
|
+
"description": "用户昵称"
|
|
2301
|
+
},
|
|
2302
|
+
"email": {
|
|
2303
|
+
"type": "string",
|
|
2304
|
+
"description": "邮箱"
|
|
2305
|
+
},
|
|
2306
|
+
"phone": {
|
|
2307
|
+
"type": "string",
|
|
2308
|
+
"description": "电话"
|
|
2309
|
+
},
|
|
2310
|
+
"gender": {
|
|
2311
|
+
"type": "string",
|
|
2312
|
+
"description": "性别"
|
|
2313
|
+
},
|
|
2314
|
+
"birthday": {
|
|
2315
|
+
"type": "string",
|
|
2316
|
+
"format": "date",
|
|
2317
|
+
"description": "出生日期"
|
|
2318
|
+
},
|
|
2319
|
+
"description": {
|
|
2320
|
+
"type": "string",
|
|
2321
|
+
"description": "个人简介"
|
|
2322
|
+
},
|
|
2323
|
+
"currentTenantId": {
|
|
2324
|
+
"type": "string",
|
|
2325
|
+
"description": "当前租户ID"
|
|
2326
|
+
},
|
|
2327
|
+
"status": {
|
|
2328
|
+
"type": "number",
|
|
2329
|
+
"description": "状态"
|
|
2330
|
+
}
|
|
2331
|
+
}
|
|
932
2332
|
}
|
|
933
2333
|
}
|
|
934
2334
|
}
|
|
935
2335
|
```
|
|
936
2336
|
|
|
937
|
-
<h3 id="
|
|
938
|
-
|
|
939
|
-
|Name|In|Type|Required|Description|
|
|
940
|
-
|---|---|---|---|---|
|
|
941
|
-
|body|body|object|true|none|
|
|
942
|
-
|» id|body|string|true|none|
|
|
943
|
-
|
|
944
|
-
<h3 id="post__api_v1_account_admin_deletepermission-responses">Responses</h3>
|
|
2337
|
+
<h3 id="get__api_v1_account_admin_getsuperadmininfo-responses">Responses</h3>
|
|
945
2338
|
|
|
946
2339
|
|Status|Meaning|Description|Schema|
|
|
947
2340
|
|---|---|---|---|
|
|
948
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|
|
|
2341
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|Inline|
|
|
2342
|
+
|
|
2343
|
+
<h3 id="get__api_v1_account_admin_getsuperadmininfo-responseschema">Response Schema</h3>
|
|
2344
|
+
|
|
2345
|
+
Status Code **200**
|
|
2346
|
+
|
|
2347
|
+
|Name|Type|Required|Restrictions|Description|
|
|
2348
|
+
|---|---|---|---|---|
|
|
2349
|
+
|» userInfo|object|false|none|none|
|
|
2350
|
+
|»» id|string|false|none|用户id|
|
|
2351
|
+
|»» nickname|string|false|none|用户昵称|
|
|
2352
|
+
|»» email|string|false|none|邮箱|
|
|
2353
|
+
|»» phone|string|false|none|电话|
|
|
2354
|
+
|»» gender|string|false|none|性别|
|
|
2355
|
+
|»» birthday|string(date)|false|none|出生日期|
|
|
2356
|
+
|»» description|string|false|none|个人简介|
|
|
2357
|
+
|»» currentTenantId|string|false|none|当前租户ID|
|
|
2358
|
+
|»» status|number|false|none|状态|
|
|
949
2359
|
|
|
950
2360
|
<aside class="success">
|
|
951
2361
|
This operation does not require authentication
|
|
952
2362
|
</aside>
|
|
953
2363
|
|
|
954
|
-
##
|
|
2364
|
+
## post__api_v1_account_admin_setSuperAdmin
|
|
955
2365
|
|
|
956
|
-
`POST /api/v1/account/admin/
|
|
2366
|
+
`POST /api/v1/account/admin/setSuperAdmin`
|
|
2367
|
+
|
|
2368
|
+
*设置用户为超级管理员*
|
|
957
2369
|
|
|
958
2370
|
> Body parameter
|
|
959
2371
|
|
|
@@ -961,40 +2373,31 @@ This operation does not require authentication
|
|
|
961
2373
|
{
|
|
962
2374
|
"type": "object",
|
|
963
2375
|
"required": [
|
|
964
|
-
"
|
|
2376
|
+
"status",
|
|
2377
|
+
"userId"
|
|
965
2378
|
],
|
|
966
2379
|
"properties": {
|
|
967
|
-
"
|
|
968
|
-
"type": "
|
|
2380
|
+
"status": {
|
|
2381
|
+
"type": "boolean",
|
|
2382
|
+
"description": "true:将用户设置为超级管理员,false:取消用户超级管理员"
|
|
969
2383
|
},
|
|
970
|
-
"
|
|
971
|
-
"type": "string"
|
|
972
|
-
|
|
973
|
-
"type": {
|
|
974
|
-
"type": "number"
|
|
975
|
-
},
|
|
976
|
-
"isMust": {
|
|
977
|
-
"type": "number"
|
|
978
|
-
},
|
|
979
|
-
"description": {
|
|
980
|
-
"type": "string"
|
|
2384
|
+
"userId": {
|
|
2385
|
+
"type": "string",
|
|
2386
|
+
"description": "用户ID"
|
|
981
2387
|
}
|
|
982
2388
|
}
|
|
983
2389
|
}
|
|
984
2390
|
```
|
|
985
2391
|
|
|
986
|
-
<h3 id="
|
|
2392
|
+
<h3 id="post__api_v1_account_admin_setsuperadmin-parameters">Parameters</h3>
|
|
987
2393
|
|
|
988
2394
|
|Name|In|Type|Required|Description|
|
|
989
2395
|
|---|---|---|---|---|
|
|
990
2396
|
|body|body|object|true|none|
|
|
991
|
-
|»
|
|
992
|
-
|»
|
|
993
|
-
|» type|body|number|false|none|
|
|
994
|
-
|» isMust|body|number|false|none|
|
|
995
|
-
|» description|body|string|false|none|
|
|
2397
|
+
|» status|body|boolean|true|true:将用户设置为超级管理员,false:取消用户超级管理员|
|
|
2398
|
+
|» userId|body|string|true|用户ID|
|
|
996
2399
|
|
|
997
|
-
<h3 id="
|
|
2400
|
+
<h3 id="post__api_v1_account_admin_setsuperadmin-responses">Responses</h3>
|
|
998
2401
|
|
|
999
2402
|
|Status|Meaning|Description|Schema|
|
|
1000
2403
|
|---|---|---|---|
|
|
@@ -1004,25 +2407,28 @@ This operation does not require authentication
|
|
|
1004
2407
|
This operation does not require authentication
|
|
1005
2408
|
</aside>
|
|
1006
2409
|
|
|
1007
|
-
##
|
|
2410
|
+
## post__api_v1_account_admin_addUser
|
|
1008
2411
|
|
|
1009
|
-
`POST /api/v1/account/admin/
|
|
2412
|
+
`POST /api/v1/account/admin/addUser`
|
|
1010
2413
|
|
|
1011
|
-
|
|
2414
|
+
*添加用户*
|
|
1012
2415
|
|
|
1013
|
-
|
|
1014
|
-
|---|---|---|---|
|
|
1015
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
2416
|
+
> Body parameter
|
|
1016
2417
|
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
2418
|
+
```json
|
|
2419
|
+
{
|
|
2420
|
+
"type": "object",
|
|
2421
|
+
"properties": {}
|
|
2422
|
+
}
|
|
2423
|
+
```
|
|
1020
2424
|
|
|
1021
|
-
|
|
2425
|
+
<h3 id="post__api_v1_account_admin_adduser-parameters">Parameters</h3>
|
|
1022
2426
|
|
|
1023
|
-
|
|
2427
|
+
|Name|In|Type|Required|Description|
|
|
2428
|
+
|---|---|---|---|---|
|
|
2429
|
+
|body|body|object|false|none|
|
|
1024
2430
|
|
|
1025
|
-
<h3 id="
|
|
2431
|
+
<h3 id="post__api_v1_account_admin_adduser-responses">Responses</h3>
|
|
1026
2432
|
|
|
1027
2433
|
|Status|Meaning|Description|Schema|
|
|
1028
2434
|
|---|---|---|---|
|
|
@@ -1032,18 +2438,20 @@ This operation does not require authentication
|
|
|
1032
2438
|
This operation does not require authentication
|
|
1033
2439
|
</aside>
|
|
1034
2440
|
|
|
1035
|
-
##
|
|
2441
|
+
## get__api_v1_account_admin_getAllUserList
|
|
1036
2442
|
|
|
1037
|
-
`GET /api/v1/account/admin/
|
|
2443
|
+
`GET /api/v1/account/admin/getAllUserList`
|
|
1038
2444
|
|
|
1039
|
-
|
|
2445
|
+
*获取用户列表*
|
|
2446
|
+
|
|
2447
|
+
<h3 id="get__api_v1_account_admin_getalluserlist-parameters">Parameters</h3>
|
|
1040
2448
|
|
|
1041
2449
|
|Name|In|Type|Required|Description|
|
|
1042
2450
|
|---|---|---|---|---|
|
|
1043
|
-
|
|
|
1044
|
-
|
|
|
2451
|
+
|perPage|query|number|false|none|
|
|
2452
|
+
|currentPage|query|number|false|none|
|
|
1045
2453
|
|
|
1046
|
-
<h3 id="
|
|
2454
|
+
<h3 id="get__api_v1_account_admin_getalluserlist-responses">Responses</h3>
|
|
1047
2455
|
|
|
1048
2456
|
|Status|Meaning|Description|Schema|
|
|
1049
2457
|
|---|---|---|---|
|
|
@@ -1053,9 +2461,11 @@ This operation does not require authentication
|
|
|
1053
2461
|
This operation does not require authentication
|
|
1054
2462
|
</aside>
|
|
1055
2463
|
|
|
1056
|
-
##
|
|
2464
|
+
## post__api_v1_account_admin_resetUserPassword
|
|
1057
2465
|
|
|
1058
|
-
`POST /api/v1/account/admin/
|
|
2466
|
+
`POST /api/v1/account/admin/resetUserPassword`
|
|
2467
|
+
|
|
2468
|
+
*重置用户账号密码*
|
|
1059
2469
|
|
|
1060
2470
|
> Body parameter
|
|
1061
2471
|
|
|
@@ -1063,33 +2473,29 @@ This operation does not require authentication
|
|
|
1063
2473
|
{
|
|
1064
2474
|
"type": "object",
|
|
1065
2475
|
"required": [
|
|
1066
|
-
"
|
|
1067
|
-
"
|
|
2476
|
+
"userId",
|
|
2477
|
+
"password"
|
|
1068
2478
|
],
|
|
1069
2479
|
"properties": {
|
|
1070
|
-
"
|
|
1071
|
-
"type": "string"
|
|
1072
|
-
},
|
|
1073
|
-
"name": {
|
|
2480
|
+
"password": {
|
|
1074
2481
|
"type": "string"
|
|
1075
2482
|
},
|
|
1076
|
-
"
|
|
2483
|
+
"userId": {
|
|
1077
2484
|
"type": "string"
|
|
1078
2485
|
}
|
|
1079
2486
|
}
|
|
1080
2487
|
}
|
|
1081
2488
|
```
|
|
1082
2489
|
|
|
1083
|
-
<h3 id="
|
|
2490
|
+
<h3 id="post__api_v1_account_admin_resetuserpassword-parameters">Parameters</h3>
|
|
1084
2491
|
|
|
1085
2492
|
|Name|In|Type|Required|Description|
|
|
1086
2493
|
|---|---|---|---|---|
|
|
1087
2494
|
|body|body|object|true|none|
|
|
1088
|
-
|»
|
|
1089
|
-
|»
|
|
1090
|
-
|» description|body|string|false|none|
|
|
2495
|
+
|» password|body|string|true|none|
|
|
2496
|
+
|» userId|body|string|true|none|
|
|
1091
2497
|
|
|
1092
|
-
<h3 id="
|
|
2498
|
+
<h3 id="post__api_v1_account_admin_resetuserpassword-responses">Responses</h3>
|
|
1093
2499
|
|
|
1094
2500
|
|Status|Meaning|Description|Schema|
|
|
1095
2501
|
|---|---|---|---|
|
|
@@ -1099,9 +2505,11 @@ This operation does not require authentication
|
|
|
1099
2505
|
This operation does not require authentication
|
|
1100
2506
|
</aside>
|
|
1101
2507
|
|
|
1102
|
-
##
|
|
2508
|
+
## post__api_v1_account_admin_saveUser
|
|
1103
2509
|
|
|
1104
|
-
`POST /api/v1/account/admin/
|
|
2510
|
+
`POST /api/v1/account/admin/saveUser`
|
|
2511
|
+
|
|
2512
|
+
*修改用户信息*
|
|
1105
2513
|
|
|
1106
2514
|
> Body parameter
|
|
1107
2515
|
|
|
@@ -1109,14 +2517,22 @@ This operation does not require authentication
|
|
|
1109
2517
|
{
|
|
1110
2518
|
"type": "object",
|
|
1111
2519
|
"required": [
|
|
1112
|
-
"name",
|
|
1113
2520
|
"id"
|
|
1114
2521
|
],
|
|
1115
2522
|
"properties": {
|
|
1116
2523
|
"id": {
|
|
1117
|
-
"type": "
|
|
2524
|
+
"type": "string"
|
|
1118
2525
|
},
|
|
1119
|
-
"
|
|
2526
|
+
"avatar": {
|
|
2527
|
+
"type": "string"
|
|
2528
|
+
},
|
|
2529
|
+
"nickname": {
|
|
2530
|
+
"type": "string"
|
|
2531
|
+
},
|
|
2532
|
+
"phone": {
|
|
2533
|
+
"type": "string"
|
|
2534
|
+
},
|
|
2535
|
+
"email": {
|
|
1120
2536
|
"type": "string"
|
|
1121
2537
|
},
|
|
1122
2538
|
"description": {
|
|
@@ -1126,16 +2542,19 @@ This operation does not require authentication
|
|
|
1126
2542
|
}
|
|
1127
2543
|
```
|
|
1128
2544
|
|
|
1129
|
-
<h3 id="
|
|
2545
|
+
<h3 id="post__api_v1_account_admin_saveuser-parameters">Parameters</h3>
|
|
1130
2546
|
|
|
1131
2547
|
|Name|In|Type|Required|Description|
|
|
1132
2548
|
|---|---|---|---|---|
|
|
1133
2549
|
|body|body|object|true|none|
|
|
1134
|
-
|» id|body|
|
|
1135
|
-
|»
|
|
2550
|
+
|» id|body|string|true|none|
|
|
2551
|
+
|» avatar|body|string|false|none|
|
|
2552
|
+
|» nickname|body|string|false|none|
|
|
2553
|
+
|» phone|body|string|false|none|
|
|
2554
|
+
|» email|body|string|false|none|
|
|
1136
2555
|
|» description|body|string|false|none|
|
|
1137
2556
|
|
|
1138
|
-
<h3 id="
|
|
2557
|
+
<h3 id="post__api_v1_account_admin_saveuser-responses">Responses</h3>
|
|
1139
2558
|
|
|
1140
2559
|
|Status|Meaning|Description|Schema|
|
|
1141
2560
|
|---|---|---|---|
|
|
@@ -1145,9 +2564,11 @@ This operation does not require authentication
|
|
|
1145
2564
|
This operation does not require authentication
|
|
1146
2565
|
</aside>
|
|
1147
2566
|
|
|
1148
|
-
##
|
|
2567
|
+
## post__api_v1_account_admin_closeUser
|
|
1149
2568
|
|
|
1150
|
-
`POST /api/v1/account/admin/
|
|
2569
|
+
`POST /api/v1/account/admin/closeUser`
|
|
2570
|
+
|
|
2571
|
+
*关闭用户*
|
|
1151
2572
|
|
|
1152
2573
|
> Body parameter
|
|
1153
2574
|
|
|
@@ -1159,40 +2580,20 @@ This operation does not require authentication
|
|
|
1159
2580
|
],
|
|
1160
2581
|
"properties": {
|
|
1161
2582
|
"id": {
|
|
1162
|
-
"type": "
|
|
2583
|
+
"type": "string"
|
|
1163
2584
|
}
|
|
1164
2585
|
}
|
|
1165
2586
|
}
|
|
1166
2587
|
```
|
|
1167
2588
|
|
|
1168
|
-
<h3 id="
|
|
2589
|
+
<h3 id="post__api_v1_account_admin_closeuser-parameters">Parameters</h3>
|
|
1169
2590
|
|
|
1170
2591
|
|Name|In|Type|Required|Description|
|
|
1171
2592
|
|---|---|---|---|---|
|
|
1172
2593
|
|body|body|object|true|none|
|
|
1173
|
-
|» id|body|
|
|
1174
|
-
|
|
1175
|
-
<h3 id="post__api_v1_account_admin_removerole-responses">Responses</h3>
|
|
1176
|
-
|
|
1177
|
-
|Status|Meaning|Description|Schema|
|
|
1178
|
-
|---|---|---|---|
|
|
1179
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1180
|
-
|
|
1181
|
-
<aside class="success">
|
|
1182
|
-
This operation does not require authentication
|
|
1183
|
-
</aside>
|
|
1184
|
-
|
|
1185
|
-
## get__api_v1_account_admin_getRolePermissionList
|
|
1186
|
-
|
|
1187
|
-
`GET /api/v1/account/admin/getRolePermissionList`
|
|
1188
|
-
|
|
1189
|
-
<h3 id="get__api_v1_account_admin_getrolepermissionlist-parameters">Parameters</h3>
|
|
1190
|
-
|
|
1191
|
-
|Name|In|Type|Required|Description|
|
|
1192
|
-
|---|---|---|---|---|
|
|
1193
|
-
|id|query|number|true|none|
|
|
2594
|
+
|» id|body|string|true|none|
|
|
1194
2595
|
|
|
1195
|
-
<h3 id="
|
|
2596
|
+
<h3 id="post__api_v1_account_admin_closeuser-responses">Responses</h3>
|
|
1196
2597
|
|
|
1197
2598
|
|Status|Meaning|Description|Schema|
|
|
1198
2599
|
|---|---|---|---|
|
|
@@ -1202,35 +2603,36 @@ This operation does not require authentication
|
|
|
1202
2603
|
This operation does not require authentication
|
|
1203
2604
|
</aside>
|
|
1204
2605
|
|
|
1205
|
-
##
|
|
1206
|
-
|
|
1207
|
-
`POST /api/v1/account/admin/saveRolePermissionList`
|
|
1208
|
-
|
|
1209
|
-
<h3 id="post__api_v1_account_admin_saverolepermissionlist-responses">Responses</h3>
|
|
2606
|
+
## post__api_v1_account_admin_openUser
|
|
1210
2607
|
|
|
1211
|
-
|
|
1212
|
-
|---|---|---|---|
|
|
1213
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
2608
|
+
`POST /api/v1/account/admin/openUser`
|
|
1214
2609
|
|
|
1215
|
-
|
|
1216
|
-
This operation does not require authentication
|
|
1217
|
-
</aside>
|
|
2610
|
+
*将用户设置为正常*
|
|
1218
2611
|
|
|
1219
|
-
|
|
2612
|
+
> Body parameter
|
|
1220
2613
|
|
|
1221
|
-
|
|
2614
|
+
```json
|
|
2615
|
+
{
|
|
2616
|
+
"type": "object",
|
|
2617
|
+
"required": [
|
|
2618
|
+
"id"
|
|
2619
|
+
],
|
|
2620
|
+
"properties": {
|
|
2621
|
+
"id": {
|
|
2622
|
+
"type": "string"
|
|
2623
|
+
}
|
|
2624
|
+
}
|
|
2625
|
+
}
|
|
2626
|
+
```
|
|
1222
2627
|
|
|
1223
|
-
<h3 id="
|
|
2628
|
+
<h3 id="post__api_v1_account_admin_openuser-parameters">Parameters</h3>
|
|
1224
2629
|
|
|
1225
2630
|
|Name|In|Type|Required|Description|
|
|
1226
2631
|
|---|---|---|---|---|
|
|
1227
|
-
|
|
|
1228
|
-
|
|
|
1229
|
-
|serviceEndTime|query|string(date-time)|false|none|
|
|
1230
|
-
|perPage|query|number|false|none|
|
|
1231
|
-
|currentPage|query|number|false|none|
|
|
2632
|
+
|body|body|object|true|none|
|
|
2633
|
+
|» id|body|string|true|none|
|
|
1232
2634
|
|
|
1233
|
-
<h3 id="
|
|
2635
|
+
<h3 id="post__api_v1_account_admin_openuser-responses">Responses</h3>
|
|
1234
2636
|
|
|
1235
2637
|
|Status|Meaning|Description|Schema|
|
|
1236
2638
|
|---|---|---|---|
|
|
@@ -1240,17 +2642,19 @@ This operation does not require authentication
|
|
|
1240
2642
|
This operation does not require authentication
|
|
1241
2643
|
</aside>
|
|
1242
2644
|
|
|
1243
|
-
##
|
|
2645
|
+
## get__api_v1_account_admin_getCompanyInfo
|
|
1244
2646
|
|
|
1245
|
-
`GET /api/v1/account/admin/
|
|
2647
|
+
`GET /api/v1/account/admin/getCompanyInfo`
|
|
1246
2648
|
|
|
1247
|
-
|
|
2649
|
+
*获取租户管理的公司信息*
|
|
2650
|
+
|
|
2651
|
+
<h3 id="get__api_v1_account_admin_getcompanyinfo-parameters">Parameters</h3>
|
|
1248
2652
|
|
|
1249
2653
|
|Name|In|Type|Required|Description|
|
|
1250
2654
|
|---|---|---|---|---|
|
|
1251
|
-
|
|
|
2655
|
+
|tenantId|query|string|false|none|
|
|
1252
2656
|
|
|
1253
|
-
<h3 id="
|
|
2657
|
+
<h3 id="get__api_v1_account_admin_getcompanyinfo-responses">Responses</h3>
|
|
1254
2658
|
|
|
1255
2659
|
|Status|Meaning|Description|Schema|
|
|
1256
2660
|
|---|---|---|---|
|
|
@@ -1260,51 +2664,57 @@ This operation does not require authentication
|
|
|
1260
2664
|
This operation does not require authentication
|
|
1261
2665
|
</aside>
|
|
1262
2666
|
|
|
1263
|
-
##
|
|
2667
|
+
## post__api_v1_account_admin_saveCompanyInfo
|
|
1264
2668
|
|
|
1265
|
-
`POST /api/v1/account/admin/
|
|
2669
|
+
`POST /api/v1/account/admin/saveCompanyInfo`
|
|
2670
|
+
|
|
2671
|
+
*修改租户管理的公司信息*
|
|
1266
2672
|
|
|
1267
2673
|
> Body parameter
|
|
1268
2674
|
|
|
1269
2675
|
```json
|
|
1270
2676
|
{
|
|
1271
2677
|
"type": "object",
|
|
1272
|
-
"required": [
|
|
1273
|
-
"name",
|
|
1274
|
-
"accountNumber",
|
|
1275
|
-
"serviceStartTime",
|
|
1276
|
-
"serviceEndTime"
|
|
1277
|
-
],
|
|
1278
2678
|
"properties": {
|
|
2679
|
+
"id": {
|
|
2680
|
+
"type": "number"
|
|
2681
|
+
},
|
|
2682
|
+
"tenantId": {
|
|
2683
|
+
"type": "string"
|
|
2684
|
+
},
|
|
1279
2685
|
"name": {
|
|
1280
2686
|
"type": "string"
|
|
1281
2687
|
},
|
|
1282
|
-
"
|
|
1283
|
-
"type": "
|
|
2688
|
+
"shortName": {
|
|
2689
|
+
"type": "string"
|
|
1284
2690
|
},
|
|
1285
|
-
"
|
|
1286
|
-
"type": "string"
|
|
1287
|
-
"format": "date-time"
|
|
2691
|
+
"themeColor": {
|
|
2692
|
+
"type": "string"
|
|
1288
2693
|
},
|
|
1289
|
-
"
|
|
1290
|
-
"type": "string"
|
|
1291
|
-
|
|
2694
|
+
"logo": {
|
|
2695
|
+
"type": "string"
|
|
2696
|
+
},
|
|
2697
|
+
"description": {
|
|
2698
|
+
"type": "string"
|
|
1292
2699
|
}
|
|
1293
2700
|
}
|
|
1294
2701
|
}
|
|
1295
2702
|
```
|
|
1296
2703
|
|
|
1297
|
-
<h3 id="
|
|
2704
|
+
<h3 id="post__api_v1_account_admin_savecompanyinfo-parameters">Parameters</h3>
|
|
1298
2705
|
|
|
1299
2706
|
|Name|In|Type|Required|Description|
|
|
1300
2707
|
|---|---|---|---|---|
|
|
1301
|
-
|body|body|object|
|
|
1302
|
-
|»
|
|
1303
|
-
|»
|
|
1304
|
-
|»
|
|
1305
|
-
|»
|
|
2708
|
+
|body|body|object|false|none|
|
|
2709
|
+
|» id|body|number|false|none|
|
|
2710
|
+
|» tenantId|body|string|false|none|
|
|
2711
|
+
|» name|body|string|false|none|
|
|
2712
|
+
|» shortName|body|string|false|none|
|
|
2713
|
+
|» themeColor|body|string|false|none|
|
|
2714
|
+
|» logo|body|string|false|none|
|
|
2715
|
+
|» description|body|string|false|none|
|
|
1306
2716
|
|
|
1307
|
-
<h3 id="
|
|
2717
|
+
<h3 id="post__api_v1_account_admin_savecompanyinfo-responses">Responses</h3>
|
|
1308
2718
|
|
|
1309
2719
|
|Status|Meaning|Description|Schema|
|
|
1310
2720
|
|---|---|---|---|
|
|
@@ -1314,104 +2724,46 @@ This operation does not require authentication
|
|
|
1314
2724
|
This operation does not require authentication
|
|
1315
2725
|
</aside>
|
|
1316
2726
|
|
|
1317
|
-
##
|
|
2727
|
+
## post__api_v1_account_admin_getAllOperationLogList
|
|
1318
2728
|
|
|
1319
|
-
`POST /api/v1/account/admin/
|
|
2729
|
+
`POST /api/v1/account/admin/getAllOperationLogList`
|
|
2730
|
+
|
|
2731
|
+
*获取所有操作日志列表*
|
|
1320
2732
|
|
|
1321
2733
|
> Body parameter
|
|
1322
2734
|
|
|
1323
2735
|
```json
|
|
1324
2736
|
{
|
|
1325
2737
|
"type": "object",
|
|
1326
|
-
"required": [
|
|
1327
|
-
"id",
|
|
1328
|
-
"name",
|
|
1329
|
-
"accountNumber",
|
|
1330
|
-
"serviceStartTime",
|
|
1331
|
-
"serviceEndTime"
|
|
1332
|
-
],
|
|
2738
|
+
"required": [],
|
|
1333
2739
|
"properties": {
|
|
1334
|
-
"
|
|
1335
|
-
"type": "
|
|
2740
|
+
"filter": {
|
|
2741
|
+
"type": "object"
|
|
1336
2742
|
},
|
|
1337
|
-
"
|
|
2743
|
+
"type": {
|
|
1338
2744
|
"type": "string"
|
|
1339
2745
|
},
|
|
1340
|
-
"
|
|
2746
|
+
"perPage": {
|
|
1341
2747
|
"type": "number"
|
|
1342
2748
|
},
|
|
1343
|
-
"
|
|
1344
|
-
"type": "
|
|
1345
|
-
"format": "date-time"
|
|
1346
|
-
},
|
|
1347
|
-
"serviceEndTime": {
|
|
1348
|
-
"type": "string",
|
|
1349
|
-
"format": "date-time"
|
|
2749
|
+
"currentPage": {
|
|
2750
|
+
"type": "number"
|
|
1350
2751
|
}
|
|
1351
2752
|
}
|
|
1352
2753
|
}
|
|
1353
2754
|
```
|
|
1354
2755
|
|
|
1355
|
-
<h3 id="
|
|
1356
|
-
|
|
1357
|
-
|Name|In|Type|Required|Description|
|
|
1358
|
-
|---|---|---|---|---|
|
|
1359
|
-
|body|body|object|true|none|
|
|
1360
|
-
|» id|body|string|true|none|
|
|
1361
|
-
|» name|body|string|true|none|
|
|
1362
|
-
|» accountNumber|body|number|true|none|
|
|
1363
|
-
|» serviceStartTime|body|string(date-time)|true|none|
|
|
1364
|
-
|» serviceEndTime|body|string(date-time)|true|none|
|
|
1365
|
-
|
|
1366
|
-
<h3 id="post__api_v1_account_admin_savetenant-responses">Responses</h3>
|
|
1367
|
-
|
|
1368
|
-
|Status|Meaning|Description|Schema|
|
|
1369
|
-
|---|---|---|---|
|
|
1370
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1371
|
-
|
|
1372
|
-
<aside class="success">
|
|
1373
|
-
This operation does not require authentication
|
|
1374
|
-
</aside>
|
|
1375
|
-
|
|
1376
|
-
## post__api_v1_account_admin_tenant_addOrg
|
|
1377
|
-
|
|
1378
|
-
`POST /api/v1/account/admin/tenant/addOrg`
|
|
1379
|
-
|
|
1380
|
-
<h3 id="post__api_v1_account_admin_tenant_addorg-responses">Responses</h3>
|
|
1381
|
-
|
|
1382
|
-
|Status|Meaning|Description|Schema|
|
|
1383
|
-
|---|---|---|---|
|
|
1384
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1385
|
-
|
|
1386
|
-
<aside class="success">
|
|
1387
|
-
This operation does not require authentication
|
|
1388
|
-
</aside>
|
|
1389
|
-
|
|
1390
|
-
## get__api_v1_account_admin_tenant_orgList
|
|
1391
|
-
|
|
1392
|
-
`GET /api/v1/account/admin/tenant/orgList`
|
|
1393
|
-
|
|
1394
|
-
<h3 id="get__api_v1_account_admin_tenant_orglist-parameters">Parameters</h3>
|
|
2756
|
+
<h3 id="post__api_v1_account_admin_getalloperationloglist-parameters">Parameters</h3>
|
|
1395
2757
|
|
|
1396
2758
|
|Name|In|Type|Required|Description|
|
|
1397
2759
|
|---|---|---|---|---|
|
|
1398
|
-
|
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
|
1403
|
-
|---|---|---|---|
|
|
1404
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1405
|
-
|
|
1406
|
-
<aside class="success">
|
|
1407
|
-
This operation does not require authentication
|
|
1408
|
-
</aside>
|
|
1409
|
-
|
|
1410
|
-
## post__api_v1_account_admin_tenant_editOrg
|
|
1411
|
-
|
|
1412
|
-
`POST /api/v1/account/admin/tenant/editOrg`
|
|
2760
|
+
|body|body|object|false|none|
|
|
2761
|
+
|» filter|body|object|false|none|
|
|
2762
|
+
|» type|body|string|false|none|
|
|
2763
|
+
|» perPage|body|number|false|none|
|
|
2764
|
+
|» currentPage|body|number|false|none|
|
|
1413
2765
|
|
|
1414
|
-
<h3 id="
|
|
2766
|
+
<h3 id="post__api_v1_account_admin_getalloperationloglist-responses">Responses</h3>
|
|
1415
2767
|
|
|
1416
2768
|
|Status|Meaning|Description|Schema|
|
|
1417
2769
|
|---|---|---|---|
|
|
@@ -1421,31 +2773,46 @@ This operation does not require authentication
|
|
|
1421
2773
|
This operation does not require authentication
|
|
1422
2774
|
</aside>
|
|
1423
2775
|
|
|
1424
|
-
##
|
|
1425
|
-
|
|
1426
|
-
`POST /api/v1/account/admin/tenant/removeOrg`
|
|
1427
|
-
|
|
1428
|
-
<h3 id="post__api_v1_account_admin_tenant_removeorg-responses">Responses</h3>
|
|
2776
|
+
## post__api_v1_account_admin_getTenantOperationLogList
|
|
1429
2777
|
|
|
1430
|
-
|
|
1431
|
-
|---|---|---|---|
|
|
1432
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
2778
|
+
`POST /api/v1/account/admin/getTenantOperationLogList`
|
|
1433
2779
|
|
|
1434
|
-
|
|
1435
|
-
This operation does not require authentication
|
|
1436
|
-
</aside>
|
|
2780
|
+
*获取租户操作日志列表*
|
|
1437
2781
|
|
|
1438
|
-
|
|
2782
|
+
> Body parameter
|
|
1439
2783
|
|
|
1440
|
-
|
|
2784
|
+
```json
|
|
2785
|
+
{
|
|
2786
|
+
"type": "object",
|
|
2787
|
+
"required": [],
|
|
2788
|
+
"properties": {
|
|
2789
|
+
"filter": {
|
|
2790
|
+
"type": "object"
|
|
2791
|
+
},
|
|
2792
|
+
"type": {
|
|
2793
|
+
"type": "string"
|
|
2794
|
+
},
|
|
2795
|
+
"perPage": {
|
|
2796
|
+
"type": "number"
|
|
2797
|
+
},
|
|
2798
|
+
"currentPage": {
|
|
2799
|
+
"type": "number"
|
|
2800
|
+
}
|
|
2801
|
+
}
|
|
2802
|
+
}
|
|
2803
|
+
```
|
|
1441
2804
|
|
|
1442
|
-
<h3 id="
|
|
2805
|
+
<h3 id="post__api_v1_account_admin_gettenantoperationloglist-parameters">Parameters</h3>
|
|
1443
2806
|
|
|
1444
2807
|
|Name|In|Type|Required|Description|
|
|
1445
2808
|
|---|---|---|---|---|
|
|
1446
|
-
|
|
|
2809
|
+
|body|body|object|false|none|
|
|
2810
|
+
|» filter|body|object|false|none|
|
|
2811
|
+
|» type|body|string|false|none|
|
|
2812
|
+
|» perPage|body|number|false|none|
|
|
2813
|
+
|» currentPage|body|number|false|none|
|
|
1447
2814
|
|
|
1448
|
-
<h3 id="
|
|
2815
|
+
<h3 id="post__api_v1_account_admin_gettenantoperationloglist-responses">Responses</h3>
|
|
1449
2816
|
|
|
1450
2817
|
|Status|Meaning|Description|Schema|
|
|
1451
2818
|
|---|---|---|---|
|
|
@@ -1455,9 +2822,13 @@ This operation does not require authentication
|
|
|
1455
2822
|
This operation does not require authentication
|
|
1456
2823
|
</aside>
|
|
1457
2824
|
|
|
1458
|
-
|
|
2825
|
+
<h1 id="-kne-fastify-account--">管理后台-权限</h1>
|
|
1459
2826
|
|
|
1460
|
-
|
|
2827
|
+
## post__api_v1_account_admin_addApplication
|
|
2828
|
+
|
|
2829
|
+
`POST /api/v1/account/admin/addApplication`
|
|
2830
|
+
|
|
2831
|
+
*添加应用*
|
|
1461
2832
|
|
|
1462
2833
|
> Body parameter
|
|
1463
2834
|
|
|
@@ -1465,41 +2836,20 @@ This operation does not require authentication
|
|
|
1465
2836
|
{
|
|
1466
2837
|
"type": "object",
|
|
1467
2838
|
"required": [
|
|
1468
|
-
"
|
|
1469
|
-
"
|
|
1470
|
-
"name"
|
|
2839
|
+
"name",
|
|
2840
|
+
"code"
|
|
1471
2841
|
],
|
|
1472
2842
|
"properties": {
|
|
1473
|
-
"tenantId": {
|
|
1474
|
-
"type": "string"
|
|
1475
|
-
},
|
|
1476
|
-
"roleIds": {
|
|
1477
|
-
"type": "array",
|
|
1478
|
-
"items": {
|
|
1479
|
-
"type": "number"
|
|
1480
|
-
},
|
|
1481
|
-
"default": []
|
|
1482
|
-
},
|
|
1483
|
-
"orgIds": {
|
|
1484
|
-
"type": "array",
|
|
1485
|
-
"items": {
|
|
1486
|
-
"type": "number"
|
|
1487
|
-
},
|
|
1488
|
-
"default": []
|
|
1489
|
-
},
|
|
1490
|
-
"userId": {
|
|
1491
|
-
"type": "string"
|
|
1492
|
-
},
|
|
1493
2843
|
"name": {
|
|
1494
2844
|
"type": "string"
|
|
1495
2845
|
},
|
|
1496
|
-
"
|
|
2846
|
+
"url": {
|
|
1497
2847
|
"type": "string"
|
|
1498
2848
|
},
|
|
1499
|
-
"
|
|
2849
|
+
"avatar": {
|
|
1500
2850
|
"type": "string"
|
|
1501
2851
|
},
|
|
1502
|
-
"
|
|
2852
|
+
"code": {
|
|
1503
2853
|
"type": "string"
|
|
1504
2854
|
},
|
|
1505
2855
|
"description": {
|
|
@@ -1509,22 +2859,18 @@ This operation does not require authentication
|
|
|
1509
2859
|
}
|
|
1510
2860
|
```
|
|
1511
2861
|
|
|
1512
|
-
<h3 id="
|
|
2862
|
+
<h3 id="post__api_v1_account_admin_addapplication-parameters">Parameters</h3>
|
|
1513
2863
|
|
|
1514
2864
|
|Name|In|Type|Required|Description|
|
|
1515
2865
|
|---|---|---|---|---|
|
|
1516
2866
|
|body|body|object|true|none|
|
|
1517
|
-
|» tenantId|body|string|true|none|
|
|
1518
|
-
|» roleIds|body|[number]|false|none|
|
|
1519
|
-
|» orgIds|body|[number]|false|none|
|
|
1520
|
-
|» userId|body|string|true|none|
|
|
1521
2867
|
|» name|body|string|true|none|
|
|
2868
|
+
|» url|body|string|false|none|
|
|
1522
2869
|
|» avatar|body|string|false|none|
|
|
1523
|
-
|»
|
|
1524
|
-
|» email|body|string|false|none|
|
|
2870
|
+
|» code|body|string|true|none|
|
|
1525
2871
|
|» description|body|string|false|none|
|
|
1526
2872
|
|
|
1527
|
-
<h3 id="
|
|
2873
|
+
<h3 id="post__api_v1_account_admin_addapplication-responses">Responses</h3>
|
|
1528
2874
|
|
|
1529
2875
|
|Status|Meaning|Description|Schema|
|
|
1530
2876
|
|---|---|---|---|
|
|
@@ -1534,9 +2880,11 @@ This operation does not require authentication
|
|
|
1534
2880
|
This operation does not require authentication
|
|
1535
2881
|
</aside>
|
|
1536
2882
|
|
|
1537
|
-
##
|
|
2883
|
+
## post__api_v1_account_admin_saveApplication
|
|
1538
2884
|
|
|
1539
|
-
`POST /api/v1/account/admin/
|
|
2885
|
+
`POST /api/v1/account/admin/saveApplication`
|
|
2886
|
+
|
|
2887
|
+
*修改应用*
|
|
1540
2888
|
|
|
1541
2889
|
> Body parameter
|
|
1542
2890
|
|
|
@@ -1544,26 +2892,16 @@ This operation does not require authentication
|
|
|
1544
2892
|
{
|
|
1545
2893
|
"type": "object",
|
|
1546
2894
|
"required": [
|
|
1547
|
-
"
|
|
1548
|
-
"name"
|
|
2895
|
+
"id",
|
|
2896
|
+
"name",
|
|
2897
|
+
"code"
|
|
1549
2898
|
],
|
|
1550
2899
|
"properties": {
|
|
1551
|
-
"
|
|
2900
|
+
"id": {
|
|
1552
2901
|
"type": "string"
|
|
1553
2902
|
},
|
|
1554
|
-
"
|
|
1555
|
-
"type": "
|
|
1556
|
-
"items": {
|
|
1557
|
-
"type": "number"
|
|
1558
|
-
},
|
|
1559
|
-
"default": []
|
|
1560
|
-
},
|
|
1561
|
-
"orgIds": {
|
|
1562
|
-
"type": "array",
|
|
1563
|
-
"items": {
|
|
1564
|
-
"type": "number"
|
|
1565
|
-
},
|
|
1566
|
-
"default": []
|
|
2903
|
+
"url": {
|
|
2904
|
+
"type": "string"
|
|
1567
2905
|
},
|
|
1568
2906
|
"name": {
|
|
1569
2907
|
"type": "string"
|
|
@@ -1571,10 +2909,7 @@ This operation does not require authentication
|
|
|
1571
2909
|
"avatar": {
|
|
1572
2910
|
"type": "string"
|
|
1573
2911
|
},
|
|
1574
|
-
"
|
|
1575
|
-
"type": "string"
|
|
1576
|
-
},
|
|
1577
|
-
"email": {
|
|
2912
|
+
"code": {
|
|
1578
2913
|
"type": "string"
|
|
1579
2914
|
},
|
|
1580
2915
|
"description": {
|
|
@@ -1584,21 +2919,19 @@ This operation does not require authentication
|
|
|
1584
2919
|
}
|
|
1585
2920
|
```
|
|
1586
2921
|
|
|
1587
|
-
<h3 id="
|
|
2922
|
+
<h3 id="post__api_v1_account_admin_saveapplication-parameters">Parameters</h3>
|
|
1588
2923
|
|
|
1589
2924
|
|Name|In|Type|Required|Description|
|
|
1590
2925
|
|---|---|---|---|---|
|
|
1591
2926
|
|body|body|object|true|none|
|
|
1592
|
-
|»
|
|
1593
|
-
|»
|
|
1594
|
-
|» orgIds|body|[number]|false|none|
|
|
2927
|
+
|» id|body|string|true|none|
|
|
2928
|
+
|» url|body|string|false|none|
|
|
1595
2929
|
|» name|body|string|true|none|
|
|
1596
2930
|
|» avatar|body|string|false|none|
|
|
1597
|
-
|»
|
|
1598
|
-
|» email|body|string|false|none|
|
|
2931
|
+
|» code|body|string|true|none|
|
|
1599
2932
|
|» description|body|string|false|none|
|
|
1600
2933
|
|
|
1601
|
-
<h3 id="
|
|
2934
|
+
<h3 id="post__api_v1_account_admin_saveapplication-responses">Responses</h3>
|
|
1602
2935
|
|
|
1603
2936
|
|Status|Meaning|Description|Schema|
|
|
1604
2937
|
|---|---|---|---|
|
|
@@ -1608,9 +2941,11 @@ This operation does not require authentication
|
|
|
1608
2941
|
This operation does not require authentication
|
|
1609
2942
|
</aside>
|
|
1610
2943
|
|
|
1611
|
-
##
|
|
2944
|
+
## post__api_v1_account_admin_deleteApplication
|
|
1612
2945
|
|
|
1613
|
-
`POST /api/v1/account/admin/
|
|
2946
|
+
`POST /api/v1/account/admin/deleteApplication`
|
|
2947
|
+
|
|
2948
|
+
*删除应用*
|
|
1614
2949
|
|
|
1615
2950
|
> Body parameter
|
|
1616
2951
|
|
|
@@ -1618,29 +2953,24 @@ This operation does not require authentication
|
|
|
1618
2953
|
{
|
|
1619
2954
|
"type": "object",
|
|
1620
2955
|
"required": [
|
|
1621
|
-
"
|
|
1622
|
-
"tenantUserId"
|
|
2956
|
+
"id"
|
|
1623
2957
|
],
|
|
1624
2958
|
"properties": {
|
|
1625
|
-
"
|
|
1626
|
-
"type": "string"
|
|
1627
|
-
},
|
|
1628
|
-
"tenantUserId": {
|
|
2959
|
+
"id": {
|
|
1629
2960
|
"type": "string"
|
|
1630
2961
|
}
|
|
1631
2962
|
}
|
|
1632
2963
|
}
|
|
1633
2964
|
```
|
|
1634
2965
|
|
|
1635
|
-
<h3 id="
|
|
2966
|
+
<h3 id="post__api_v1_account_admin_deleteapplication-parameters">Parameters</h3>
|
|
1636
2967
|
|
|
1637
2968
|
|Name|In|Type|Required|Description|
|
|
1638
2969
|
|---|---|---|---|---|
|
|
1639
2970
|
|body|body|object|true|none|
|
|
1640
|
-
|»
|
|
1641
|
-
|» tenantUserId|body|string|true|none|
|
|
2971
|
+
|» id|body|string|true|none|
|
|
1642
2972
|
|
|
1643
|
-
<h3 id="
|
|
2973
|
+
<h3 id="post__api_v1_account_admin_deleteapplication-responses">Responses</h3>
|
|
1644
2974
|
|
|
1645
2975
|
|Status|Meaning|Description|Schema|
|
|
1646
2976
|
|---|---|---|---|
|
|
@@ -1650,9 +2980,33 @@ This operation does not require authentication
|
|
|
1650
2980
|
This operation does not require authentication
|
|
1651
2981
|
</aside>
|
|
1652
2982
|
|
|
1653
|
-
##
|
|
2983
|
+
## get__api_v1_account_admin_getApplicationList
|
|
1654
2984
|
|
|
1655
|
-
`
|
|
2985
|
+
`GET /api/v1/account/admin/getApplicationList`
|
|
2986
|
+
|
|
2987
|
+
*获取应用列表*
|
|
2988
|
+
|
|
2989
|
+
<h3 id="get__api_v1_account_admin_getapplicationlist-parameters">Parameters</h3>
|
|
2990
|
+
|
|
2991
|
+
|Name|In|Type|Required|Description|
|
|
2992
|
+
|---|---|---|---|---|
|
|
2993
|
+
|tenantId|query|string|false|none|
|
|
2994
|
+
|
|
2995
|
+
<h3 id="get__api_v1_account_admin_getapplicationlist-responses">Responses</h3>
|
|
2996
|
+
|
|
2997
|
+
|Status|Meaning|Description|Schema|
|
|
2998
|
+
|---|---|---|---|
|
|
2999
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
3000
|
+
|
|
3001
|
+
<aside class="success">
|
|
3002
|
+
This operation does not require authentication
|
|
3003
|
+
</aside>
|
|
3004
|
+
|
|
3005
|
+
## post__api_v1_account_admin_addPermission
|
|
3006
|
+
|
|
3007
|
+
`POST /api/v1/account/admin/addPermission`
|
|
3008
|
+
|
|
3009
|
+
*添加应用权限*
|
|
1656
3010
|
|
|
1657
3011
|
> Body parameter
|
|
1658
3012
|
|
|
@@ -1660,24 +3014,54 @@ This operation does not require authentication
|
|
|
1660
3014
|
{
|
|
1661
3015
|
"type": "object",
|
|
1662
3016
|
"required": [
|
|
1663
|
-
"
|
|
3017
|
+
"applicationId",
|
|
3018
|
+
"name",
|
|
3019
|
+
"code"
|
|
1664
3020
|
],
|
|
1665
3021
|
"properties": {
|
|
1666
|
-
"
|
|
3022
|
+
"applicationId": {
|
|
3023
|
+
"type": "string"
|
|
3024
|
+
},
|
|
3025
|
+
"name": {
|
|
3026
|
+
"type": "string"
|
|
3027
|
+
},
|
|
3028
|
+
"code": {
|
|
3029
|
+
"type": "string"
|
|
3030
|
+
},
|
|
3031
|
+
"type": {
|
|
3032
|
+
"type": "number"
|
|
3033
|
+
},
|
|
3034
|
+
"isModule": {
|
|
3035
|
+
"type": "number"
|
|
3036
|
+
},
|
|
3037
|
+
"isMust": {
|
|
3038
|
+
"type": "number"
|
|
3039
|
+
},
|
|
3040
|
+
"pid": {
|
|
3041
|
+
"type": "number"
|
|
3042
|
+
},
|
|
3043
|
+
"description": {
|
|
1667
3044
|
"type": "string"
|
|
1668
3045
|
}
|
|
1669
3046
|
}
|
|
1670
3047
|
}
|
|
1671
3048
|
```
|
|
1672
3049
|
|
|
1673
|
-
<h3 id="
|
|
3050
|
+
<h3 id="post__api_v1_account_admin_addpermission-parameters">Parameters</h3>
|
|
1674
3051
|
|
|
1675
3052
|
|Name|In|Type|Required|Description|
|
|
1676
3053
|
|---|---|---|---|---|
|
|
1677
3054
|
|body|body|object|true|none|
|
|
1678
|
-
|»
|
|
3055
|
+
|» applicationId|body|string|true|none|
|
|
3056
|
+
|» name|body|string|true|none|
|
|
3057
|
+
|» code|body|string|true|none|
|
|
3058
|
+
|» type|body|number|false|none|
|
|
3059
|
+
|» isModule|body|number|false|none|
|
|
3060
|
+
|» isMust|body|number|false|none|
|
|
3061
|
+
|» pid|body|number|false|none|
|
|
3062
|
+
|» description|body|string|false|none|
|
|
1679
3063
|
|
|
1680
|
-
<h3 id="
|
|
3064
|
+
<h3 id="post__api_v1_account_admin_addpermission-responses">Responses</h3>
|
|
1681
3065
|
|
|
1682
3066
|
|Status|Meaning|Description|Schema|
|
|
1683
3067
|
|---|---|---|---|
|
|
@@ -1687,9 +3071,111 @@ This operation does not require authentication
|
|
|
1687
3071
|
This operation does not require authentication
|
|
1688
3072
|
</aside>
|
|
1689
3073
|
|
|
1690
|
-
##
|
|
3074
|
+
## get__api_v1_account_admin_getPermissionList
|
|
1691
3075
|
|
|
1692
|
-
`
|
|
3076
|
+
`GET /api/v1/account/admin/getPermissionList`
|
|
3077
|
+
|
|
3078
|
+
*获取应用权限列表*
|
|
3079
|
+
|
|
3080
|
+
<h3 id="get__api_v1_account_admin_getpermissionlist-parameters">Parameters</h3>
|
|
3081
|
+
|
|
3082
|
+
|Name|In|Type|Required|Description|
|
|
3083
|
+
|---|---|---|---|---|
|
|
3084
|
+
|applicationId|query|string|true|none|
|
|
3085
|
+
|tenantId|query|string|false|none|
|
|
3086
|
+
|
|
3087
|
+
> Example responses
|
|
3088
|
+
|
|
3089
|
+
> 200 Response
|
|
3090
|
+
|
|
3091
|
+
```json
|
|
3092
|
+
{
|
|
3093
|
+
"type": "array",
|
|
3094
|
+
"items": {
|
|
3095
|
+
"type": "object",
|
|
3096
|
+
"properties": {
|
|
3097
|
+
"id": {
|
|
3098
|
+
"type": "number"
|
|
3099
|
+
},
|
|
3100
|
+
"code": {
|
|
3101
|
+
"type": "string"
|
|
3102
|
+
},
|
|
3103
|
+
"name": {
|
|
3104
|
+
"type": "string"
|
|
3105
|
+
},
|
|
3106
|
+
"isModule": {
|
|
3107
|
+
"type": "number"
|
|
3108
|
+
},
|
|
3109
|
+
"isMust": {
|
|
3110
|
+
"type": "number"
|
|
3111
|
+
},
|
|
3112
|
+
"type": {
|
|
3113
|
+
"type": "number"
|
|
3114
|
+
},
|
|
3115
|
+
"pid": {
|
|
3116
|
+
"type": "number"
|
|
3117
|
+
},
|
|
3118
|
+
"paths": {
|
|
3119
|
+
"type": "array",
|
|
3120
|
+
"items": {
|
|
3121
|
+
"type": "number"
|
|
3122
|
+
}
|
|
3123
|
+
},
|
|
3124
|
+
"description": {
|
|
3125
|
+
"type": "string"
|
|
3126
|
+
},
|
|
3127
|
+
"status": {
|
|
3128
|
+
"type": "number"
|
|
3129
|
+
},
|
|
3130
|
+
"createdAt": {
|
|
3131
|
+
"type": "string"
|
|
3132
|
+
},
|
|
3133
|
+
"updatedAt": {
|
|
3134
|
+
"type": "string"
|
|
3135
|
+
},
|
|
3136
|
+
"deletedAt": {
|
|
3137
|
+
"type": "string"
|
|
3138
|
+
}
|
|
3139
|
+
}
|
|
3140
|
+
}
|
|
3141
|
+
}
|
|
3142
|
+
```
|
|
3143
|
+
|
|
3144
|
+
<h3 id="get__api_v1_account_admin_getpermissionlist-responses">Responses</h3>
|
|
3145
|
+
|
|
3146
|
+
|Status|Meaning|Description|Schema|
|
|
3147
|
+
|---|---|---|---|
|
|
3148
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|Inline|
|
|
3149
|
+
|
|
3150
|
+
<h3 id="get__api_v1_account_admin_getpermissionlist-responseschema">Response Schema</h3>
|
|
3151
|
+
|
|
3152
|
+
Status Code **200**
|
|
3153
|
+
|
|
3154
|
+
|Name|Type|Required|Restrictions|Description|
|
|
3155
|
+
|---|---|---|---|---|
|
|
3156
|
+
|» id|number|false|none|none|
|
|
3157
|
+
|» code|string|false|none|none|
|
|
3158
|
+
|» name|string|false|none|none|
|
|
3159
|
+
|» isModule|number|false|none|none|
|
|
3160
|
+
|» isMust|number|false|none|none|
|
|
3161
|
+
|» type|number|false|none|none|
|
|
3162
|
+
|» pid|number|false|none|none|
|
|
3163
|
+
|» paths|[number]|false|none|none|
|
|
3164
|
+
|» description|string|false|none|none|
|
|
3165
|
+
|» status|number|false|none|none|
|
|
3166
|
+
|» createdAt|string|false|none|none|
|
|
3167
|
+
|» updatedAt|string|false|none|none|
|
|
3168
|
+
|» deletedAt|string|false|none|none|
|
|
3169
|
+
|
|
3170
|
+
<aside class="success">
|
|
3171
|
+
This operation does not require authentication
|
|
3172
|
+
</aside>
|
|
3173
|
+
|
|
3174
|
+
## post__api_v1_account_admin_exportPermissionList
|
|
3175
|
+
|
|
3176
|
+
`POST /api/v1/account/admin/exportPermissionList`
|
|
3177
|
+
|
|
3178
|
+
*导出应用权限列表*
|
|
1693
3179
|
|
|
1694
3180
|
> Body parameter
|
|
1695
3181
|
|
|
@@ -1697,9 +3183,15 @@ This operation does not require authentication
|
|
|
1697
3183
|
{
|
|
1698
3184
|
"type": "object",
|
|
1699
3185
|
"required": [
|
|
1700
|
-
"
|
|
3186
|
+
"applicationIds"
|
|
1701
3187
|
],
|
|
1702
3188
|
"properties": {
|
|
3189
|
+
"applicationIds": {
|
|
3190
|
+
"type": "array",
|
|
3191
|
+
"items": {
|
|
3192
|
+
"type": "string"
|
|
3193
|
+
}
|
|
3194
|
+
},
|
|
1703
3195
|
"tenantId": {
|
|
1704
3196
|
"type": "string"
|
|
1705
3197
|
}
|
|
@@ -1707,26 +3199,116 @@ This operation does not require authentication
|
|
|
1707
3199
|
}
|
|
1708
3200
|
```
|
|
1709
3201
|
|
|
1710
|
-
<h3 id="
|
|
3202
|
+
<h3 id="post__api_v1_account_admin_exportpermissionlist-parameters">Parameters</h3>
|
|
1711
3203
|
|
|
1712
3204
|
|Name|In|Type|Required|Description|
|
|
1713
3205
|
|---|---|---|---|---|
|
|
1714
3206
|
|body|body|object|true|none|
|
|
1715
|
-
|»
|
|
3207
|
+
|» applicationIds|body|[string]|true|none|
|
|
3208
|
+
|» tenantId|body|string|false|none|
|
|
1716
3209
|
|
|
1717
|
-
|
|
3210
|
+
> Example responses
|
|
3211
|
+
|
|
3212
|
+
> 200 Response
|
|
3213
|
+
|
|
3214
|
+
```json
|
|
3215
|
+
{
|
|
3216
|
+
"type": "array",
|
|
3217
|
+
"items": {
|
|
3218
|
+
"type": "object",
|
|
3219
|
+
"properties": {
|
|
3220
|
+
"code": {
|
|
3221
|
+
"type": "string"
|
|
3222
|
+
},
|
|
3223
|
+
"name": {
|
|
3224
|
+
"type": "string"
|
|
3225
|
+
},
|
|
3226
|
+
"url": {
|
|
3227
|
+
"type": "string"
|
|
3228
|
+
},
|
|
3229
|
+
"description": {
|
|
3230
|
+
"type": "string"
|
|
3231
|
+
},
|
|
3232
|
+
"status": {
|
|
3233
|
+
"type": "number"
|
|
3234
|
+
},
|
|
3235
|
+
"permissions": {
|
|
3236
|
+
"type": "array",
|
|
3237
|
+
"items": {
|
|
3238
|
+
"type": "object",
|
|
3239
|
+
"properties": {
|
|
3240
|
+
"id": {
|
|
3241
|
+
"type": "number"
|
|
3242
|
+
},
|
|
3243
|
+
"code": {
|
|
3244
|
+
"type": "string"
|
|
3245
|
+
},
|
|
3246
|
+
"name": {
|
|
3247
|
+
"type": "string"
|
|
3248
|
+
},
|
|
3249
|
+
"isModule": {
|
|
3250
|
+
"type": "number"
|
|
3251
|
+
},
|
|
3252
|
+
"isMust": {
|
|
3253
|
+
"type": "number"
|
|
3254
|
+
},
|
|
3255
|
+
"type": {
|
|
3256
|
+
"type": "number"
|
|
3257
|
+
},
|
|
3258
|
+
"pid": {
|
|
3259
|
+
"type": "number"
|
|
3260
|
+
},
|
|
3261
|
+
"description": {
|
|
3262
|
+
"type": "string"
|
|
3263
|
+
},
|
|
3264
|
+
"status": {
|
|
3265
|
+
"type": "number"
|
|
3266
|
+
}
|
|
3267
|
+
}
|
|
3268
|
+
}
|
|
3269
|
+
}
|
|
3270
|
+
}
|
|
3271
|
+
}
|
|
3272
|
+
}
|
|
3273
|
+
```
|
|
3274
|
+
|
|
3275
|
+
<h3 id="post__api_v1_account_admin_exportpermissionlist-responses">Responses</h3>
|
|
1718
3276
|
|
|
1719
3277
|
|Status|Meaning|Description|Schema|
|
|
1720
3278
|
|---|---|---|---|
|
|
1721
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|
|
|
3279
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|Inline|
|
|
3280
|
+
|
|
3281
|
+
<h3 id="post__api_v1_account_admin_exportpermissionlist-responseschema">Response Schema</h3>
|
|
3282
|
+
|
|
3283
|
+
Status Code **200**
|
|
3284
|
+
|
|
3285
|
+
|Name|Type|Required|Restrictions|Description|
|
|
3286
|
+
|---|---|---|---|---|
|
|
3287
|
+
|» code|string|false|none|none|
|
|
3288
|
+
|» name|string|false|none|none|
|
|
3289
|
+
|» url|string|false|none|none|
|
|
3290
|
+
|» description|string|false|none|none|
|
|
3291
|
+
|» status|number|false|none|none|
|
|
3292
|
+
|» permissions|[object]|false|none|none|
|
|
3293
|
+
|»» id|number|false|none|none|
|
|
3294
|
+
|»» code|string|false|none|none|
|
|
3295
|
+
|»» name|string|false|none|none|
|
|
3296
|
+
|»» isModule|number|false|none|none|
|
|
3297
|
+
|»» isMust|number|false|none|none|
|
|
3298
|
+
|»» type|number|false|none|none|
|
|
3299
|
+
|»» pid|number|false|none|none|
|
|
3300
|
+
|»» description|string|false|none|none|
|
|
3301
|
+
|»» status|number|false|none|none|
|
|
1722
3302
|
|
|
1723
3303
|
<aside class="success">
|
|
1724
3304
|
This operation does not require authentication
|
|
1725
3305
|
</aside>
|
|
1726
3306
|
|
|
1727
|
-
##
|
|
3307
|
+
## post__api_v1_account_admin_deletePermission
|
|
1728
3308
|
|
|
1729
|
-
`POST /api/v1/account/admin/
|
|
3309
|
+
`POST /api/v1/account/admin/deletePermission`
|
|
3310
|
+
|
|
3311
|
+
*删除应用权限*
|
|
1730
3312
|
|
|
1731
3313
|
> Body parameter
|
|
1732
3314
|
|
|
@@ -1734,29 +3316,24 @@ This operation does not require authentication
|
|
|
1734
3316
|
{
|
|
1735
3317
|
"type": "object",
|
|
1736
3318
|
"required": [
|
|
1737
|
-
"
|
|
1738
|
-
"tenantUserId"
|
|
3319
|
+
"id"
|
|
1739
3320
|
],
|
|
1740
3321
|
"properties": {
|
|
1741
|
-
"
|
|
1742
|
-
"type": "string"
|
|
1743
|
-
},
|
|
1744
|
-
"tenantUserId": {
|
|
3322
|
+
"id": {
|
|
1745
3323
|
"type": "string"
|
|
1746
3324
|
}
|
|
1747
3325
|
}
|
|
1748
3326
|
}
|
|
1749
3327
|
```
|
|
1750
3328
|
|
|
1751
|
-
<h3 id="
|
|
3329
|
+
<h3 id="post__api_v1_account_admin_deletepermission-parameters">Parameters</h3>
|
|
1752
3330
|
|
|
1753
3331
|
|Name|In|Type|Required|Description|
|
|
1754
3332
|
|---|---|---|---|---|
|
|
1755
3333
|
|body|body|object|true|none|
|
|
1756
|
-
|»
|
|
1757
|
-
|» tenantUserId|body|string|true|none|
|
|
3334
|
+
|» id|body|string|true|none|
|
|
1758
3335
|
|
|
1759
|
-
<h3 id="
|
|
3336
|
+
<h3 id="post__api_v1_account_admin_deletepermission-responses">Responses</h3>
|
|
1760
3337
|
|
|
1761
3338
|
|Status|Meaning|Description|Schema|
|
|
1762
3339
|
|---|---|---|---|
|
|
@@ -1766,9 +3343,11 @@ This operation does not require authentication
|
|
|
1766
3343
|
This operation does not require authentication
|
|
1767
3344
|
</aside>
|
|
1768
3345
|
|
|
1769
|
-
##
|
|
3346
|
+
## post__api_v1_account_admin_savePermission
|
|
1770
3347
|
|
|
1771
|
-
`POST /api/v1/account/admin/
|
|
3348
|
+
`POST /api/v1/account/admin/savePermission`
|
|
3349
|
+
|
|
3350
|
+
*修改应用权限*
|
|
1772
3351
|
|
|
1773
3352
|
> Body parameter
|
|
1774
3353
|
|
|
@@ -1776,29 +3355,40 @@ This operation does not require authentication
|
|
|
1776
3355
|
{
|
|
1777
3356
|
"type": "object",
|
|
1778
3357
|
"required": [
|
|
1779
|
-
"
|
|
1780
|
-
"tenantUserId"
|
|
3358
|
+
"id"
|
|
1781
3359
|
],
|
|
1782
3360
|
"properties": {
|
|
1783
|
-
"
|
|
3361
|
+
"id": {
|
|
1784
3362
|
"type": "string"
|
|
1785
3363
|
},
|
|
1786
|
-
"
|
|
3364
|
+
"name": {
|
|
3365
|
+
"type": "string"
|
|
3366
|
+
},
|
|
3367
|
+
"type": {
|
|
3368
|
+
"type": "number"
|
|
3369
|
+
},
|
|
3370
|
+
"isMust": {
|
|
3371
|
+
"type": "number"
|
|
3372
|
+
},
|
|
3373
|
+
"description": {
|
|
1787
3374
|
"type": "string"
|
|
1788
3375
|
}
|
|
1789
3376
|
}
|
|
1790
3377
|
}
|
|
1791
3378
|
```
|
|
1792
3379
|
|
|
1793
|
-
<h3 id="
|
|
3380
|
+
<h3 id="post__api_v1_account_admin_savepermission-parameters">Parameters</h3>
|
|
1794
3381
|
|
|
1795
3382
|
|Name|In|Type|Required|Description|
|
|
1796
3383
|
|---|---|---|---|---|
|
|
1797
3384
|
|body|body|object|true|none|
|
|
1798
|
-
|»
|
|
1799
|
-
|»
|
|
3385
|
+
|» id|body|string|true|none|
|
|
3386
|
+
|» name|body|string|false|none|
|
|
3387
|
+
|» type|body|number|false|none|
|
|
3388
|
+
|» isMust|body|number|false|none|
|
|
3389
|
+
|» description|body|string|false|none|
|
|
1800
3390
|
|
|
1801
|
-
<h3 id="
|
|
3391
|
+
<h3 id="post__api_v1_account_admin_savepermission-responses">Responses</h3>
|
|
1802
3392
|
|
|
1803
3393
|
|Status|Meaning|Description|Schema|
|
|
1804
3394
|
|---|---|---|---|
|
|
@@ -1808,17 +3398,19 @@ This operation does not require authentication
|
|
|
1808
3398
|
This operation does not require authentication
|
|
1809
3399
|
</aside>
|
|
1810
3400
|
|
|
1811
|
-
##
|
|
3401
|
+
## get__api_v1_account_admin_getTenantPermissionList
|
|
1812
3402
|
|
|
1813
|
-
`GET /api/v1/account/admin/
|
|
3403
|
+
`GET /api/v1/account/admin/getTenantPermissionList`
|
|
1814
3404
|
|
|
1815
|
-
|
|
3405
|
+
*获取租户应用权限配置*
|
|
3406
|
+
|
|
3407
|
+
<h3 id="get__api_v1_account_admin_gettenantpermissionlist-parameters">Parameters</h3>
|
|
1816
3408
|
|
|
1817
3409
|
|Name|In|Type|Required|Description|
|
|
1818
3410
|
|---|---|---|---|---|
|
|
1819
3411
|
|tenantId|query|string|true|none|
|
|
1820
3412
|
|
|
1821
|
-
<h3 id="
|
|
3413
|
+
<h3 id="get__api_v1_account_admin_gettenantpermissionlist-responses">Responses</h3>
|
|
1822
3414
|
|
|
1823
3415
|
|Status|Meaning|Description|Schema|
|
|
1824
3416
|
|---|---|---|---|
|
|
@@ -1828,9 +3420,11 @@ This operation does not require authentication
|
|
|
1828
3420
|
This operation does not require authentication
|
|
1829
3421
|
</aside>
|
|
1830
3422
|
|
|
1831
|
-
##
|
|
3423
|
+
## post__api_v1_account_admin_saveTenantPermissionList
|
|
1832
3424
|
|
|
1833
|
-
`POST /api/v1/account/admin/
|
|
3425
|
+
`POST /api/v1/account/admin/saveTenantPermissionList`
|
|
3426
|
+
|
|
3427
|
+
*修改租户应用权限配置*
|
|
1834
3428
|
|
|
1835
3429
|
> Body parameter
|
|
1836
3430
|
|
|
@@ -1838,46 +3432,40 @@ This operation does not require authentication
|
|
|
1838
3432
|
{
|
|
1839
3433
|
"type": "object",
|
|
1840
3434
|
"required": [
|
|
1841
|
-
"tenantId"
|
|
3435
|
+
"tenantId",
|
|
3436
|
+
"applications",
|
|
3437
|
+
"permissions"
|
|
1842
3438
|
],
|
|
1843
3439
|
"properties": {
|
|
1844
3440
|
"tenantId": {
|
|
1845
3441
|
"type": "string"
|
|
1846
3442
|
},
|
|
1847
|
-
"
|
|
1848
|
-
"type": "
|
|
1849
|
-
"
|
|
1850
|
-
"
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
"orgIds": {
|
|
1858
|
-
"type": "array",
|
|
1859
|
-
"items": {
|
|
1860
|
-
"type": "number"
|
|
1861
|
-
},
|
|
1862
|
-
"default": []
|
|
1863
|
-
}
|
|
3443
|
+
"applications": {
|
|
3444
|
+
"type": "array",
|
|
3445
|
+
"items": {
|
|
3446
|
+
"type": "string"
|
|
3447
|
+
}
|
|
3448
|
+
},
|
|
3449
|
+
"permissions": {
|
|
3450
|
+
"type": "array",
|
|
3451
|
+
"items": {
|
|
3452
|
+
"type": "number"
|
|
1864
3453
|
}
|
|
1865
3454
|
}
|
|
1866
3455
|
}
|
|
1867
3456
|
}
|
|
1868
3457
|
```
|
|
1869
3458
|
|
|
1870
|
-
<h3 id="
|
|
3459
|
+
<h3 id="post__api_v1_account_admin_savetenantpermissionlist-parameters">Parameters</h3>
|
|
1871
3460
|
|
|
1872
3461
|
|Name|In|Type|Required|Description|
|
|
1873
3462
|
|---|---|---|---|---|
|
|
1874
3463
|
|body|body|object|true|none|
|
|
1875
3464
|
|» tenantId|body|string|true|none|
|
|
1876
|
-
|»
|
|
1877
|
-
|
|
1878
|
-
|»» orgIds|body|[number]|false|none|
|
|
3465
|
+
|» applications|body|[string]|true|none|
|
|
3466
|
+
|» permissions|body|[number]|true|none|
|
|
1879
3467
|
|
|
1880
|
-
<h3 id="
|
|
3468
|
+
<h3 id="post__api_v1_account_admin_savetenantpermissionlist-responses">Responses</h3>
|
|
1881
3469
|
|
|
1882
3470
|
|Status|Meaning|Description|Schema|
|
|
1883
3471
|
|---|---|---|---|
|
|
@@ -1887,9 +3475,11 @@ This operation does not require authentication
|
|
|
1887
3475
|
This operation does not require authentication
|
|
1888
3476
|
</aside>
|
|
1889
3477
|
|
|
1890
|
-
##
|
|
3478
|
+
## post__api_v1_account_admin_copyPermissions
|
|
1891
3479
|
|
|
1892
|
-
`POST /api/v1/account/admin/
|
|
3480
|
+
`POST /api/v1/account/admin/copyPermissions`
|
|
3481
|
+
|
|
3482
|
+
*复制应用权限到目标应用*
|
|
1893
3483
|
|
|
1894
3484
|
> Body parameter
|
|
1895
3485
|
|
|
@@ -1897,24 +3487,29 @@ This operation does not require authentication
|
|
|
1897
3487
|
{
|
|
1898
3488
|
"type": "object",
|
|
1899
3489
|
"required": [
|
|
1900
|
-
"
|
|
3490
|
+
"applicationId",
|
|
3491
|
+
"originApplicationId"
|
|
1901
3492
|
],
|
|
1902
3493
|
"properties": {
|
|
1903
|
-
"
|
|
1904
|
-
"type": "
|
|
3494
|
+
"applicationId": {
|
|
3495
|
+
"type": "string"
|
|
3496
|
+
},
|
|
3497
|
+
"originApplicationId": {
|
|
3498
|
+
"type": "string"
|
|
1905
3499
|
}
|
|
1906
3500
|
}
|
|
1907
3501
|
}
|
|
1908
3502
|
```
|
|
1909
3503
|
|
|
1910
|
-
<h3 id="
|
|
3504
|
+
<h3 id="post__api_v1_account_admin_copypermissions-parameters">Parameters</h3>
|
|
1911
3505
|
|
|
1912
3506
|
|Name|In|Type|Required|Description|
|
|
1913
3507
|
|---|---|---|---|---|
|
|
1914
3508
|
|body|body|object|true|none|
|
|
1915
|
-
|»
|
|
3509
|
+
|» applicationId|body|string|true|none|
|
|
3510
|
+
|» originApplicationId|body|string|true|none|
|
|
1916
3511
|
|
|
1917
|
-
<h3 id="
|
|
3512
|
+
<h3 id="post__api_v1_account_admin_copypermissions-responses">Responses</h3>
|
|
1918
3513
|
|
|
1919
3514
|
|Status|Meaning|Description|Schema|
|
|
1920
3515
|
|---|---|---|---|
|
|
@@ -1924,11 +3519,22 @@ This operation does not require authentication
|
|
|
1924
3519
|
This operation does not require authentication
|
|
1925
3520
|
</aside>
|
|
1926
3521
|
|
|
1927
|
-
|
|
3522
|
+
<h1 id="-kne-fastify-account--">租户平台</h1>
|
|
1928
3523
|
|
|
1929
|
-
|
|
3524
|
+
## get__api_v1_account_tenant_getCompanyInfo
|
|
1930
3525
|
|
|
1931
|
-
|
|
3526
|
+
`GET /api/v1/account/tenant/getCompanyInfo`
|
|
3527
|
+
|
|
3528
|
+
*获取租户的公司信息*
|
|
3529
|
+
|
|
3530
|
+
<h3 id="get__api_v1_account_tenant_getcompanyinfo-parameters">Parameters</h3>
|
|
3531
|
+
|
|
3532
|
+
|Name|In|Type|Required|Description|
|
|
3533
|
+
|---|---|---|---|---|
|
|
3534
|
+
|currentPage|query|number|false|none|
|
|
3535
|
+
|perPage|query|number|false|none|
|
|
3536
|
+
|
|
3537
|
+
<h3 id="get__api_v1_account_tenant_getcompanyinfo-responses">Responses</h3>
|
|
1932
3538
|
|
|
1933
3539
|
|Status|Meaning|Description|Schema|
|
|
1934
3540
|
|---|---|---|---|
|
|
@@ -1938,25 +3544,56 @@ This operation does not require authentication
|
|
|
1938
3544
|
This operation does not require authentication
|
|
1939
3545
|
</aside>
|
|
1940
3546
|
|
|
1941
|
-
##
|
|
3547
|
+
## post__api_v1_account_tenant_saveCompanyInfo
|
|
1942
3548
|
|
|
1943
|
-
`
|
|
3549
|
+
`POST /api/v1/account/tenant/saveCompanyInfo`
|
|
1944
3550
|
|
|
1945
|
-
|
|
3551
|
+
*修改租户的公司信息*
|
|
1946
3552
|
|
|
1947
|
-
|
|
1948
|
-
|---|---|---|---|
|
|
1949
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
3553
|
+
> Body parameter
|
|
1950
3554
|
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
3555
|
+
```json
|
|
3556
|
+
{
|
|
3557
|
+
"type": "object",
|
|
3558
|
+
"required": [
|
|
3559
|
+
"id"
|
|
3560
|
+
],
|
|
3561
|
+
"properties": {
|
|
3562
|
+
"id": {
|
|
3563
|
+
"type": "number"
|
|
3564
|
+
},
|
|
3565
|
+
"name": {
|
|
3566
|
+
"type": "string"
|
|
3567
|
+
},
|
|
3568
|
+
"shortName": {
|
|
3569
|
+
"type": "string"
|
|
3570
|
+
},
|
|
3571
|
+
"themeColor": {
|
|
3572
|
+
"type": "string"
|
|
3573
|
+
},
|
|
3574
|
+
"logo": {
|
|
3575
|
+
"type": "string"
|
|
3576
|
+
},
|
|
3577
|
+
"description": {
|
|
3578
|
+
"type": "string"
|
|
3579
|
+
}
|
|
3580
|
+
}
|
|
3581
|
+
}
|
|
3582
|
+
```
|
|
1954
3583
|
|
|
1955
|
-
|
|
3584
|
+
<h3 id="post__api_v1_account_tenant_savecompanyinfo-parameters">Parameters</h3>
|
|
1956
3585
|
|
|
1957
|
-
|
|
3586
|
+
|Name|In|Type|Required|Description|
|
|
3587
|
+
|---|---|---|---|---|
|
|
3588
|
+
|body|body|object|true|none|
|
|
3589
|
+
|» id|body|number|true|none|
|
|
3590
|
+
|» name|body|string|false|none|
|
|
3591
|
+
|» shortName|body|string|false|none|
|
|
3592
|
+
|» themeColor|body|string|false|none|
|
|
3593
|
+
|» logo|body|string|false|none|
|
|
3594
|
+
|» description|body|string|false|none|
|
|
1958
3595
|
|
|
1959
|
-
<h3 id="
|
|
3596
|
+
<h3 id="post__api_v1_account_tenant_savecompanyinfo-responses">Responses</h3>
|
|
1960
3597
|
|
|
1961
3598
|
|Status|Meaning|Description|Schema|
|
|
1962
3599
|
|---|---|---|---|
|
|
@@ -1966,11 +3603,15 @@ This operation does not require authentication
|
|
|
1966
3603
|
This operation does not require authentication
|
|
1967
3604
|
</aside>
|
|
1968
3605
|
|
|
1969
|
-
|
|
3606
|
+
<h1 id="-kne-fastify-account--">租户管理-权限</h1>
|
|
1970
3607
|
|
|
1971
|
-
|
|
3608
|
+
## get__api_v1_account_tenant_getApplicationList
|
|
1972
3609
|
|
|
1973
|
-
|
|
3610
|
+
`GET /api/v1/account/tenant/getApplicationList`
|
|
3611
|
+
|
|
3612
|
+
*获取应用列表*
|
|
3613
|
+
|
|
3614
|
+
<h3 id="get__api_v1_account_tenant_getapplicationlist-responses">Responses</h3>
|
|
1974
3615
|
|
|
1975
3616
|
|Status|Meaning|Description|Schema|
|
|
1976
3617
|
|---|---|---|---|
|
|
@@ -1980,38 +3621,100 @@ This operation does not require authentication
|
|
|
1980
3621
|
This operation does not require authentication
|
|
1981
3622
|
</aside>
|
|
1982
3623
|
|
|
1983
|
-
##
|
|
3624
|
+
## get__api_v1_account_tenant_getPermissionList
|
|
1984
3625
|
|
|
1985
|
-
`
|
|
3626
|
+
`GET /api/v1/account/tenant/getPermissionList`
|
|
1986
3627
|
|
|
1987
|
-
|
|
3628
|
+
*获取应用权限列表*
|
|
3629
|
+
|
|
3630
|
+
<h3 id="get__api_v1_account_tenant_getpermissionlist-parameters">Parameters</h3>
|
|
3631
|
+
|
|
3632
|
+
|Name|In|Type|Required|Description|
|
|
3633
|
+
|---|---|---|---|---|
|
|
3634
|
+
|applicationId|query|string|true|none|
|
|
3635
|
+
|
|
3636
|
+
> Example responses
|
|
3637
|
+
|
|
3638
|
+
> 200 Response
|
|
1988
3639
|
|
|
1989
3640
|
```json
|
|
1990
3641
|
{
|
|
1991
|
-
"type": "
|
|
1992
|
-
"
|
|
1993
|
-
"
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
3642
|
+
"type": "array",
|
|
3643
|
+
"items": {
|
|
3644
|
+
"type": "object",
|
|
3645
|
+
"properties": {
|
|
3646
|
+
"id": {
|
|
3647
|
+
"type": "number"
|
|
3648
|
+
},
|
|
3649
|
+
"code": {
|
|
3650
|
+
"type": "string"
|
|
3651
|
+
},
|
|
3652
|
+
"name": {
|
|
3653
|
+
"type": "string"
|
|
3654
|
+
},
|
|
3655
|
+
"isModule": {
|
|
3656
|
+
"type": "number"
|
|
3657
|
+
},
|
|
3658
|
+
"isMust": {
|
|
3659
|
+
"type": "number"
|
|
3660
|
+
},
|
|
3661
|
+
"type": {
|
|
3662
|
+
"type": "number"
|
|
3663
|
+
},
|
|
3664
|
+
"pid": {
|
|
3665
|
+
"type": "number"
|
|
3666
|
+
},
|
|
3667
|
+
"paths": {
|
|
3668
|
+
"type": "array",
|
|
3669
|
+
"items": {
|
|
3670
|
+
"type": "number"
|
|
3671
|
+
}
|
|
3672
|
+
},
|
|
3673
|
+
"description": {
|
|
3674
|
+
"type": "string"
|
|
3675
|
+
},
|
|
3676
|
+
"status": {
|
|
3677
|
+
"type": "number"
|
|
3678
|
+
},
|
|
3679
|
+
"createdAt": {
|
|
3680
|
+
"type": "string"
|
|
3681
|
+
},
|
|
3682
|
+
"updatedAt": {
|
|
3683
|
+
"type": "string"
|
|
3684
|
+
},
|
|
3685
|
+
"deletedAt": {
|
|
3686
|
+
"type": "string"
|
|
3687
|
+
}
|
|
1998
3688
|
}
|
|
1999
3689
|
}
|
|
2000
3690
|
}
|
|
2001
3691
|
```
|
|
2002
3692
|
|
|
2003
|
-
<h3 id="
|
|
2004
|
-
|
|
2005
|
-
|Name|In|Type|Required|Description|
|
|
2006
|
-
|---|---|---|---|---|
|
|
2007
|
-
|body|body|object|true|none|
|
|
2008
|
-
|» tenantId|body|string|true|none|
|
|
2009
|
-
|
|
2010
|
-
<h3 id="post__api_v1_account_setcurrenttenantid-responses">Responses</h3>
|
|
3693
|
+
<h3 id="get__api_v1_account_tenant_getpermissionlist-responses">Responses</h3>
|
|
2011
3694
|
|
|
2012
3695
|
|Status|Meaning|Description|Schema|
|
|
2013
3696
|
|---|---|---|---|
|
|
2014
|
-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|
|
|
3697
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|Inline|
|
|
3698
|
+
|
|
3699
|
+
<h3 id="get__api_v1_account_tenant_getpermissionlist-responseschema">Response Schema</h3>
|
|
3700
|
+
|
|
3701
|
+
Status Code **200**
|
|
3702
|
+
|
|
3703
|
+
|Name|Type|Required|Restrictions|Description|
|
|
3704
|
+
|---|---|---|---|---|
|
|
3705
|
+
|» id|number|false|none|none|
|
|
3706
|
+
|» code|string|false|none|none|
|
|
3707
|
+
|» name|string|false|none|none|
|
|
3708
|
+
|» isModule|number|false|none|none|
|
|
3709
|
+
|» isMust|number|false|none|none|
|
|
3710
|
+
|» type|number|false|none|none|
|
|
3711
|
+
|» pid|number|false|none|none|
|
|
3712
|
+
|» paths|[number]|false|none|none|
|
|
3713
|
+
|» description|string|false|none|none|
|
|
3714
|
+
|» status|number|false|none|none|
|
|
3715
|
+
|» createdAt|string|false|none|none|
|
|
3716
|
+
|» updatedAt|string|false|none|none|
|
|
3717
|
+
|» deletedAt|string|false|none|none|
|
|
2015
3718
|
|
|
2016
3719
|
<aside class="success">
|
|
2017
3720
|
This operation does not require authentication
|