@cherryin/api-client 0.0.3 → 0.0.5
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/.openapi-generator/FILES +20 -0
- package/README.md +29 -3
- package/api.ts +750 -1
- package/dist/api.d.ts +457 -0
- package/dist/api.js +481 -3
- package/dist/esm/api.d.ts +457 -0
- package/dist/esm/api.js +475 -1
- package/docs/Auth2UserServiceApi.md +58 -0
- package/docs/AuthOAuth2CallbackResponse.md +32 -0
- package/docs/BatchUpdateSessionsRequest.md +24 -0
- package/docs/BatchUpdateSessionsResponse.md +24 -0
- package/docs/GetUserDetailResponse.md +24 -0
- package/docs/ListUsersRequest.md +36 -0
- package/docs/ListUsersResponse.md +30 -0
- package/docs/ProviderAdminServiceApi.md +1 -1
- package/docs/SetUserRoleRequest.md +22 -0
- package/docs/SetUserRoleResponse.md +24 -0
- package/docs/SetUserStatusRequest.md +22 -0
- package/docs/SetUserStatusResponse.md +26 -0
- package/docs/UpdateUserInfoRequest.md +26 -0
- package/docs/UpdateUserInfoResponse.md +24 -0
- package/docs/UserManageAPIKey.md +38 -0
- package/docs/UserManageAdminServiceApi.md +330 -0
- package/docs/UserManageAuthMethod.md +32 -0
- package/docs/UserManageBalance.md +32 -0
- package/docs/UserManageDetail.md +47 -0
- package/docs/UserManageItem.md +39 -0
- package/docs/UserManageSession.md +34 -0
- package/docs/UserManageSettings.md +20 -0
- package/package.json +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# GetUserDetailResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**code** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**user** | [**UserManageDetail**](UserManageDetail.md) | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { GetUserDetailResponse } from '@cherryin/api-client';
|
|
16
|
+
|
|
17
|
+
const instance: GetUserDetailResponse = {
|
|
18
|
+
code,
|
|
19
|
+
message,
|
|
20
|
+
user,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# ListUsersRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**page** | **number** | 分页参数 | [optional] [default to undefined]
|
|
9
|
+
**page_size** | **number** | | [optional] [default to undefined]
|
|
10
|
+
**uids** | **Array<string>** | 过滤条件 | [optional] [default to undefined]
|
|
11
|
+
**display_name** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**user_statuses** | **Array<number>** | | [optional] [default to undefined]
|
|
14
|
+
**user_roles** | **Array<number>** | | [optional] [default to undefined]
|
|
15
|
+
**order_by** | **string** | 排序 | [optional] [default to undefined]
|
|
16
|
+
**order_dir** | **string** | | [optional] [default to undefined]
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { ListUsersRequest } from '@cherryin/api-client';
|
|
22
|
+
|
|
23
|
+
const instance: ListUsersRequest = {
|
|
24
|
+
page,
|
|
25
|
+
page_size,
|
|
26
|
+
uids,
|
|
27
|
+
display_name,
|
|
28
|
+
email,
|
|
29
|
+
user_statuses,
|
|
30
|
+
user_roles,
|
|
31
|
+
order_by,
|
|
32
|
+
order_dir,
|
|
33
|
+
};
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# ListUsersResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**code** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**users** | [**Array<UserManageItem>**](UserManageItem.md) | | [optional] [default to undefined]
|
|
11
|
+
**total** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**page** | **number** | | [optional] [default to undefined]
|
|
13
|
+
**page_size** | **number** | | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { ListUsersResponse } from '@cherryin/api-client';
|
|
19
|
+
|
|
20
|
+
const instance: ListUsersResponse = {
|
|
21
|
+
code,
|
|
22
|
+
message,
|
|
23
|
+
users,
|
|
24
|
+
total,
|
|
25
|
+
page,
|
|
26
|
+
page_size,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -5,7 +5,7 @@ All URIs are relative to *http://localhost*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**providerAdminServiceProviderCreate**](#provideradminserviceprovidercreate) | **POST** /admin/provider/create | |
|
|
8
|
-
|[**providerAdminServiceProviderDelete**](#provideradminserviceproviderdelete) | **
|
|
8
|
+
|[**providerAdminServiceProviderDelete**](#provideradminserviceproviderdelete) | **DELETE** /admin/provider/delete | |
|
|
9
9
|
|[**providerAdminServiceProviderGet**](#provideradminserviceproviderget) | **GET** /admin/provider/get | |
|
|
10
10
|
|[**providerAdminServiceProviderList**](#provideradminserviceproviderlist) | **GET** /admin/provider/list | |
|
|
11
11
|
|[**providerAdminServiceProviderUpdate**](#provideradminserviceproviderupdate) | **POST** /admin/provider/update | |
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# SetUserRoleRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**uid** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**new_role** | **number** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { SetUserRoleRequest } from '@cherryin/api-client';
|
|
15
|
+
|
|
16
|
+
const instance: SetUserRoleRequest = {
|
|
17
|
+
uid,
|
|
18
|
+
new_role,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# SetUserRoleResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**code** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**success** | **boolean** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { SetUserRoleResponse } from '@cherryin/api-client';
|
|
16
|
+
|
|
17
|
+
const instance: SetUserRoleResponse = {
|
|
18
|
+
code,
|
|
19
|
+
message,
|
|
20
|
+
success,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# SetUserStatusRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**uid** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**new_status** | **number** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { SetUserStatusRequest } from '@cherryin/api-client';
|
|
15
|
+
|
|
16
|
+
const instance: SetUserStatusRequest = {
|
|
17
|
+
uid,
|
|
18
|
+
new_status,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# SetUserStatusResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**code** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**success** | **boolean** | | [optional] [default to undefined]
|
|
11
|
+
**revoked_sessions** | **number** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { SetUserStatusResponse } from '@cherryin/api-client';
|
|
17
|
+
|
|
18
|
+
const instance: SetUserStatusResponse = {
|
|
19
|
+
code,
|
|
20
|
+
message,
|
|
21
|
+
success,
|
|
22
|
+
revoked_sessions,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# UpdateUserInfoRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**uid** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**display_name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**password** | **string** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { UpdateUserInfoRequest } from '@cherryin/api-client';
|
|
17
|
+
|
|
18
|
+
const instance: UpdateUserInfoRequest = {
|
|
19
|
+
uid,
|
|
20
|
+
display_name,
|
|
21
|
+
email,
|
|
22
|
+
password,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# UpdateUserInfoResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**code** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**success** | **boolean** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { UpdateUserInfoResponse } from '@cherryin/api-client';
|
|
16
|
+
|
|
17
|
+
const instance: UpdateUserInfoResponse = {
|
|
18
|
+
code,
|
|
19
|
+
message,
|
|
20
|
+
success,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# UserManageAPIKey
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**key_group** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**balance_code** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**quota_total** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**quota_used** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**quota_mode** | **number** | | [optional] [default to undefined]
|
|
15
|
+
**key_status** | **number** | | [optional] [default to undefined]
|
|
16
|
+
**expires_at** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { UserManageAPIKey } from '@cherryin/api-client';
|
|
23
|
+
|
|
24
|
+
const instance: UserManageAPIKey = {
|
|
25
|
+
id,
|
|
26
|
+
name,
|
|
27
|
+
key_group,
|
|
28
|
+
balance_code,
|
|
29
|
+
quota_total,
|
|
30
|
+
quota_used,
|
|
31
|
+
quota_mode,
|
|
32
|
+
key_status,
|
|
33
|
+
expires_at,
|
|
34
|
+
created_at,
|
|
35
|
+
};
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
# UserManageAdminServiceApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**userManageAdminServiceBatchUpdateSessions**](#usermanageadminservicebatchupdatesessions) | **POST** /admin/users/manage/sessions | |
|
|
8
|
+
|[**userManageAdminServiceGetUserDetail**](#usermanageadminservicegetuserdetail) | **GET** /admin/users/detail | |
|
|
9
|
+
|[**userManageAdminServiceListUsers**](#usermanageadminservicelistusers) | **POST** /admin/users/list | |
|
|
10
|
+
|[**userManageAdminServiceSetUserRole**](#usermanageadminservicesetuserrole) | **POST** /admin/users/manage/role | |
|
|
11
|
+
|[**userManageAdminServiceSetUserStatus**](#usermanageadminservicesetuserstatus) | **POST** /admin/users/manage/status | |
|
|
12
|
+
|[**userManageAdminServiceUpdateUserInfo**](#usermanageadminserviceupdateuserinfo) | **POST** /admin/users/manage/info | |
|
|
13
|
+
|
|
14
|
+
# **userManageAdminServiceBatchUpdateSessions**
|
|
15
|
+
> BatchUpdateSessionsResponse userManageAdminServiceBatchUpdateSessions(batchUpdateSessionsRequest)
|
|
16
|
+
|
|
17
|
+
批量管理 Session
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import {
|
|
23
|
+
UserManageAdminServiceApi,
|
|
24
|
+
Configuration,
|
|
25
|
+
BatchUpdateSessionsRequest
|
|
26
|
+
} from '@cherryin/api-client';
|
|
27
|
+
|
|
28
|
+
const configuration = new Configuration();
|
|
29
|
+
const apiInstance = new UserManageAdminServiceApi(configuration);
|
|
30
|
+
|
|
31
|
+
let batchUpdateSessionsRequest: BatchUpdateSessionsRequest; //
|
|
32
|
+
|
|
33
|
+
const { status, data } = await apiInstance.userManageAdminServiceBatchUpdateSessions(
|
|
34
|
+
batchUpdateSessionsRequest
|
|
35
|
+
);
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Parameters
|
|
39
|
+
|
|
40
|
+
|Name | Type | Description | Notes|
|
|
41
|
+
|------------- | ------------- | ------------- | -------------|
|
|
42
|
+
| **batchUpdateSessionsRequest** | **BatchUpdateSessionsRequest**| | |
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Return type
|
|
46
|
+
|
|
47
|
+
**BatchUpdateSessionsResponse**
|
|
48
|
+
|
|
49
|
+
### Authorization
|
|
50
|
+
|
|
51
|
+
No authorization required
|
|
52
|
+
|
|
53
|
+
### HTTP request headers
|
|
54
|
+
|
|
55
|
+
- **Content-Type**: application/json
|
|
56
|
+
- **Accept**: application/json
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### HTTP response details
|
|
60
|
+
| Status code | Description | Response headers |
|
|
61
|
+
|-------------|-------------|------------------|
|
|
62
|
+
|**200** | OK | - |
|
|
63
|
+
|**0** | Default error response | - |
|
|
64
|
+
|
|
65
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
66
|
+
|
|
67
|
+
# **userManageAdminServiceGetUserDetail**
|
|
68
|
+
> GetUserDetailResponse userManageAdminServiceGetUserDetail()
|
|
69
|
+
|
|
70
|
+
用户详情
|
|
71
|
+
|
|
72
|
+
### Example
|
|
73
|
+
|
|
74
|
+
```typescript
|
|
75
|
+
import {
|
|
76
|
+
UserManageAdminServiceApi,
|
|
77
|
+
Configuration
|
|
78
|
+
} from '@cherryin/api-client';
|
|
79
|
+
|
|
80
|
+
const configuration = new Configuration();
|
|
81
|
+
const apiInstance = new UserManageAdminServiceApi(configuration);
|
|
82
|
+
|
|
83
|
+
let uid: string; //@gotags: form:\"uid\" binding:\"uid\" (optional) (default to undefined)
|
|
84
|
+
|
|
85
|
+
const { status, data } = await apiInstance.userManageAdminServiceGetUserDetail(
|
|
86
|
+
uid
|
|
87
|
+
);
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### Parameters
|
|
91
|
+
|
|
92
|
+
|Name | Type | Description | Notes|
|
|
93
|
+
|------------- | ------------- | ------------- | -------------|
|
|
94
|
+
| **uid** | [**string**] | @gotags: form:\"uid\" binding:\"uid\" | (optional) defaults to undefined|
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
### Return type
|
|
98
|
+
|
|
99
|
+
**GetUserDetailResponse**
|
|
100
|
+
|
|
101
|
+
### Authorization
|
|
102
|
+
|
|
103
|
+
No authorization required
|
|
104
|
+
|
|
105
|
+
### HTTP request headers
|
|
106
|
+
|
|
107
|
+
- **Content-Type**: Not defined
|
|
108
|
+
- **Accept**: application/json
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
### HTTP response details
|
|
112
|
+
| Status code | Description | Response headers |
|
|
113
|
+
|-------------|-------------|------------------|
|
|
114
|
+
|**200** | OK | - |
|
|
115
|
+
|**0** | Default error response | - |
|
|
116
|
+
|
|
117
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
118
|
+
|
|
119
|
+
# **userManageAdminServiceListUsers**
|
|
120
|
+
> ListUsersResponse userManageAdminServiceListUsers(listUsersRequest)
|
|
121
|
+
|
|
122
|
+
用户列表(分页查询)
|
|
123
|
+
|
|
124
|
+
### Example
|
|
125
|
+
|
|
126
|
+
```typescript
|
|
127
|
+
import {
|
|
128
|
+
UserManageAdminServiceApi,
|
|
129
|
+
Configuration,
|
|
130
|
+
ListUsersRequest
|
|
131
|
+
} from '@cherryin/api-client';
|
|
132
|
+
|
|
133
|
+
const configuration = new Configuration();
|
|
134
|
+
const apiInstance = new UserManageAdminServiceApi(configuration);
|
|
135
|
+
|
|
136
|
+
let listUsersRequest: ListUsersRequest; //
|
|
137
|
+
|
|
138
|
+
const { status, data } = await apiInstance.userManageAdminServiceListUsers(
|
|
139
|
+
listUsersRequest
|
|
140
|
+
);
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### Parameters
|
|
144
|
+
|
|
145
|
+
|Name | Type | Description | Notes|
|
|
146
|
+
|------------- | ------------- | ------------- | -------------|
|
|
147
|
+
| **listUsersRequest** | **ListUsersRequest**| | |
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
### Return type
|
|
151
|
+
|
|
152
|
+
**ListUsersResponse**
|
|
153
|
+
|
|
154
|
+
### Authorization
|
|
155
|
+
|
|
156
|
+
No authorization required
|
|
157
|
+
|
|
158
|
+
### HTTP request headers
|
|
159
|
+
|
|
160
|
+
- **Content-Type**: application/json
|
|
161
|
+
- **Accept**: application/json
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
### HTTP response details
|
|
165
|
+
| Status code | Description | Response headers |
|
|
166
|
+
|-------------|-------------|------------------|
|
|
167
|
+
|**200** | OK | - |
|
|
168
|
+
|**0** | Default error response | - |
|
|
169
|
+
|
|
170
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
171
|
+
|
|
172
|
+
# **userManageAdminServiceSetUserRole**
|
|
173
|
+
> SetUserRoleResponse userManageAdminServiceSetUserRole(setUserRoleRequest)
|
|
174
|
+
|
|
175
|
+
设置用户角色
|
|
176
|
+
|
|
177
|
+
### Example
|
|
178
|
+
|
|
179
|
+
```typescript
|
|
180
|
+
import {
|
|
181
|
+
UserManageAdminServiceApi,
|
|
182
|
+
Configuration,
|
|
183
|
+
SetUserRoleRequest
|
|
184
|
+
} from '@cherryin/api-client';
|
|
185
|
+
|
|
186
|
+
const configuration = new Configuration();
|
|
187
|
+
const apiInstance = new UserManageAdminServiceApi(configuration);
|
|
188
|
+
|
|
189
|
+
let setUserRoleRequest: SetUserRoleRequest; //
|
|
190
|
+
|
|
191
|
+
const { status, data } = await apiInstance.userManageAdminServiceSetUserRole(
|
|
192
|
+
setUserRoleRequest
|
|
193
|
+
);
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### Parameters
|
|
197
|
+
|
|
198
|
+
|Name | Type | Description | Notes|
|
|
199
|
+
|------------- | ------------- | ------------- | -------------|
|
|
200
|
+
| **setUserRoleRequest** | **SetUserRoleRequest**| | |
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
### Return type
|
|
204
|
+
|
|
205
|
+
**SetUserRoleResponse**
|
|
206
|
+
|
|
207
|
+
### Authorization
|
|
208
|
+
|
|
209
|
+
No authorization required
|
|
210
|
+
|
|
211
|
+
### HTTP request headers
|
|
212
|
+
|
|
213
|
+
- **Content-Type**: application/json
|
|
214
|
+
- **Accept**: application/json
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
### HTTP response details
|
|
218
|
+
| Status code | Description | Response headers |
|
|
219
|
+
|-------------|-------------|------------------|
|
|
220
|
+
|**200** | OK | - |
|
|
221
|
+
|**0** | Default error response | - |
|
|
222
|
+
|
|
223
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
224
|
+
|
|
225
|
+
# **userManageAdminServiceSetUserStatus**
|
|
226
|
+
> SetUserStatusResponse userManageAdminServiceSetUserStatus(setUserStatusRequest)
|
|
227
|
+
|
|
228
|
+
设置用户状态(启用/禁用)
|
|
229
|
+
|
|
230
|
+
### Example
|
|
231
|
+
|
|
232
|
+
```typescript
|
|
233
|
+
import {
|
|
234
|
+
UserManageAdminServiceApi,
|
|
235
|
+
Configuration,
|
|
236
|
+
SetUserStatusRequest
|
|
237
|
+
} from '@cherryin/api-client';
|
|
238
|
+
|
|
239
|
+
const configuration = new Configuration();
|
|
240
|
+
const apiInstance = new UserManageAdminServiceApi(configuration);
|
|
241
|
+
|
|
242
|
+
let setUserStatusRequest: SetUserStatusRequest; //
|
|
243
|
+
|
|
244
|
+
const { status, data } = await apiInstance.userManageAdminServiceSetUserStatus(
|
|
245
|
+
setUserStatusRequest
|
|
246
|
+
);
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
### Parameters
|
|
250
|
+
|
|
251
|
+
|Name | Type | Description | Notes|
|
|
252
|
+
|------------- | ------------- | ------------- | -------------|
|
|
253
|
+
| **setUserStatusRequest** | **SetUserStatusRequest**| | |
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
### Return type
|
|
257
|
+
|
|
258
|
+
**SetUserStatusResponse**
|
|
259
|
+
|
|
260
|
+
### Authorization
|
|
261
|
+
|
|
262
|
+
No authorization required
|
|
263
|
+
|
|
264
|
+
### HTTP request headers
|
|
265
|
+
|
|
266
|
+
- **Content-Type**: application/json
|
|
267
|
+
- **Accept**: application/json
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
### HTTP response details
|
|
271
|
+
| Status code | Description | Response headers |
|
|
272
|
+
|-------------|-------------|------------------|
|
|
273
|
+
|**200** | OK | - |
|
|
274
|
+
|**0** | Default error response | - |
|
|
275
|
+
|
|
276
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
277
|
+
|
|
278
|
+
# **userManageAdminServiceUpdateUserInfo**
|
|
279
|
+
> UpdateUserInfoResponse userManageAdminServiceUpdateUserInfo(updateUserInfoRequest)
|
|
280
|
+
|
|
281
|
+
更新用户信息
|
|
282
|
+
|
|
283
|
+
### Example
|
|
284
|
+
|
|
285
|
+
```typescript
|
|
286
|
+
import {
|
|
287
|
+
UserManageAdminServiceApi,
|
|
288
|
+
Configuration,
|
|
289
|
+
UpdateUserInfoRequest
|
|
290
|
+
} from '@cherryin/api-client';
|
|
291
|
+
|
|
292
|
+
const configuration = new Configuration();
|
|
293
|
+
const apiInstance = new UserManageAdminServiceApi(configuration);
|
|
294
|
+
|
|
295
|
+
let updateUserInfoRequest: UpdateUserInfoRequest; //
|
|
296
|
+
|
|
297
|
+
const { status, data } = await apiInstance.userManageAdminServiceUpdateUserInfo(
|
|
298
|
+
updateUserInfoRequest
|
|
299
|
+
);
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
### Parameters
|
|
303
|
+
|
|
304
|
+
|Name | Type | Description | Notes|
|
|
305
|
+
|------------- | ------------- | ------------- | -------------|
|
|
306
|
+
| **updateUserInfoRequest** | **UpdateUserInfoRequest**| | |
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
### Return type
|
|
310
|
+
|
|
311
|
+
**UpdateUserInfoResponse**
|
|
312
|
+
|
|
313
|
+
### Authorization
|
|
314
|
+
|
|
315
|
+
No authorization required
|
|
316
|
+
|
|
317
|
+
### HTTP request headers
|
|
318
|
+
|
|
319
|
+
- **Content-Type**: application/json
|
|
320
|
+
- **Accept**: application/json
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
### HTTP response details
|
|
324
|
+
| Status code | Description | Response headers |
|
|
325
|
+
|-------------|-------------|------------------|
|
|
326
|
+
|**200** | OK | - |
|
|
327
|
+
|**0** | Default error response | - |
|
|
328
|
+
|
|
329
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
330
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# UserManageAuthMethod
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**auth_type** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**auth_id** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**is_primary** | **boolean** | | [optional] [default to undefined]
|
|
12
|
+
**auth_status** | **number** | | [optional] [default to undefined]
|
|
13
|
+
**last_used_at** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { UserManageAuthMethod } from '@cherryin/api-client';
|
|
20
|
+
|
|
21
|
+
const instance: UserManageAuthMethod = {
|
|
22
|
+
id,
|
|
23
|
+
auth_type,
|
|
24
|
+
auth_id,
|
|
25
|
+
is_primary,
|
|
26
|
+
auth_status,
|
|
27
|
+
last_used_at,
|
|
28
|
+
created_at,
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# UserManageBalance
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**balance_code** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**prepaid_balance_total** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**prepaid_balance_used** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**prepaid_balance_frozen** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**bonus_balance_total** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**bonus_balance_used** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**bonus_balance_frozen** | **string** | | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { UserManageBalance } from '@cherryin/api-client';
|
|
20
|
+
|
|
21
|
+
const instance: UserManageBalance = {
|
|
22
|
+
balance_code,
|
|
23
|
+
prepaid_balance_total,
|
|
24
|
+
prepaid_balance_used,
|
|
25
|
+
prepaid_balance_frozen,
|
|
26
|
+
bonus_balance_total,
|
|
27
|
+
bonus_balance_used,
|
|
28
|
+
bonus_balance_frozen,
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|