@kne/fastify-account 1.0.0-alpha.0
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 +1436 -0
- package/index.js +54 -0
- package/libs/controllers/account.js +189 -0
- package/libs/controllers/admin.js +153 -0
- package/libs/controllers/adminPermission.js +230 -0
- package/libs/controllers/adminRole.js +145 -0
- package/libs/controllers/adminTenant.js +461 -0
- package/libs/controllers/tenant.js +22 -0
- package/libs/controllers/user.js +12 -0
- package/libs/models/admin-role.js +19 -0
- package/libs/models/application.js +36 -0
- package/libs/models/login-log.js +15 -0
- package/libs/models/permission.js +53 -0
- package/libs/models/tenant-application.js +28 -0
- package/libs/models/tenant-org.js +30 -0
- package/libs/models/tenant-permission.js +28 -0
- package/libs/models/tenant-role-application.js +32 -0
- package/libs/models/tenant-role-permission.js +32 -0
- package/libs/models/tenant-role.js +27 -0
- package/libs/models/tenant-share-group-permission.js +22 -0
- package/libs/models/tenant-share-group.js +22 -0
- package/libs/models/tenant-source-user-share-group.js +22 -0
- package/libs/models/tenant-token.js +32 -0
- package/libs/models/tenant-user-org.js +22 -0
- package/libs/models/tenant-user-role.js +22 -0
- package/libs/models/tenant-user-share-group.js +22 -0
- package/libs/models/tenant-user.js +56 -0
- package/libs/models/tenant.js +38 -0
- package/libs/models/user-account.js +26 -0
- package/libs/models/user.js +50 -0
- package/libs/models/verification-code.js +26 -0
- package/libs/services/account.js +200 -0
- package/libs/services/admin.js +183 -0
- package/libs/services/permission.js +465 -0
- package/libs/services/tenant.js +576 -0
- package/libs/services/user.js +108 -0
- package/package.json +61 -0
package/README.md
ADDED
|
@@ -0,0 +1,1436 @@
|
|
|
1
|
+
|
|
2
|
+
# fastify-account
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### 描述
|
|
6
|
+
|
|
7
|
+
fastify的用户管理账号等实现
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### 安装
|
|
11
|
+
|
|
12
|
+
```shell
|
|
13
|
+
npm i --save @kne/fastify-account
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
### 示例
|
|
17
|
+
|
|
18
|
+
#### 示例代码
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### API
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
title: "@kne/fastify-account v1.0.0"
|
|
26
|
+
language_tabs:
|
|
27
|
+
- shell: Shell
|
|
28
|
+
- http: HTTP
|
|
29
|
+
- javascript: JavaScript
|
|
30
|
+
- ruby: Ruby
|
|
31
|
+
- python: Python
|
|
32
|
+
- php: PHP
|
|
33
|
+
- java: Java
|
|
34
|
+
- go: Go
|
|
35
|
+
toc_footers: []
|
|
36
|
+
includes: []
|
|
37
|
+
search: true
|
|
38
|
+
highlight_theme: darkula
|
|
39
|
+
headingLevel: 2
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
<!-- Generator: Widdershins v4.0.1 -->
|
|
44
|
+
|
|
45
|
+
<h1 id="-kne-fastify-account">@kne/fastify-account v1.0.0</h1>
|
|
46
|
+
|
|
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
|
+
|
|
49
|
+
fastify的用户管理账号等实现
|
|
50
|
+
|
|
51
|
+
<h1 id="-kne-fastify-account-default">Default</h1>
|
|
52
|
+
|
|
53
|
+
## post__api_v1_account_sendEmailCode
|
|
54
|
+
|
|
55
|
+
`POST /api/v1/account/sendEmailCode`
|
|
56
|
+
|
|
57
|
+
> Body parameter
|
|
58
|
+
|
|
59
|
+
```json
|
|
60
|
+
{
|
|
61
|
+
"type": "object",
|
|
62
|
+
"required": [
|
|
63
|
+
"email"
|
|
64
|
+
],
|
|
65
|
+
"properties": {
|
|
66
|
+
"email": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"description": "邮箱"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
<h3 id="post__api_v1_account_sendemailcode-parameters">Parameters</h3>
|
|
75
|
+
|
|
76
|
+
|Name|In|Type|Required|Description|
|
|
77
|
+
|---|---|---|---|---|
|
|
78
|
+
|body|body|object|true|none|
|
|
79
|
+
|» email|body|string|true|邮箱|
|
|
80
|
+
|
|
81
|
+
> Example responses
|
|
82
|
+
|
|
83
|
+
> 200 Response
|
|
84
|
+
|
|
85
|
+
```json
|
|
86
|
+
{
|
|
87
|
+
"type": "object",
|
|
88
|
+
"properties": {
|
|
89
|
+
"code": {
|
|
90
|
+
"type": "number"
|
|
91
|
+
},
|
|
92
|
+
"data": {
|
|
93
|
+
"type": "object",
|
|
94
|
+
"properties": {
|
|
95
|
+
"code": {
|
|
96
|
+
"type": "string",
|
|
97
|
+
"description": "验证码"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"msg": {
|
|
102
|
+
"type": "string"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
<h3 id="post__api_v1_account_sendemailcode-responses">Responses</h3>
|
|
109
|
+
|
|
110
|
+
|Status|Meaning|Description|Schema|
|
|
111
|
+
|---|---|---|---|
|
|
112
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|Inline|
|
|
113
|
+
|
|
114
|
+
<h3 id="post__api_v1_account_sendemailcode-responseschema">Response Schema</h3>
|
|
115
|
+
|
|
116
|
+
Status Code **200**
|
|
117
|
+
|
|
118
|
+
|Name|Type|Required|Restrictions|Description|
|
|
119
|
+
|---|---|---|---|---|
|
|
120
|
+
|» code|number|false|none|none|
|
|
121
|
+
|» data|object|false|none|none|
|
|
122
|
+
|»» code|string|false|none|验证码|
|
|
123
|
+
|» msg|string|false|none|none|
|
|
124
|
+
|
|
125
|
+
<aside class="success">
|
|
126
|
+
This operation does not require authentication
|
|
127
|
+
</aside>
|
|
128
|
+
|
|
129
|
+
## post__api_v1_account_sendSMSCode
|
|
130
|
+
|
|
131
|
+
`POST /api/v1/account/sendSMSCode`
|
|
132
|
+
|
|
133
|
+
> Body parameter
|
|
134
|
+
|
|
135
|
+
```json
|
|
136
|
+
{
|
|
137
|
+
"type": "object",
|
|
138
|
+
"required": [
|
|
139
|
+
"phone"
|
|
140
|
+
],
|
|
141
|
+
"properties": {
|
|
142
|
+
"phone": {
|
|
143
|
+
"type": "string",
|
|
144
|
+
"description": "电话"
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
<h3 id="post__api_v1_account_sendsmscode-parameters">Parameters</h3>
|
|
151
|
+
|
|
152
|
+
|Name|In|Type|Required|Description|
|
|
153
|
+
|---|---|---|---|---|
|
|
154
|
+
|body|body|object|true|none|
|
|
155
|
+
|» phone|body|string|true|电话|
|
|
156
|
+
|
|
157
|
+
<h3 id="post__api_v1_account_sendsmscode-responses">Responses</h3>
|
|
158
|
+
|
|
159
|
+
|Status|Meaning|Description|Schema|
|
|
160
|
+
|---|---|---|---|
|
|
161
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
162
|
+
|
|
163
|
+
<aside class="success">
|
|
164
|
+
This operation does not require authentication
|
|
165
|
+
</aside>
|
|
166
|
+
|
|
167
|
+
## post__api_v1_account_validateCode
|
|
168
|
+
|
|
169
|
+
`POST /api/v1/account/validateCode`
|
|
170
|
+
|
|
171
|
+
> Body parameter
|
|
172
|
+
|
|
173
|
+
```json
|
|
174
|
+
{
|
|
175
|
+
"type": "object",
|
|
176
|
+
"required": [
|
|
177
|
+
"name",
|
|
178
|
+
"type",
|
|
179
|
+
"code"
|
|
180
|
+
],
|
|
181
|
+
"properties": {
|
|
182
|
+
"name": {
|
|
183
|
+
"type": "string",
|
|
184
|
+
"description": "被验证的账号,手机或邮箱"
|
|
185
|
+
},
|
|
186
|
+
"type": {
|
|
187
|
+
"type": "number",
|
|
188
|
+
"description": "0:手机注册,1:邮箱注册,2:手机登录,3:邮箱登录,4:验证租户管理员"
|
|
189
|
+
},
|
|
190
|
+
"code": {
|
|
191
|
+
"type": "string",
|
|
192
|
+
"description": "接受到的验证码"
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
<h3 id="post__api_v1_account_validatecode-parameters">Parameters</h3>
|
|
199
|
+
|
|
200
|
+
|Name|In|Type|Required|Description|
|
|
201
|
+
|---|---|---|---|---|
|
|
202
|
+
|body|body|object|true|none|
|
|
203
|
+
|» name|body|string|true|被验证的账号,手机或邮箱|
|
|
204
|
+
|» type|body|number|true|0:手机注册,1:邮箱注册,2:手机登录,3:邮箱登录,4:验证租户管理员|
|
|
205
|
+
|» code|body|string|true|接受到的验证码|
|
|
206
|
+
|
|
207
|
+
<h3 id="post__api_v1_account_validatecode-responses">Responses</h3>
|
|
208
|
+
|
|
209
|
+
|Status|Meaning|Description|Schema|
|
|
210
|
+
|---|---|---|---|
|
|
211
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
212
|
+
|
|
213
|
+
<aside class="success">
|
|
214
|
+
This operation does not require authentication
|
|
215
|
+
</aside>
|
|
216
|
+
|
|
217
|
+
## post__api_v1_account_accountIsExists
|
|
218
|
+
|
|
219
|
+
`POST /api/v1/account/accountIsExists`
|
|
220
|
+
|
|
221
|
+
> Body parameter
|
|
222
|
+
|
|
223
|
+
```json
|
|
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
|
+
```
|
|
251
|
+
|
|
252
|
+
<h3 id="post__api_v1_account_accountisexists-parameters">Parameters</h3>
|
|
253
|
+
|
|
254
|
+
|Name|In|Type|Required|Description|
|
|
255
|
+
|---|---|---|---|---|
|
|
256
|
+
|body|body|any|false|none|
|
|
257
|
+
|
|
258
|
+
<h3 id="post__api_v1_account_accountisexists-responses">Responses</h3>
|
|
259
|
+
|
|
260
|
+
|Status|Meaning|Description|Schema|
|
|
261
|
+
|---|---|---|---|
|
|
262
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
263
|
+
|
|
264
|
+
<aside class="success">
|
|
265
|
+
This operation does not require authentication
|
|
266
|
+
</aside>
|
|
267
|
+
|
|
268
|
+
## post__api_v1_account_register
|
|
269
|
+
|
|
270
|
+
`POST /api/v1/account/register`
|
|
271
|
+
|
|
272
|
+
> Body parameter
|
|
273
|
+
|
|
274
|
+
```json
|
|
275
|
+
{
|
|
276
|
+
"oneOf": [
|
|
277
|
+
{
|
|
278
|
+
"type": "object",
|
|
279
|
+
"required": [
|
|
280
|
+
"phone",
|
|
281
|
+
"password",
|
|
282
|
+
"code"
|
|
283
|
+
],
|
|
284
|
+
"properties": {
|
|
285
|
+
"avatar": {
|
|
286
|
+
"type": "string"
|
|
287
|
+
},
|
|
288
|
+
"phone": {
|
|
289
|
+
"type": "string"
|
|
290
|
+
},
|
|
291
|
+
"code": {
|
|
292
|
+
"type": "string"
|
|
293
|
+
},
|
|
294
|
+
"password": {
|
|
295
|
+
"type": "string"
|
|
296
|
+
},
|
|
297
|
+
"invitationCode": {
|
|
298
|
+
"type": "string"
|
|
299
|
+
},
|
|
300
|
+
"nickname": {
|
|
301
|
+
"type": "string"
|
|
302
|
+
},
|
|
303
|
+
"gender": {
|
|
304
|
+
"type": "string"
|
|
305
|
+
},
|
|
306
|
+
"birthday": {
|
|
307
|
+
"type": "string",
|
|
308
|
+
"format": "date"
|
|
309
|
+
},
|
|
310
|
+
"description": {
|
|
311
|
+
"type": "string"
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"type": "object",
|
|
317
|
+
"required": [
|
|
318
|
+
"email",
|
|
319
|
+
"password",
|
|
320
|
+
"code"
|
|
321
|
+
],
|
|
322
|
+
"properties": {
|
|
323
|
+
"avatar": {
|
|
324
|
+
"type": "string"
|
|
325
|
+
},
|
|
326
|
+
"email": {
|
|
327
|
+
"type": "string"
|
|
328
|
+
},
|
|
329
|
+
"code": {
|
|
330
|
+
"type": "string"
|
|
331
|
+
},
|
|
332
|
+
"password": {
|
|
333
|
+
"type": "string"
|
|
334
|
+
},
|
|
335
|
+
"invitationCode": {
|
|
336
|
+
"type": "string"
|
|
337
|
+
},
|
|
338
|
+
"nickname": {
|
|
339
|
+
"type": "string"
|
|
340
|
+
},
|
|
341
|
+
"gender": {
|
|
342
|
+
"type": "string"
|
|
343
|
+
},
|
|
344
|
+
"birthday": {
|
|
345
|
+
"type": "string",
|
|
346
|
+
"format": "date"
|
|
347
|
+
},
|
|
348
|
+
"description": {
|
|
349
|
+
"type": "string"
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
]
|
|
354
|
+
}
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
<h3 id="post__api_v1_account_register-parameters">Parameters</h3>
|
|
358
|
+
|
|
359
|
+
|Name|In|Type|Required|Description|
|
|
360
|
+
|---|---|---|---|---|
|
|
361
|
+
|body|body|any|false|none|
|
|
362
|
+
|
|
363
|
+
<h3 id="post__api_v1_account_register-responses">Responses</h3>
|
|
364
|
+
|
|
365
|
+
|Status|Meaning|Description|Schema|
|
|
366
|
+
|---|---|---|---|
|
|
367
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
368
|
+
|
|
369
|
+
<aside class="success">
|
|
370
|
+
This operation does not require authentication
|
|
371
|
+
</aside>
|
|
372
|
+
|
|
373
|
+
## post__api_v1_account_login
|
|
374
|
+
|
|
375
|
+
`POST /api/v1/account/login`
|
|
376
|
+
|
|
377
|
+
> Body parameter
|
|
378
|
+
|
|
379
|
+
```json
|
|
380
|
+
{
|
|
381
|
+
"type": "object",
|
|
382
|
+
"required": [
|
|
383
|
+
"username",
|
|
384
|
+
"password"
|
|
385
|
+
],
|
|
386
|
+
"properties": {
|
|
387
|
+
"username": {
|
|
388
|
+
"type": "string"
|
|
389
|
+
},
|
|
390
|
+
"password": {
|
|
391
|
+
"type": "string"
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
```
|
|
396
|
+
|
|
397
|
+
<h3 id="post__api_v1_account_login-parameters">Parameters</h3>
|
|
398
|
+
|
|
399
|
+
|Name|In|Type|Required|Description|
|
|
400
|
+
|---|---|---|---|---|
|
|
401
|
+
|body|body|object|true|none|
|
|
402
|
+
|» username|body|string|true|none|
|
|
403
|
+
|» password|body|string|true|none|
|
|
404
|
+
|
|
405
|
+
<h3 id="post__api_v1_account_login-responses">Responses</h3>
|
|
406
|
+
|
|
407
|
+
|Status|Meaning|Description|Schema|
|
|
408
|
+
|---|---|---|---|
|
|
409
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
410
|
+
|
|
411
|
+
<aside class="success">
|
|
412
|
+
This operation does not require authentication
|
|
413
|
+
</aside>
|
|
414
|
+
|
|
415
|
+
## post__api_v1_account_initSuperAdmin
|
|
416
|
+
|
|
417
|
+
`POST /api/v1/account/initSuperAdmin`
|
|
418
|
+
|
|
419
|
+
<h3 id="post__api_v1_account_initsuperadmin-responses">Responses</h3>
|
|
420
|
+
|
|
421
|
+
|Status|Meaning|Description|Schema|
|
|
422
|
+
|---|---|---|---|
|
|
423
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
424
|
+
|
|
425
|
+
<aside class="success">
|
|
426
|
+
This operation does not require authentication
|
|
427
|
+
</aside>
|
|
428
|
+
|
|
429
|
+
## get__api_v1_account_admin_getSuperAdminInfo
|
|
430
|
+
|
|
431
|
+
`GET /api/v1/account/admin/getSuperAdminInfo`
|
|
432
|
+
|
|
433
|
+
<h3 id="get__api_v1_account_admin_getsuperadmininfo-responses">Responses</h3>
|
|
434
|
+
|
|
435
|
+
|Status|Meaning|Description|Schema|
|
|
436
|
+
|---|---|---|---|
|
|
437
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
438
|
+
|
|
439
|
+
<aside class="success">
|
|
440
|
+
This operation does not require authentication
|
|
441
|
+
</aside>
|
|
442
|
+
|
|
443
|
+
## post__api_v1_account_admin_addUser
|
|
444
|
+
|
|
445
|
+
`POST /api/v1/account/admin/addUser`
|
|
446
|
+
|
|
447
|
+
> Body parameter
|
|
448
|
+
|
|
449
|
+
```json
|
|
450
|
+
{
|
|
451
|
+
"type": "object",
|
|
452
|
+
"properties": {}
|
|
453
|
+
}
|
|
454
|
+
```
|
|
455
|
+
|
|
456
|
+
<h3 id="post__api_v1_account_admin_adduser-parameters">Parameters</h3>
|
|
457
|
+
|
|
458
|
+
|Name|In|Type|Required|Description|
|
|
459
|
+
|---|---|---|---|---|
|
|
460
|
+
|body|body|object|false|none|
|
|
461
|
+
|
|
462
|
+
<h3 id="post__api_v1_account_admin_adduser-responses">Responses</h3>
|
|
463
|
+
|
|
464
|
+
|Status|Meaning|Description|Schema|
|
|
465
|
+
|---|---|---|---|
|
|
466
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
467
|
+
|
|
468
|
+
<aside class="success">
|
|
469
|
+
This operation does not require authentication
|
|
470
|
+
</aside>
|
|
471
|
+
|
|
472
|
+
## get__api_v1_account_admin_getAllUserList
|
|
473
|
+
|
|
474
|
+
`GET /api/v1/account/admin/getAllUserList`
|
|
475
|
+
|
|
476
|
+
<h3 id="get__api_v1_account_admin_getalluserlist-responses">Responses</h3>
|
|
477
|
+
|
|
478
|
+
|Status|Meaning|Description|Schema|
|
|
479
|
+
|---|---|---|---|
|
|
480
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
481
|
+
|
|
482
|
+
<aside class="success">
|
|
483
|
+
This operation does not require authentication
|
|
484
|
+
</aside>
|
|
485
|
+
|
|
486
|
+
## post__api_v1_account_admin_resetUserPassword
|
|
487
|
+
|
|
488
|
+
`POST /api/v1/account/admin/resetUserPassword`
|
|
489
|
+
|
|
490
|
+
> Body parameter
|
|
491
|
+
|
|
492
|
+
```json
|
|
493
|
+
{
|
|
494
|
+
"type": "object",
|
|
495
|
+
"required": [
|
|
496
|
+
"userId",
|
|
497
|
+
"password"
|
|
498
|
+
],
|
|
499
|
+
"properties": {
|
|
500
|
+
"password": {
|
|
501
|
+
"type": "string"
|
|
502
|
+
},
|
|
503
|
+
"userId": {
|
|
504
|
+
"type": "string"
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
```
|
|
509
|
+
|
|
510
|
+
<h3 id="post__api_v1_account_admin_resetuserpassword-parameters">Parameters</h3>
|
|
511
|
+
|
|
512
|
+
|Name|In|Type|Required|Description|
|
|
513
|
+
|---|---|---|---|---|
|
|
514
|
+
|body|body|object|true|none|
|
|
515
|
+
|» password|body|string|true|none|
|
|
516
|
+
|» userId|body|string|true|none|
|
|
517
|
+
|
|
518
|
+
<h3 id="post__api_v1_account_admin_resetuserpassword-responses">Responses</h3>
|
|
519
|
+
|
|
520
|
+
|Status|Meaning|Description|Schema|
|
|
521
|
+
|---|---|---|---|
|
|
522
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
523
|
+
|
|
524
|
+
<aside class="success">
|
|
525
|
+
This operation does not require authentication
|
|
526
|
+
</aside>
|
|
527
|
+
|
|
528
|
+
## post__api_v1_account_admin_saveUser
|
|
529
|
+
|
|
530
|
+
`POST /api/v1/account/admin/saveUser`
|
|
531
|
+
|
|
532
|
+
> Body parameter
|
|
533
|
+
|
|
534
|
+
```json
|
|
535
|
+
{
|
|
536
|
+
"type": "object",
|
|
537
|
+
"required": [
|
|
538
|
+
"id"
|
|
539
|
+
],
|
|
540
|
+
"properties": {
|
|
541
|
+
"id": {
|
|
542
|
+
"type": "string"
|
|
543
|
+
},
|
|
544
|
+
"avatar": {
|
|
545
|
+
"type": "string"
|
|
546
|
+
},
|
|
547
|
+
"nickname": {
|
|
548
|
+
"type": "string"
|
|
549
|
+
},
|
|
550
|
+
"phone": {
|
|
551
|
+
"type": "string"
|
|
552
|
+
},
|
|
553
|
+
"email": {
|
|
554
|
+
"type": "string"
|
|
555
|
+
},
|
|
556
|
+
"description": {
|
|
557
|
+
"type": "string"
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
```
|
|
562
|
+
|
|
563
|
+
<h3 id="post__api_v1_account_admin_saveuser-parameters">Parameters</h3>
|
|
564
|
+
|
|
565
|
+
|Name|In|Type|Required|Description|
|
|
566
|
+
|---|---|---|---|---|
|
|
567
|
+
|body|body|object|true|none|
|
|
568
|
+
|» id|body|string|true|none|
|
|
569
|
+
|» avatar|body|string|false|none|
|
|
570
|
+
|» nickname|body|string|false|none|
|
|
571
|
+
|» phone|body|string|false|none|
|
|
572
|
+
|» email|body|string|false|none|
|
|
573
|
+
|» description|body|string|false|none|
|
|
574
|
+
|
|
575
|
+
<h3 id="post__api_v1_account_admin_saveuser-responses">Responses</h3>
|
|
576
|
+
|
|
577
|
+
|Status|Meaning|Description|Schema|
|
|
578
|
+
|---|---|---|---|
|
|
579
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
580
|
+
|
|
581
|
+
<aside class="success">
|
|
582
|
+
This operation does not require authentication
|
|
583
|
+
</aside>
|
|
584
|
+
|
|
585
|
+
## post__api_v1_account_admin_closeUser
|
|
586
|
+
|
|
587
|
+
`POST /api/v1/account/admin/closeUser`
|
|
588
|
+
|
|
589
|
+
> Body parameter
|
|
590
|
+
|
|
591
|
+
```json
|
|
592
|
+
{
|
|
593
|
+
"type": "object",
|
|
594
|
+
"required": [
|
|
595
|
+
"id"
|
|
596
|
+
],
|
|
597
|
+
"properties": {
|
|
598
|
+
"id": {
|
|
599
|
+
"type": "string"
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
```
|
|
604
|
+
|
|
605
|
+
<h3 id="post__api_v1_account_admin_closeuser-parameters">Parameters</h3>
|
|
606
|
+
|
|
607
|
+
|Name|In|Type|Required|Description|
|
|
608
|
+
|---|---|---|---|---|
|
|
609
|
+
|body|body|object|true|none|
|
|
610
|
+
|» id|body|string|true|none|
|
|
611
|
+
|
|
612
|
+
<h3 id="post__api_v1_account_admin_closeuser-responses">Responses</h3>
|
|
613
|
+
|
|
614
|
+
|Status|Meaning|Description|Schema|
|
|
615
|
+
|---|---|---|---|
|
|
616
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
617
|
+
|
|
618
|
+
<aside class="success">
|
|
619
|
+
This operation does not require authentication
|
|
620
|
+
</aside>
|
|
621
|
+
|
|
622
|
+
## post__api_v1_account_admin_addApplication
|
|
623
|
+
|
|
624
|
+
`POST /api/v1/account/admin/addApplication`
|
|
625
|
+
|
|
626
|
+
> Body parameter
|
|
627
|
+
|
|
628
|
+
```json
|
|
629
|
+
{
|
|
630
|
+
"type": "object",
|
|
631
|
+
"required": [
|
|
632
|
+
"name",
|
|
633
|
+
"code"
|
|
634
|
+
],
|
|
635
|
+
"properties": {
|
|
636
|
+
"name": {
|
|
637
|
+
"type": "string"
|
|
638
|
+
},
|
|
639
|
+
"url": {
|
|
640
|
+
"type": "string"
|
|
641
|
+
},
|
|
642
|
+
"avatar": {
|
|
643
|
+
"type": "string"
|
|
644
|
+
},
|
|
645
|
+
"code": {
|
|
646
|
+
"type": "string"
|
|
647
|
+
},
|
|
648
|
+
"description": {
|
|
649
|
+
"type": "string"
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
```
|
|
654
|
+
|
|
655
|
+
<h3 id="post__api_v1_account_admin_addapplication-parameters">Parameters</h3>
|
|
656
|
+
|
|
657
|
+
|Name|In|Type|Required|Description|
|
|
658
|
+
|---|---|---|---|---|
|
|
659
|
+
|body|body|object|true|none|
|
|
660
|
+
|» name|body|string|true|none|
|
|
661
|
+
|» url|body|string|false|none|
|
|
662
|
+
|» avatar|body|string|false|none|
|
|
663
|
+
|» code|body|string|true|none|
|
|
664
|
+
|» description|body|string|false|none|
|
|
665
|
+
|
|
666
|
+
<h3 id="post__api_v1_account_admin_addapplication-responses">Responses</h3>
|
|
667
|
+
|
|
668
|
+
|Status|Meaning|Description|Schema|
|
|
669
|
+
|---|---|---|---|
|
|
670
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
671
|
+
|
|
672
|
+
<aside class="success">
|
|
673
|
+
This operation does not require authentication
|
|
674
|
+
</aside>
|
|
675
|
+
|
|
676
|
+
## post__api_v1_account_admin_saveApplication
|
|
677
|
+
|
|
678
|
+
`POST /api/v1/account/admin/saveApplication`
|
|
679
|
+
|
|
680
|
+
> Body parameter
|
|
681
|
+
|
|
682
|
+
```json
|
|
683
|
+
{
|
|
684
|
+
"type": "object",
|
|
685
|
+
"required": [
|
|
686
|
+
"id",
|
|
687
|
+
"name",
|
|
688
|
+
"code"
|
|
689
|
+
],
|
|
690
|
+
"properties": {
|
|
691
|
+
"id": {
|
|
692
|
+
"type": "string"
|
|
693
|
+
},
|
|
694
|
+
"url": {
|
|
695
|
+
"type": "string"
|
|
696
|
+
},
|
|
697
|
+
"name": {
|
|
698
|
+
"type": "string"
|
|
699
|
+
},
|
|
700
|
+
"avatar": {
|
|
701
|
+
"type": "string"
|
|
702
|
+
},
|
|
703
|
+
"code": {
|
|
704
|
+
"type": "string"
|
|
705
|
+
},
|
|
706
|
+
"description": {
|
|
707
|
+
"type": "string"
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
```
|
|
712
|
+
|
|
713
|
+
<h3 id="post__api_v1_account_admin_saveapplication-parameters">Parameters</h3>
|
|
714
|
+
|
|
715
|
+
|Name|In|Type|Required|Description|
|
|
716
|
+
|---|---|---|---|---|
|
|
717
|
+
|body|body|object|true|none|
|
|
718
|
+
|» id|body|string|true|none|
|
|
719
|
+
|» url|body|string|false|none|
|
|
720
|
+
|» name|body|string|true|none|
|
|
721
|
+
|» avatar|body|string|false|none|
|
|
722
|
+
|» code|body|string|true|none|
|
|
723
|
+
|» description|body|string|false|none|
|
|
724
|
+
|
|
725
|
+
<h3 id="post__api_v1_account_admin_saveapplication-responses">Responses</h3>
|
|
726
|
+
|
|
727
|
+
|Status|Meaning|Description|Schema|
|
|
728
|
+
|---|---|---|---|
|
|
729
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
730
|
+
|
|
731
|
+
<aside class="success">
|
|
732
|
+
This operation does not require authentication
|
|
733
|
+
</aside>
|
|
734
|
+
|
|
735
|
+
## post__api_v1_account_admin_deleteApplication
|
|
736
|
+
|
|
737
|
+
`POST /api/v1/account/admin/deleteApplication`
|
|
738
|
+
|
|
739
|
+
> Body parameter
|
|
740
|
+
|
|
741
|
+
```json
|
|
742
|
+
{
|
|
743
|
+
"type": "object",
|
|
744
|
+
"required": [
|
|
745
|
+
"id"
|
|
746
|
+
],
|
|
747
|
+
"properties": {
|
|
748
|
+
"id": {
|
|
749
|
+
"type": "string"
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
```
|
|
754
|
+
|
|
755
|
+
<h3 id="post__api_v1_account_admin_deleteapplication-parameters">Parameters</h3>
|
|
756
|
+
|
|
757
|
+
|Name|In|Type|Required|Description|
|
|
758
|
+
|---|---|---|---|---|
|
|
759
|
+
|body|body|object|true|none|
|
|
760
|
+
|» id|body|string|true|none|
|
|
761
|
+
|
|
762
|
+
<h3 id="post__api_v1_account_admin_deleteapplication-responses">Responses</h3>
|
|
763
|
+
|
|
764
|
+
|Status|Meaning|Description|Schema|
|
|
765
|
+
|---|---|---|---|
|
|
766
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
767
|
+
|
|
768
|
+
<aside class="success">
|
|
769
|
+
This operation does not require authentication
|
|
770
|
+
</aside>
|
|
771
|
+
|
|
772
|
+
## get__api_v1_account_admin_getApplicationList
|
|
773
|
+
|
|
774
|
+
`GET /api/v1/account/admin/getApplicationList`
|
|
775
|
+
|
|
776
|
+
<h3 id="get__api_v1_account_admin_getapplicationlist-parameters">Parameters</h3>
|
|
777
|
+
|
|
778
|
+
|Name|In|Type|Required|Description|
|
|
779
|
+
|---|---|---|---|---|
|
|
780
|
+
|tenantId|query|string|false|none|
|
|
781
|
+
|
|
782
|
+
<h3 id="get__api_v1_account_admin_getapplicationlist-responses">Responses</h3>
|
|
783
|
+
|
|
784
|
+
|Status|Meaning|Description|Schema|
|
|
785
|
+
|---|---|---|---|
|
|
786
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
787
|
+
|
|
788
|
+
<aside class="success">
|
|
789
|
+
This operation does not require authentication
|
|
790
|
+
</aside>
|
|
791
|
+
|
|
792
|
+
## post__api_v1_account_admin_addPermission
|
|
793
|
+
|
|
794
|
+
`POST /api/v1/account/admin/addPermission`
|
|
795
|
+
|
|
796
|
+
> Body parameter
|
|
797
|
+
|
|
798
|
+
```json
|
|
799
|
+
{
|
|
800
|
+
"type": "object",
|
|
801
|
+
"required": [
|
|
802
|
+
"applicationId",
|
|
803
|
+
"name",
|
|
804
|
+
"code"
|
|
805
|
+
],
|
|
806
|
+
"properties": {
|
|
807
|
+
"applicationId": {
|
|
808
|
+
"type": "string"
|
|
809
|
+
},
|
|
810
|
+
"name": {
|
|
811
|
+
"type": "string"
|
|
812
|
+
},
|
|
813
|
+
"code": {
|
|
814
|
+
"type": "string"
|
|
815
|
+
},
|
|
816
|
+
"type": {
|
|
817
|
+
"type": "number"
|
|
818
|
+
},
|
|
819
|
+
"isModule": {
|
|
820
|
+
"type": "number"
|
|
821
|
+
},
|
|
822
|
+
"isMust": {
|
|
823
|
+
"type": "number"
|
|
824
|
+
},
|
|
825
|
+
"pid": {
|
|
826
|
+
"type": "number"
|
|
827
|
+
},
|
|
828
|
+
"description": {
|
|
829
|
+
"type": "string"
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
```
|
|
834
|
+
|
|
835
|
+
<h3 id="post__api_v1_account_admin_addpermission-parameters">Parameters</h3>
|
|
836
|
+
|
|
837
|
+
|Name|In|Type|Required|Description|
|
|
838
|
+
|---|---|---|---|---|
|
|
839
|
+
|body|body|object|true|none|
|
|
840
|
+
|» applicationId|body|string|true|none|
|
|
841
|
+
|» name|body|string|true|none|
|
|
842
|
+
|» code|body|string|true|none|
|
|
843
|
+
|» type|body|number|false|none|
|
|
844
|
+
|» isModule|body|number|false|none|
|
|
845
|
+
|» isMust|body|number|false|none|
|
|
846
|
+
|» pid|body|number|false|none|
|
|
847
|
+
|» description|body|string|false|none|
|
|
848
|
+
|
|
849
|
+
<h3 id="post__api_v1_account_admin_addpermission-responses">Responses</h3>
|
|
850
|
+
|
|
851
|
+
|Status|Meaning|Description|Schema|
|
|
852
|
+
|---|---|---|---|
|
|
853
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
854
|
+
|
|
855
|
+
<aside class="success">
|
|
856
|
+
This operation does not require authentication
|
|
857
|
+
</aside>
|
|
858
|
+
|
|
859
|
+
## get__api_v1_account_admin_getPermissionList
|
|
860
|
+
|
|
861
|
+
`GET /api/v1/account/admin/getPermissionList`
|
|
862
|
+
|
|
863
|
+
<h3 id="get__api_v1_account_admin_getpermissionlist-parameters">Parameters</h3>
|
|
864
|
+
|
|
865
|
+
|Name|In|Type|Required|Description|
|
|
866
|
+
|---|---|---|---|---|
|
|
867
|
+
|applicationId|query|string|true|none|
|
|
868
|
+
|tenantId|query|string|false|none|
|
|
869
|
+
|
|
870
|
+
<h3 id="get__api_v1_account_admin_getpermissionlist-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_deletePermission
|
|
881
|
+
|
|
882
|
+
`POST /api/v1/account/admin/deletePermission`
|
|
883
|
+
|
|
884
|
+
> Body parameter
|
|
885
|
+
|
|
886
|
+
```json
|
|
887
|
+
{
|
|
888
|
+
"type": "object",
|
|
889
|
+
"required": [
|
|
890
|
+
"id"
|
|
891
|
+
],
|
|
892
|
+
"properties": {
|
|
893
|
+
"id": {
|
|
894
|
+
"type": "string"
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
```
|
|
899
|
+
|
|
900
|
+
<h3 id="post__api_v1_account_admin_deletepermission-parameters">Parameters</h3>
|
|
901
|
+
|
|
902
|
+
|Name|In|Type|Required|Description|
|
|
903
|
+
|---|---|---|---|---|
|
|
904
|
+
|body|body|object|true|none|
|
|
905
|
+
|» id|body|string|true|none|
|
|
906
|
+
|
|
907
|
+
<h3 id="post__api_v1_account_admin_deletepermission-responses">Responses</h3>
|
|
908
|
+
|
|
909
|
+
|Status|Meaning|Description|Schema|
|
|
910
|
+
|---|---|---|---|
|
|
911
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
912
|
+
|
|
913
|
+
<aside class="success">
|
|
914
|
+
This operation does not require authentication
|
|
915
|
+
</aside>
|
|
916
|
+
|
|
917
|
+
## post__api_v1_account_admin_savePermission
|
|
918
|
+
|
|
919
|
+
`POST /api/v1/account/admin/savePermission`
|
|
920
|
+
|
|
921
|
+
> Body parameter
|
|
922
|
+
|
|
923
|
+
```json
|
|
924
|
+
{
|
|
925
|
+
"type": "object",
|
|
926
|
+
"required": [
|
|
927
|
+
"id"
|
|
928
|
+
],
|
|
929
|
+
"properties": {
|
|
930
|
+
"id": {
|
|
931
|
+
"type": "string"
|
|
932
|
+
},
|
|
933
|
+
"name": {
|
|
934
|
+
"type": "string"
|
|
935
|
+
},
|
|
936
|
+
"type": {
|
|
937
|
+
"type": "number"
|
|
938
|
+
},
|
|
939
|
+
"isMust": {
|
|
940
|
+
"type": "number"
|
|
941
|
+
},
|
|
942
|
+
"description": {
|
|
943
|
+
"type": "string"
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
```
|
|
948
|
+
|
|
949
|
+
<h3 id="post__api_v1_account_admin_savepermission-parameters">Parameters</h3>
|
|
950
|
+
|
|
951
|
+
|Name|In|Type|Required|Description|
|
|
952
|
+
|---|---|---|---|---|
|
|
953
|
+
|body|body|object|true|none|
|
|
954
|
+
|» id|body|string|true|none|
|
|
955
|
+
|» name|body|string|false|none|
|
|
956
|
+
|» type|body|number|false|none|
|
|
957
|
+
|» isMust|body|number|false|none|
|
|
958
|
+
|» description|body|string|false|none|
|
|
959
|
+
|
|
960
|
+
<h3 id="post__api_v1_account_admin_savepermission-responses">Responses</h3>
|
|
961
|
+
|
|
962
|
+
|Status|Meaning|Description|Schema|
|
|
963
|
+
|---|---|---|---|
|
|
964
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
965
|
+
|
|
966
|
+
<aside class="success">
|
|
967
|
+
This operation does not require authentication
|
|
968
|
+
</aside>
|
|
969
|
+
|
|
970
|
+
## post__api_v1_account_admin_saveTenantPermissionList
|
|
971
|
+
|
|
972
|
+
`POST /api/v1/account/admin/saveTenantPermissionList`
|
|
973
|
+
|
|
974
|
+
<h3 id="post__api_v1_account_admin_savetenantpermissionlist-responses">Responses</h3>
|
|
975
|
+
|
|
976
|
+
|Status|Meaning|Description|Schema|
|
|
977
|
+
|---|---|---|---|
|
|
978
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
979
|
+
|
|
980
|
+
<aside class="success">
|
|
981
|
+
This operation does not require authentication
|
|
982
|
+
</aside>
|
|
983
|
+
|
|
984
|
+
## get__api_v1_account_admin_getTenantPermissionList
|
|
985
|
+
|
|
986
|
+
`GET /api/v1/account/admin/getTenantPermissionList`
|
|
987
|
+
|
|
988
|
+
<h3 id="get__api_v1_account_admin_gettenantpermissionlist-responses">Responses</h3>
|
|
989
|
+
|
|
990
|
+
|Status|Meaning|Description|Schema|
|
|
991
|
+
|---|---|---|---|
|
|
992
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
993
|
+
|
|
994
|
+
<aside class="success">
|
|
995
|
+
This operation does not require authentication
|
|
996
|
+
</aside>
|
|
997
|
+
|
|
998
|
+
## get__api_v1_account_admin_getRoleList
|
|
999
|
+
|
|
1000
|
+
`GET /api/v1/account/admin/getRoleList`
|
|
1001
|
+
|
|
1002
|
+
<h3 id="get__api_v1_account_admin_getrolelist-parameters">Parameters</h3>
|
|
1003
|
+
|
|
1004
|
+
|Name|In|Type|Required|Description|
|
|
1005
|
+
|---|---|---|---|---|
|
|
1006
|
+
|tenantId|query|string|true|none|
|
|
1007
|
+
|
|
1008
|
+
<h3 id="get__api_v1_account_admin_getrolelist-responses">Responses</h3>
|
|
1009
|
+
|
|
1010
|
+
|Status|Meaning|Description|Schema|
|
|
1011
|
+
|---|---|---|---|
|
|
1012
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1013
|
+
|
|
1014
|
+
<aside class="success">
|
|
1015
|
+
This operation does not require authentication
|
|
1016
|
+
</aside>
|
|
1017
|
+
|
|
1018
|
+
## post__api_v1_account_admin_addRole
|
|
1019
|
+
|
|
1020
|
+
`POST /api/v1/account/admin/addRole`
|
|
1021
|
+
|
|
1022
|
+
> Body parameter
|
|
1023
|
+
|
|
1024
|
+
```json
|
|
1025
|
+
{
|
|
1026
|
+
"type": "object",
|
|
1027
|
+
"required": [
|
|
1028
|
+
"tenantId",
|
|
1029
|
+
"name"
|
|
1030
|
+
],
|
|
1031
|
+
"properties": {
|
|
1032
|
+
"tenantId": {
|
|
1033
|
+
"type": "string"
|
|
1034
|
+
},
|
|
1035
|
+
"name": {
|
|
1036
|
+
"type": "string"
|
|
1037
|
+
},
|
|
1038
|
+
"description": {
|
|
1039
|
+
"type": "string"
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
```
|
|
1044
|
+
|
|
1045
|
+
<h3 id="post__api_v1_account_admin_addrole-parameters">Parameters</h3>
|
|
1046
|
+
|
|
1047
|
+
|Name|In|Type|Required|Description|
|
|
1048
|
+
|---|---|---|---|---|
|
|
1049
|
+
|body|body|object|true|none|
|
|
1050
|
+
|» tenantId|body|string|true|none|
|
|
1051
|
+
|» name|body|string|true|none|
|
|
1052
|
+
|» description|body|string|false|none|
|
|
1053
|
+
|
|
1054
|
+
<h3 id="post__api_v1_account_admin_addrole-responses">Responses</h3>
|
|
1055
|
+
|
|
1056
|
+
|Status|Meaning|Description|Schema|
|
|
1057
|
+
|---|---|---|---|
|
|
1058
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1059
|
+
|
|
1060
|
+
<aside class="success">
|
|
1061
|
+
This operation does not require authentication
|
|
1062
|
+
</aside>
|
|
1063
|
+
|
|
1064
|
+
## post__api_v1_account_admin_saveRole
|
|
1065
|
+
|
|
1066
|
+
`POST /api/v1/account/admin/saveRole`
|
|
1067
|
+
|
|
1068
|
+
> Body parameter
|
|
1069
|
+
|
|
1070
|
+
```json
|
|
1071
|
+
{
|
|
1072
|
+
"type": "object",
|
|
1073
|
+
"required": [
|
|
1074
|
+
"name",
|
|
1075
|
+
"id"
|
|
1076
|
+
],
|
|
1077
|
+
"properties": {
|
|
1078
|
+
"id": {
|
|
1079
|
+
"type": "number"
|
|
1080
|
+
},
|
|
1081
|
+
"name": {
|
|
1082
|
+
"type": "string"
|
|
1083
|
+
},
|
|
1084
|
+
"description": {
|
|
1085
|
+
"type": "string"
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
```
|
|
1090
|
+
|
|
1091
|
+
<h3 id="post__api_v1_account_admin_saverole-parameters">Parameters</h3>
|
|
1092
|
+
|
|
1093
|
+
|Name|In|Type|Required|Description|
|
|
1094
|
+
|---|---|---|---|---|
|
|
1095
|
+
|body|body|object|true|none|
|
|
1096
|
+
|» id|body|number|true|none|
|
|
1097
|
+
|» name|body|string|true|none|
|
|
1098
|
+
|» description|body|string|false|none|
|
|
1099
|
+
|
|
1100
|
+
<h3 id="post__api_v1_account_admin_saverole-responses">Responses</h3>
|
|
1101
|
+
|
|
1102
|
+
|Status|Meaning|Description|Schema|
|
|
1103
|
+
|---|---|---|---|
|
|
1104
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1105
|
+
|
|
1106
|
+
<aside class="success">
|
|
1107
|
+
This operation does not require authentication
|
|
1108
|
+
</aside>
|
|
1109
|
+
|
|
1110
|
+
## post__api_v1_account_admin_removeRole
|
|
1111
|
+
|
|
1112
|
+
`POST /api/v1/account/admin/removeRole`
|
|
1113
|
+
|
|
1114
|
+
> Body parameter
|
|
1115
|
+
|
|
1116
|
+
```json
|
|
1117
|
+
{
|
|
1118
|
+
"type": "object",
|
|
1119
|
+
"required": [
|
|
1120
|
+
"id"
|
|
1121
|
+
],
|
|
1122
|
+
"properties": {
|
|
1123
|
+
"id": {
|
|
1124
|
+
"type": "number"
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
```
|
|
1129
|
+
|
|
1130
|
+
<h3 id="post__api_v1_account_admin_removerole-parameters">Parameters</h3>
|
|
1131
|
+
|
|
1132
|
+
|Name|In|Type|Required|Description|
|
|
1133
|
+
|---|---|---|---|---|
|
|
1134
|
+
|body|body|object|true|none|
|
|
1135
|
+
|» id|body|number|true|none|
|
|
1136
|
+
|
|
1137
|
+
<h3 id="post__api_v1_account_admin_removerole-responses">Responses</h3>
|
|
1138
|
+
|
|
1139
|
+
|Status|Meaning|Description|Schema|
|
|
1140
|
+
|---|---|---|---|
|
|
1141
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1142
|
+
|
|
1143
|
+
<aside class="success">
|
|
1144
|
+
This operation does not require authentication
|
|
1145
|
+
</aside>
|
|
1146
|
+
|
|
1147
|
+
## get__api_v1_account_admin_getRolePermissionList
|
|
1148
|
+
|
|
1149
|
+
`GET /api/v1/account/admin/getRolePermissionList`
|
|
1150
|
+
|
|
1151
|
+
<h3 id="get__api_v1_account_admin_getrolepermissionlist-parameters">Parameters</h3>
|
|
1152
|
+
|
|
1153
|
+
|Name|In|Type|Required|Description|
|
|
1154
|
+
|---|---|---|---|---|
|
|
1155
|
+
|id|query|number|true|none|
|
|
1156
|
+
|
|
1157
|
+
<h3 id="get__api_v1_account_admin_getrolepermissionlist-responses">Responses</h3>
|
|
1158
|
+
|
|
1159
|
+
|Status|Meaning|Description|Schema|
|
|
1160
|
+
|---|---|---|---|
|
|
1161
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1162
|
+
|
|
1163
|
+
<aside class="success">
|
|
1164
|
+
This operation does not require authentication
|
|
1165
|
+
</aside>
|
|
1166
|
+
|
|
1167
|
+
## post__api_v1_account_admin_saveRolePermissionList
|
|
1168
|
+
|
|
1169
|
+
`POST /api/v1/account/admin/saveRolePermissionList`
|
|
1170
|
+
|
|
1171
|
+
<h3 id="post__api_v1_account_admin_saverolepermissionlist-responses">Responses</h3>
|
|
1172
|
+
|
|
1173
|
+
|Status|Meaning|Description|Schema|
|
|
1174
|
+
|---|---|---|---|
|
|
1175
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1176
|
+
|
|
1177
|
+
<aside class="success">
|
|
1178
|
+
This operation does not require authentication
|
|
1179
|
+
</aside>
|
|
1180
|
+
|
|
1181
|
+
## get__api_v1_account_admin_getAllTenantList
|
|
1182
|
+
|
|
1183
|
+
`GET /api/v1/account/admin/getAllTenantList`
|
|
1184
|
+
|
|
1185
|
+
<h3 id="get__api_v1_account_admin_getalltenantlist-parameters">Parameters</h3>
|
|
1186
|
+
|
|
1187
|
+
|Name|In|Type|Required|Description|
|
|
1188
|
+
|---|---|---|---|---|
|
|
1189
|
+
|name|query|string|false|none|
|
|
1190
|
+
|serviceStartTime|query|string(date-time)|false|none|
|
|
1191
|
+
|serviceEndTime|query|string(date-time)|false|none|
|
|
1192
|
+
|perPage|query|number|false|none|
|
|
1193
|
+
|currentPage|query|number|false|none|
|
|
1194
|
+
|
|
1195
|
+
<h3 id="get__api_v1_account_admin_getalltenantlist-responses">Responses</h3>
|
|
1196
|
+
|
|
1197
|
+
|Status|Meaning|Description|Schema|
|
|
1198
|
+
|---|---|---|---|
|
|
1199
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1200
|
+
|
|
1201
|
+
<aside class="success">
|
|
1202
|
+
This operation does not require authentication
|
|
1203
|
+
</aside>
|
|
1204
|
+
|
|
1205
|
+
## get__api_v1_account_admin_getTenantInfo
|
|
1206
|
+
|
|
1207
|
+
`GET /api/v1/account/admin/getTenantInfo`
|
|
1208
|
+
|
|
1209
|
+
<h3 id="get__api_v1_account_admin_gettenantinfo-parameters">Parameters</h3>
|
|
1210
|
+
|
|
1211
|
+
|Name|In|Type|Required|Description|
|
|
1212
|
+
|---|---|---|---|---|
|
|
1213
|
+
|id|query|string|false|none|
|
|
1214
|
+
|
|
1215
|
+
<h3 id="get__api_v1_account_admin_gettenantinfo-responses">Responses</h3>
|
|
1216
|
+
|
|
1217
|
+
|Status|Meaning|Description|Schema|
|
|
1218
|
+
|---|---|---|---|
|
|
1219
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1220
|
+
|
|
1221
|
+
<aside class="success">
|
|
1222
|
+
This operation does not require authentication
|
|
1223
|
+
</aside>
|
|
1224
|
+
|
|
1225
|
+
## post__api_v1_account_admin_addTenant
|
|
1226
|
+
|
|
1227
|
+
`POST /api/v1/account/admin/addTenant`
|
|
1228
|
+
|
|
1229
|
+
> Body parameter
|
|
1230
|
+
|
|
1231
|
+
```json
|
|
1232
|
+
{
|
|
1233
|
+
"type": "object",
|
|
1234
|
+
"required": [
|
|
1235
|
+
"name",
|
|
1236
|
+
"accountNumber",
|
|
1237
|
+
"serviceStartTime",
|
|
1238
|
+
"serviceEndTime"
|
|
1239
|
+
],
|
|
1240
|
+
"properties": {
|
|
1241
|
+
"name": {
|
|
1242
|
+
"type": "string"
|
|
1243
|
+
},
|
|
1244
|
+
"accountNumber": {
|
|
1245
|
+
"type": "number"
|
|
1246
|
+
},
|
|
1247
|
+
"serviceStartTime": {
|
|
1248
|
+
"type": "string",
|
|
1249
|
+
"format": "date-time"
|
|
1250
|
+
},
|
|
1251
|
+
"serviceEndTime": {
|
|
1252
|
+
"type": "string",
|
|
1253
|
+
"format": "date-time"
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
```
|
|
1258
|
+
|
|
1259
|
+
<h3 id="post__api_v1_account_admin_addtenant-parameters">Parameters</h3>
|
|
1260
|
+
|
|
1261
|
+
|Name|In|Type|Required|Description|
|
|
1262
|
+
|---|---|---|---|---|
|
|
1263
|
+
|body|body|object|true|none|
|
|
1264
|
+
|» name|body|string|true|none|
|
|
1265
|
+
|» accountNumber|body|number|true|none|
|
|
1266
|
+
|» serviceStartTime|body|string(date-time)|true|none|
|
|
1267
|
+
|» serviceEndTime|body|string(date-time)|true|none|
|
|
1268
|
+
|
|
1269
|
+
<h3 id="post__api_v1_account_admin_addtenant-responses">Responses</h3>
|
|
1270
|
+
|
|
1271
|
+
|Status|Meaning|Description|Schema|
|
|
1272
|
+
|---|---|---|---|
|
|
1273
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1274
|
+
|
|
1275
|
+
<aside class="success">
|
|
1276
|
+
This operation does not require authentication
|
|
1277
|
+
</aside>
|
|
1278
|
+
|
|
1279
|
+
## post__api_v1_account_admin_saveTenant
|
|
1280
|
+
|
|
1281
|
+
`POST /api/v1/account/admin/saveTenant`
|
|
1282
|
+
|
|
1283
|
+
> Body parameter
|
|
1284
|
+
|
|
1285
|
+
```json
|
|
1286
|
+
{
|
|
1287
|
+
"type": "object",
|
|
1288
|
+
"required": [
|
|
1289
|
+
"id",
|
|
1290
|
+
"name",
|
|
1291
|
+
"accountNumber",
|
|
1292
|
+
"serviceStartTime",
|
|
1293
|
+
"serviceEndTime"
|
|
1294
|
+
],
|
|
1295
|
+
"properties": {
|
|
1296
|
+
"id": {
|
|
1297
|
+
"type": "string"
|
|
1298
|
+
},
|
|
1299
|
+
"name": {
|
|
1300
|
+
"type": "string"
|
|
1301
|
+
},
|
|
1302
|
+
"accountNumber": {
|
|
1303
|
+
"type": "number"
|
|
1304
|
+
},
|
|
1305
|
+
"serviceStartTime": {
|
|
1306
|
+
"type": "string",
|
|
1307
|
+
"format": "date-time"
|
|
1308
|
+
},
|
|
1309
|
+
"serviceEndTime": {
|
|
1310
|
+
"type": "string",
|
|
1311
|
+
"format": "date-time"
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1315
|
+
```
|
|
1316
|
+
|
|
1317
|
+
<h3 id="post__api_v1_account_admin_savetenant-parameters">Parameters</h3>
|
|
1318
|
+
|
|
1319
|
+
|Name|In|Type|Required|Description|
|
|
1320
|
+
|---|---|---|---|---|
|
|
1321
|
+
|body|body|object|true|none|
|
|
1322
|
+
|» id|body|string|true|none|
|
|
1323
|
+
|» name|body|string|true|none|
|
|
1324
|
+
|» accountNumber|body|number|true|none|
|
|
1325
|
+
|» serviceStartTime|body|string(date-time)|true|none|
|
|
1326
|
+
|» serviceEndTime|body|string(date-time)|true|none|
|
|
1327
|
+
|
|
1328
|
+
<h3 id="post__api_v1_account_admin_savetenant-responses">Responses</h3>
|
|
1329
|
+
|
|
1330
|
+
|Status|Meaning|Description|Schema|
|
|
1331
|
+
|---|---|---|---|
|
|
1332
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1333
|
+
|
|
1334
|
+
<aside class="success">
|
|
1335
|
+
This operation does not require authentication
|
|
1336
|
+
</aside>
|
|
1337
|
+
|
|
1338
|
+
## post__api_v1_account_admin_tenant_addOrg
|
|
1339
|
+
|
|
1340
|
+
`POST /api/v1/account/admin/tenant/addOrg`
|
|
1341
|
+
|
|
1342
|
+
<h3 id="post__api_v1_account_admin_tenant_addorg-responses">Responses</h3>
|
|
1343
|
+
|
|
1344
|
+
|Status|Meaning|Description|Schema|
|
|
1345
|
+
|---|---|---|---|
|
|
1346
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1347
|
+
|
|
1348
|
+
<aside class="success">
|
|
1349
|
+
This operation does not require authentication
|
|
1350
|
+
</aside>
|
|
1351
|
+
|
|
1352
|
+
## get__api_v1_account_admin_tenant_orgList
|
|
1353
|
+
|
|
1354
|
+
`GET /api/v1/account/admin/tenant/orgList`
|
|
1355
|
+
|
|
1356
|
+
<h3 id="get__api_v1_account_admin_tenant_orglist-parameters">Parameters</h3>
|
|
1357
|
+
|
|
1358
|
+
|Name|In|Type|Required|Description|
|
|
1359
|
+
|---|---|---|---|---|
|
|
1360
|
+
|id|query|string|false|none|
|
|
1361
|
+
|
|
1362
|
+
<h3 id="get__api_v1_account_admin_tenant_orglist-responses">Responses</h3>
|
|
1363
|
+
|
|
1364
|
+
|Status|Meaning|Description|Schema|
|
|
1365
|
+
|---|---|---|---|
|
|
1366
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1367
|
+
|
|
1368
|
+
<aside class="success">
|
|
1369
|
+
This operation does not require authentication
|
|
1370
|
+
</aside>
|
|
1371
|
+
|
|
1372
|
+
## get__api_v1_account_admin_getTenantUserList
|
|
1373
|
+
|
|
1374
|
+
`GET /api/v1/account/admin/getTenantUserList`
|
|
1375
|
+
|
|
1376
|
+
<h3 id="get__api_v1_account_admin_gettenantuserlist-parameters">Parameters</h3>
|
|
1377
|
+
|
|
1378
|
+
|Name|In|Type|Required|Description|
|
|
1379
|
+
|---|---|---|---|---|
|
|
1380
|
+
|tenantId|query|string|false|none|
|
|
1381
|
+
|
|
1382
|
+
<h3 id="get__api_v1_account_admin_gettenantuserlist-responses">Responses</h3>
|
|
1383
|
+
|
|
1384
|
+
|Status|Meaning|Description|Schema|
|
|
1385
|
+
|---|---|---|---|
|
|
1386
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1387
|
+
|
|
1388
|
+
<aside class="success">
|
|
1389
|
+
This operation does not require authentication
|
|
1390
|
+
</aside>
|
|
1391
|
+
|
|
1392
|
+
## get__api_v1_account_tenant_getUserTenant
|
|
1393
|
+
|
|
1394
|
+
`GET /api/v1/account/tenant/getUserTenant`
|
|
1395
|
+
|
|
1396
|
+
<h3 id="get__api_v1_account_tenant_getusertenant-responses">Responses</h3>
|
|
1397
|
+
|
|
1398
|
+
|Status|Meaning|Description|Schema|
|
|
1399
|
+
|---|---|---|---|
|
|
1400
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1401
|
+
|
|
1402
|
+
<aside class="success">
|
|
1403
|
+
This operation does not require authentication
|
|
1404
|
+
</aside>
|
|
1405
|
+
|
|
1406
|
+
## get__api_v1_account_tenant_getUserCurrentTenant
|
|
1407
|
+
|
|
1408
|
+
`GET /api/v1/account/tenant/getUserCurrentTenant`
|
|
1409
|
+
|
|
1410
|
+
<h3 id="get__api_v1_account_tenant_getusercurrenttenant-responses">Responses</h3>
|
|
1411
|
+
|
|
1412
|
+
|Status|Meaning|Description|Schema|
|
|
1413
|
+
|---|---|---|---|
|
|
1414
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1415
|
+
|
|
1416
|
+
<aside class="success">
|
|
1417
|
+
This operation does not require authentication
|
|
1418
|
+
</aside>
|
|
1419
|
+
|
|
1420
|
+
## get__api_v1_account_getUserInfo
|
|
1421
|
+
|
|
1422
|
+
`GET /api/v1/account/getUserInfo`
|
|
1423
|
+
|
|
1424
|
+
<h3 id="get__api_v1_account_getuserinfo-responses">Responses</h3>
|
|
1425
|
+
|
|
1426
|
+
|Status|Meaning|Description|Schema|
|
|
1427
|
+
|---|---|---|---|
|
|
1428
|
+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Default Response|None|
|
|
1429
|
+
|
|
1430
|
+
<aside class="success">
|
|
1431
|
+
This operation does not require authentication
|
|
1432
|
+
</aside>
|
|
1433
|
+
|
|
1434
|
+
# Schemas
|
|
1435
|
+
|
|
1436
|
+
|