@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
package/api.ts
CHANGED
|
@@ -707,6 +707,15 @@ export interface AuthListSessionsResponse {
|
|
|
707
707
|
'message'?: string;
|
|
708
708
|
'sessions'?: Array<Auth2Session>;
|
|
709
709
|
}
|
|
710
|
+
export interface AuthOAuth2CallbackResponse {
|
|
711
|
+
'code'?: string;
|
|
712
|
+
'message'?: string;
|
|
713
|
+
'token'?: string;
|
|
714
|
+
'url'?: string;
|
|
715
|
+
'redirect'?: boolean;
|
|
716
|
+
'user'?: Auth2User;
|
|
717
|
+
'is_linked'?: boolean;
|
|
718
|
+
}
|
|
710
719
|
export interface AuthRefreshTokenRequest {
|
|
711
720
|
'provider_id'?: string;
|
|
712
721
|
'account_id'?: string;
|
|
@@ -841,6 +850,16 @@ export interface AuthVerifyEmailResponse {
|
|
|
841
850
|
'message'?: string;
|
|
842
851
|
'user'?: Auth2User;
|
|
843
852
|
}
|
|
853
|
+
export interface BatchUpdateSessionsRequest {
|
|
854
|
+
'uid'?: string;
|
|
855
|
+
'session_ids'?: Array<string>;
|
|
856
|
+
'action'?: number;
|
|
857
|
+
}
|
|
858
|
+
export interface BatchUpdateSessionsResponse {
|
|
859
|
+
'code'?: string;
|
|
860
|
+
'message'?: string;
|
|
861
|
+
'affected_count'?: number;
|
|
862
|
+
}
|
|
844
863
|
export interface ConfigItem {
|
|
845
864
|
'id'?: string;
|
|
846
865
|
'key'?: string;
|
|
@@ -1046,6 +1065,11 @@ export interface GCPAuth {
|
|
|
1046
1065
|
*/
|
|
1047
1066
|
'backend'?: number;
|
|
1048
1067
|
}
|
|
1068
|
+
export interface GetUserDetailResponse {
|
|
1069
|
+
'code'?: string;
|
|
1070
|
+
'message'?: string;
|
|
1071
|
+
'user'?: UserManageDetail;
|
|
1072
|
+
}
|
|
1049
1073
|
/**
|
|
1050
1074
|
* Contains an arbitrary serialized message along with a @type that describes the type of the serialized message.
|
|
1051
1075
|
*/
|
|
@@ -1172,6 +1196,34 @@ export interface LabelUpdateResponse {
|
|
|
1172
1196
|
*/
|
|
1173
1197
|
'data'?: Label;
|
|
1174
1198
|
}
|
|
1199
|
+
export interface ListUsersRequest {
|
|
1200
|
+
/**
|
|
1201
|
+
* 分页参数
|
|
1202
|
+
*/
|
|
1203
|
+
'page'?: number;
|
|
1204
|
+
'page_size'?: number;
|
|
1205
|
+
/**
|
|
1206
|
+
* 过滤条件
|
|
1207
|
+
*/
|
|
1208
|
+
'uids'?: Array<string>;
|
|
1209
|
+
'display_name'?: string;
|
|
1210
|
+
'email'?: string;
|
|
1211
|
+
'user_statuses'?: Array<number>;
|
|
1212
|
+
'user_roles'?: Array<number>;
|
|
1213
|
+
/**
|
|
1214
|
+
* 排序
|
|
1215
|
+
*/
|
|
1216
|
+
'order_by'?: string;
|
|
1217
|
+
'order_dir'?: string;
|
|
1218
|
+
}
|
|
1219
|
+
export interface ListUsersResponse {
|
|
1220
|
+
'code'?: string;
|
|
1221
|
+
'message'?: string;
|
|
1222
|
+
'users'?: Array<UserManageItem>;
|
|
1223
|
+
'total'?: string;
|
|
1224
|
+
'page'?: number;
|
|
1225
|
+
'page_size'?: number;
|
|
1226
|
+
}
|
|
1175
1227
|
/**
|
|
1176
1228
|
* MultimodalPricing 多模态计费 Multimodal pricing
|
|
1177
1229
|
*/
|
|
@@ -1686,6 +1738,25 @@ export interface RequestPricing {
|
|
|
1686
1738
|
*/
|
|
1687
1739
|
'per_thousand_requests'?: string;
|
|
1688
1740
|
}
|
|
1741
|
+
export interface SetUserRoleRequest {
|
|
1742
|
+
'uid'?: string;
|
|
1743
|
+
'new_role'?: number;
|
|
1744
|
+
}
|
|
1745
|
+
export interface SetUserRoleResponse {
|
|
1746
|
+
'code'?: string;
|
|
1747
|
+
'message'?: string;
|
|
1748
|
+
'success'?: boolean;
|
|
1749
|
+
}
|
|
1750
|
+
export interface SetUserStatusRequest {
|
|
1751
|
+
'uid'?: string;
|
|
1752
|
+
'new_status'?: number;
|
|
1753
|
+
}
|
|
1754
|
+
export interface SetUserStatusResponse {
|
|
1755
|
+
'code'?: string;
|
|
1756
|
+
'message'?: string;
|
|
1757
|
+
'success'?: boolean;
|
|
1758
|
+
'revoked_sessions'?: number;
|
|
1759
|
+
}
|
|
1689
1760
|
/**
|
|
1690
1761
|
* The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
|
|
1691
1762
|
*/
|
|
@@ -1771,6 +1842,17 @@ export interface TokenTier {
|
|
|
1771
1842
|
*/
|
|
1772
1843
|
'price_per_million'?: string;
|
|
1773
1844
|
}
|
|
1845
|
+
export interface UpdateUserInfoRequest {
|
|
1846
|
+
'uid'?: string;
|
|
1847
|
+
'display_name'?: string;
|
|
1848
|
+
'email'?: string;
|
|
1849
|
+
'password'?: string;
|
|
1850
|
+
}
|
|
1851
|
+
export interface UpdateUserInfoResponse {
|
|
1852
|
+
'code'?: string;
|
|
1853
|
+
'message'?: string;
|
|
1854
|
+
'success'?: boolean;
|
|
1855
|
+
}
|
|
1774
1856
|
/**
|
|
1775
1857
|
* UserAPIKey 代表用户的 API 密钥 UserAPIKey represents a user\'s API key
|
|
1776
1858
|
*/
|
|
@@ -2157,6 +2239,101 @@ export interface UserLabelPairChangeResponse {
|
|
|
2157
2239
|
*/
|
|
2158
2240
|
'message'?: string;
|
|
2159
2241
|
}
|
|
2242
|
+
export interface UserManageAPIKey {
|
|
2243
|
+
'id'?: string;
|
|
2244
|
+
'name'?: string;
|
|
2245
|
+
'key_group'?: string;
|
|
2246
|
+
'balance_code'?: string;
|
|
2247
|
+
'quota_total'?: string;
|
|
2248
|
+
'quota_used'?: string;
|
|
2249
|
+
'quota_mode'?: number;
|
|
2250
|
+
'key_status'?: number;
|
|
2251
|
+
'expires_at'?: string;
|
|
2252
|
+
'created_at'?: string;
|
|
2253
|
+
}
|
|
2254
|
+
export interface UserManageAuthMethod {
|
|
2255
|
+
'id'?: string;
|
|
2256
|
+
'auth_type'?: string;
|
|
2257
|
+
'auth_id'?: string;
|
|
2258
|
+
'is_primary'?: boolean;
|
|
2259
|
+
'auth_status'?: number;
|
|
2260
|
+
'last_used_at'?: string;
|
|
2261
|
+
'created_at'?: string;
|
|
2262
|
+
}
|
|
2263
|
+
export interface UserManageBalance {
|
|
2264
|
+
'balance_code'?: string;
|
|
2265
|
+
'prepaid_balance_total'?: string;
|
|
2266
|
+
'prepaid_balance_used'?: string;
|
|
2267
|
+
'prepaid_balance_frozen'?: string;
|
|
2268
|
+
'bonus_balance_total'?: string;
|
|
2269
|
+
'bonus_balance_used'?: string;
|
|
2270
|
+
'bonus_balance_frozen'?: string;
|
|
2271
|
+
}
|
|
2272
|
+
/**
|
|
2273
|
+
* 用户管理详情(完整信息)
|
|
2274
|
+
*/
|
|
2275
|
+
export interface UserManageDetail {
|
|
2276
|
+
/**
|
|
2277
|
+
* 基本信息
|
|
2278
|
+
*/
|
|
2279
|
+
'uid'?: string;
|
|
2280
|
+
'display_name'?: string;
|
|
2281
|
+
'email'?: string;
|
|
2282
|
+
'avatar_url'?: string;
|
|
2283
|
+
'user_role'?: number;
|
|
2284
|
+
'user_status'?: number;
|
|
2285
|
+
'user_group'?: string;
|
|
2286
|
+
'created_at'?: string;
|
|
2287
|
+
'updated_at'?: string;
|
|
2288
|
+
/**
|
|
2289
|
+
* 设置信息
|
|
2290
|
+
*/
|
|
2291
|
+
'settings'?: UserManageSettings;
|
|
2292
|
+
/**
|
|
2293
|
+
* 余额信息
|
|
2294
|
+
*/
|
|
2295
|
+
'balance'?: UserManageBalance;
|
|
2296
|
+
/**
|
|
2297
|
+
* API Key 配额信息
|
|
2298
|
+
*/
|
|
2299
|
+
'api_keys'?: Array<UserManageAPIKey>;
|
|
2300
|
+
/**
|
|
2301
|
+
* 认证方式列表
|
|
2302
|
+
*/
|
|
2303
|
+
'auth_methods'?: Array<UserManageAuthMethod>;
|
|
2304
|
+
/**
|
|
2305
|
+
* Session 列表
|
|
2306
|
+
*/
|
|
2307
|
+
'sessions'?: Array<UserManageSession>;
|
|
2308
|
+
}
|
|
2309
|
+
/**
|
|
2310
|
+
* 用户管理列表项(精简信息)
|
|
2311
|
+
*/
|
|
2312
|
+
export interface UserManageItem {
|
|
2313
|
+
'uid'?: string;
|
|
2314
|
+
'display_name'?: string;
|
|
2315
|
+
'email'?: string;
|
|
2316
|
+
'avatar_url'?: string;
|
|
2317
|
+
'user_role'?: number;
|
|
2318
|
+
'user_status'?: number;
|
|
2319
|
+
'user_group'?: string;
|
|
2320
|
+
'created_at'?: string;
|
|
2321
|
+
'updated_at'?: string;
|
|
2322
|
+
'auth_types'?: Array<string>;
|
|
2323
|
+
}
|
|
2324
|
+
export interface UserManageSession {
|
|
2325
|
+
'id'?: string;
|
|
2326
|
+
'session_type'?: string;
|
|
2327
|
+
'ip_address'?: string;
|
|
2328
|
+
'user_agent'?: string;
|
|
2329
|
+
'active_at'?: string;
|
|
2330
|
+
'expires_at'?: string;
|
|
2331
|
+
'created_at'?: string;
|
|
2332
|
+
'is_current'?: boolean;
|
|
2333
|
+
}
|
|
2334
|
+
export interface UserManageSettings {
|
|
2335
|
+
'email_notifications_enabled'?: boolean;
|
|
2336
|
+
}
|
|
2160
2337
|
export interface UserMeInfo {
|
|
2161
2338
|
'info'?: UserInfo;
|
|
2162
2339
|
'settings'?: UserSettings;
|
|
@@ -3913,6 +4090,49 @@ export const Auth2UserServiceApiAxiosParamCreator = function (configuration?: Co
|
|
|
3913
4090
|
|
|
3914
4091
|
|
|
3915
4092
|
|
|
4093
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4094
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4095
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4096
|
+
|
|
4097
|
+
return {
|
|
4098
|
+
url: toPathString(localVarUrlObj),
|
|
4099
|
+
options: localVarRequestOptions,
|
|
4100
|
+
};
|
|
4101
|
+
},
|
|
4102
|
+
/**
|
|
4103
|
+
*
|
|
4104
|
+
* @param {string} platform
|
|
4105
|
+
* @param {string} [code]
|
|
4106
|
+
* @param {string} [state]
|
|
4107
|
+
* @param {*} [options] Override http request option.
|
|
4108
|
+
* @throws {RequiredError}
|
|
4109
|
+
*/
|
|
4110
|
+
auth2UserServiceAuthOAuth2Callback: async (platform: string, code?: string, state?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4111
|
+
// verify required parameter 'platform' is not null or undefined
|
|
4112
|
+
assertParamExists('auth2UserServiceAuthOAuth2Callback', 'platform', platform)
|
|
4113
|
+
const localVarPath = `/oauth2/{platform}/callback`
|
|
4114
|
+
.replace(`{${"platform"}}`, encodeURIComponent(String(platform)));
|
|
4115
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4116
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4117
|
+
let baseOptions;
|
|
4118
|
+
if (configuration) {
|
|
4119
|
+
baseOptions = configuration.baseOptions;
|
|
4120
|
+
}
|
|
4121
|
+
|
|
4122
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4123
|
+
const localVarHeaderParameter = {} as any;
|
|
4124
|
+
const localVarQueryParameter = {} as any;
|
|
4125
|
+
|
|
4126
|
+
if (code !== undefined) {
|
|
4127
|
+
localVarQueryParameter['code'] = code;
|
|
4128
|
+
}
|
|
4129
|
+
|
|
4130
|
+
if (state !== undefined) {
|
|
4131
|
+
localVarQueryParameter['state'] = state;
|
|
4132
|
+
}
|
|
4133
|
+
|
|
4134
|
+
|
|
4135
|
+
|
|
3916
4136
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3917
4137
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3918
4138
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -4534,6 +4754,20 @@ export const Auth2UserServiceApiFp = function(configuration?: Configuration) {
|
|
|
4534
4754
|
const localVarOperationServerBasePath = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthListSessions']?.[localVarOperationServerIndex]?.url;
|
|
4535
4755
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4536
4756
|
},
|
|
4757
|
+
/**
|
|
4758
|
+
*
|
|
4759
|
+
* @param {string} platform
|
|
4760
|
+
* @param {string} [code]
|
|
4761
|
+
* @param {string} [state]
|
|
4762
|
+
* @param {*} [options] Override http request option.
|
|
4763
|
+
* @throws {RequiredError}
|
|
4764
|
+
*/
|
|
4765
|
+
async auth2UserServiceAuthOAuth2Callback(platform: string, code?: string, state?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthOAuth2CallbackResponse>> {
|
|
4766
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.auth2UserServiceAuthOAuth2Callback(platform, code, state, options);
|
|
4767
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4768
|
+
const localVarOperationServerBasePath = operationServerMap['Auth2UserServiceApi.auth2UserServiceAuthOAuth2Callback']?.[localVarOperationServerIndex]?.url;
|
|
4769
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4770
|
+
},
|
|
4537
4771
|
/**
|
|
4538
4772
|
* ============ Token 管理 ============
|
|
4539
4773
|
* @param {AuthRefreshTokenRequest} authRefreshTokenRequest
|
|
@@ -4790,6 +5024,17 @@ export const Auth2UserServiceApiFactory = function (configuration?: Configuratio
|
|
|
4790
5024
|
auth2UserServiceAuthListSessions(options?: RawAxiosRequestConfig): AxiosPromise<AuthListSessionsResponse> {
|
|
4791
5025
|
return localVarFp.auth2UserServiceAuthListSessions(options).then((request) => request(axios, basePath));
|
|
4792
5026
|
},
|
|
5027
|
+
/**
|
|
5028
|
+
*
|
|
5029
|
+
* @param {string} platform
|
|
5030
|
+
* @param {string} [code]
|
|
5031
|
+
* @param {string} [state]
|
|
5032
|
+
* @param {*} [options] Override http request option.
|
|
5033
|
+
* @throws {RequiredError}
|
|
5034
|
+
*/
|
|
5035
|
+
auth2UserServiceAuthOAuth2Callback(platform: string, code?: string, state?: string, options?: RawAxiosRequestConfig): AxiosPromise<AuthOAuth2CallbackResponse> {
|
|
5036
|
+
return localVarFp.auth2UserServiceAuthOAuth2Callback(platform, code, state, options).then((request) => request(axios, basePath));
|
|
5037
|
+
},
|
|
4793
5038
|
/**
|
|
4794
5039
|
* ============ Token 管理 ============
|
|
4795
5040
|
* @param {AuthRefreshTokenRequest} authRefreshTokenRequest
|
|
@@ -4993,6 +5238,16 @@ export interface Auth2UserServiceApiInterface {
|
|
|
4993
5238
|
*/
|
|
4994
5239
|
auth2UserServiceAuthListSessions(options?: RawAxiosRequestConfig): AxiosPromise<AuthListSessionsResponse>;
|
|
4995
5240
|
|
|
5241
|
+
/**
|
|
5242
|
+
*
|
|
5243
|
+
* @param {string} platform
|
|
5244
|
+
* @param {string} [code]
|
|
5245
|
+
* @param {string} [state]
|
|
5246
|
+
* @param {*} [options] Override http request option.
|
|
5247
|
+
* @throws {RequiredError}
|
|
5248
|
+
*/
|
|
5249
|
+
auth2UserServiceAuthOAuth2Callback(platform: string, code?: string, state?: string, options?: RawAxiosRequestConfig): AxiosPromise<AuthOAuth2CallbackResponse>;
|
|
5250
|
+
|
|
4996
5251
|
/**
|
|
4997
5252
|
* ============ Token 管理 ============
|
|
4998
5253
|
* @param {AuthRefreshTokenRequest} authRefreshTokenRequest
|
|
@@ -5199,6 +5454,18 @@ export class Auth2UserServiceApi extends BaseAPI implements Auth2UserServiceApiI
|
|
|
5199
5454
|
return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthListSessions(options).then((request) => request(this.axios, this.basePath));
|
|
5200
5455
|
}
|
|
5201
5456
|
|
|
5457
|
+
/**
|
|
5458
|
+
*
|
|
5459
|
+
* @param {string} platform
|
|
5460
|
+
* @param {string} [code]
|
|
5461
|
+
* @param {string} [state]
|
|
5462
|
+
* @param {*} [options] Override http request option.
|
|
5463
|
+
* @throws {RequiredError}
|
|
5464
|
+
*/
|
|
5465
|
+
public auth2UserServiceAuthOAuth2Callback(platform: string, code?: string, state?: string, options?: RawAxiosRequestConfig) {
|
|
5466
|
+
return Auth2UserServiceApiFp(this.configuration).auth2UserServiceAuthOAuth2Callback(platform, code, state, options).then((request) => request(this.axios, this.basePath));
|
|
5467
|
+
}
|
|
5468
|
+
|
|
5202
5469
|
/**
|
|
5203
5470
|
* ============ Token 管理 ============
|
|
5204
5471
|
* @param {AuthRefreshTokenRequest} authRefreshTokenRequest
|
|
@@ -5826,7 +6093,7 @@ export const ProviderAdminServiceApiAxiosParamCreator = function (configuration?
|
|
|
5826
6093
|
baseOptions = configuration.baseOptions;
|
|
5827
6094
|
}
|
|
5828
6095
|
|
|
5829
|
-
const localVarRequestOptions = { method: '
|
|
6096
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
5830
6097
|
const localVarHeaderParameter = {} as any;
|
|
5831
6098
|
const localVarQueryParameter = {} as any;
|
|
5832
6099
|
|
|
@@ -8562,6 +8829,488 @@ export class UserLabelServiceApi extends BaseAPI implements UserLabelServiceApiI
|
|
|
8562
8829
|
|
|
8563
8830
|
|
|
8564
8831
|
|
|
8832
|
+
/**
|
|
8833
|
+
* UserManageAdminServiceApi - axios parameter creator
|
|
8834
|
+
*/
|
|
8835
|
+
export const UserManageAdminServiceApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
8836
|
+
return {
|
|
8837
|
+
/**
|
|
8838
|
+
* 批量管理 Session
|
|
8839
|
+
* @param {BatchUpdateSessionsRequest} batchUpdateSessionsRequest
|
|
8840
|
+
* @param {*} [options] Override http request option.
|
|
8841
|
+
* @throws {RequiredError}
|
|
8842
|
+
*/
|
|
8843
|
+
userManageAdminServiceBatchUpdateSessions: async (batchUpdateSessionsRequest: BatchUpdateSessionsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8844
|
+
// verify required parameter 'batchUpdateSessionsRequest' is not null or undefined
|
|
8845
|
+
assertParamExists('userManageAdminServiceBatchUpdateSessions', 'batchUpdateSessionsRequest', batchUpdateSessionsRequest)
|
|
8846
|
+
const localVarPath = `/admin/users/manage/sessions`;
|
|
8847
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8848
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8849
|
+
let baseOptions;
|
|
8850
|
+
if (configuration) {
|
|
8851
|
+
baseOptions = configuration.baseOptions;
|
|
8852
|
+
}
|
|
8853
|
+
|
|
8854
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
8855
|
+
const localVarHeaderParameter = {} as any;
|
|
8856
|
+
const localVarQueryParameter = {} as any;
|
|
8857
|
+
|
|
8858
|
+
|
|
8859
|
+
|
|
8860
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8861
|
+
|
|
8862
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8863
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8864
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8865
|
+
localVarRequestOptions.data = serializeDataIfNeeded(batchUpdateSessionsRequest, localVarRequestOptions, configuration)
|
|
8866
|
+
|
|
8867
|
+
return {
|
|
8868
|
+
url: toPathString(localVarUrlObj),
|
|
8869
|
+
options: localVarRequestOptions,
|
|
8870
|
+
};
|
|
8871
|
+
},
|
|
8872
|
+
/**
|
|
8873
|
+
* 用户详情
|
|
8874
|
+
* @param {string} [uid] @gotags: form:\"uid\" binding:\"uid\"
|
|
8875
|
+
* @param {*} [options] Override http request option.
|
|
8876
|
+
* @throws {RequiredError}
|
|
8877
|
+
*/
|
|
8878
|
+
userManageAdminServiceGetUserDetail: async (uid?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8879
|
+
const localVarPath = `/admin/users/detail`;
|
|
8880
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8881
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8882
|
+
let baseOptions;
|
|
8883
|
+
if (configuration) {
|
|
8884
|
+
baseOptions = configuration.baseOptions;
|
|
8885
|
+
}
|
|
8886
|
+
|
|
8887
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
8888
|
+
const localVarHeaderParameter = {} as any;
|
|
8889
|
+
const localVarQueryParameter = {} as any;
|
|
8890
|
+
|
|
8891
|
+
if (uid !== undefined) {
|
|
8892
|
+
localVarQueryParameter['uid'] = uid;
|
|
8893
|
+
}
|
|
8894
|
+
|
|
8895
|
+
|
|
8896
|
+
|
|
8897
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8898
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8899
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8900
|
+
|
|
8901
|
+
return {
|
|
8902
|
+
url: toPathString(localVarUrlObj),
|
|
8903
|
+
options: localVarRequestOptions,
|
|
8904
|
+
};
|
|
8905
|
+
},
|
|
8906
|
+
/**
|
|
8907
|
+
* 用户列表(分页查询)
|
|
8908
|
+
* @param {ListUsersRequest} listUsersRequest
|
|
8909
|
+
* @param {*} [options] Override http request option.
|
|
8910
|
+
* @throws {RequiredError}
|
|
8911
|
+
*/
|
|
8912
|
+
userManageAdminServiceListUsers: async (listUsersRequest: ListUsersRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8913
|
+
// verify required parameter 'listUsersRequest' is not null or undefined
|
|
8914
|
+
assertParamExists('userManageAdminServiceListUsers', 'listUsersRequest', listUsersRequest)
|
|
8915
|
+
const localVarPath = `/admin/users/list`;
|
|
8916
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8917
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8918
|
+
let baseOptions;
|
|
8919
|
+
if (configuration) {
|
|
8920
|
+
baseOptions = configuration.baseOptions;
|
|
8921
|
+
}
|
|
8922
|
+
|
|
8923
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
8924
|
+
const localVarHeaderParameter = {} as any;
|
|
8925
|
+
const localVarQueryParameter = {} as any;
|
|
8926
|
+
|
|
8927
|
+
|
|
8928
|
+
|
|
8929
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8930
|
+
|
|
8931
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8932
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8933
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8934
|
+
localVarRequestOptions.data = serializeDataIfNeeded(listUsersRequest, localVarRequestOptions, configuration)
|
|
8935
|
+
|
|
8936
|
+
return {
|
|
8937
|
+
url: toPathString(localVarUrlObj),
|
|
8938
|
+
options: localVarRequestOptions,
|
|
8939
|
+
};
|
|
8940
|
+
},
|
|
8941
|
+
/**
|
|
8942
|
+
* 设置用户角色
|
|
8943
|
+
* @param {SetUserRoleRequest} setUserRoleRequest
|
|
8944
|
+
* @param {*} [options] Override http request option.
|
|
8945
|
+
* @throws {RequiredError}
|
|
8946
|
+
*/
|
|
8947
|
+
userManageAdminServiceSetUserRole: async (setUserRoleRequest: SetUserRoleRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8948
|
+
// verify required parameter 'setUserRoleRequest' is not null or undefined
|
|
8949
|
+
assertParamExists('userManageAdminServiceSetUserRole', 'setUserRoleRequest', setUserRoleRequest)
|
|
8950
|
+
const localVarPath = `/admin/users/manage/role`;
|
|
8951
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8952
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8953
|
+
let baseOptions;
|
|
8954
|
+
if (configuration) {
|
|
8955
|
+
baseOptions = configuration.baseOptions;
|
|
8956
|
+
}
|
|
8957
|
+
|
|
8958
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
8959
|
+
const localVarHeaderParameter = {} as any;
|
|
8960
|
+
const localVarQueryParameter = {} as any;
|
|
8961
|
+
|
|
8962
|
+
|
|
8963
|
+
|
|
8964
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8965
|
+
|
|
8966
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8967
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8968
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8969
|
+
localVarRequestOptions.data = serializeDataIfNeeded(setUserRoleRequest, localVarRequestOptions, configuration)
|
|
8970
|
+
|
|
8971
|
+
return {
|
|
8972
|
+
url: toPathString(localVarUrlObj),
|
|
8973
|
+
options: localVarRequestOptions,
|
|
8974
|
+
};
|
|
8975
|
+
},
|
|
8976
|
+
/**
|
|
8977
|
+
* 设置用户状态(启用/禁用)
|
|
8978
|
+
* @param {SetUserStatusRequest} setUserStatusRequest
|
|
8979
|
+
* @param {*} [options] Override http request option.
|
|
8980
|
+
* @throws {RequiredError}
|
|
8981
|
+
*/
|
|
8982
|
+
userManageAdminServiceSetUserStatus: async (setUserStatusRequest: SetUserStatusRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8983
|
+
// verify required parameter 'setUserStatusRequest' is not null or undefined
|
|
8984
|
+
assertParamExists('userManageAdminServiceSetUserStatus', 'setUserStatusRequest', setUserStatusRequest)
|
|
8985
|
+
const localVarPath = `/admin/users/manage/status`;
|
|
8986
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8987
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8988
|
+
let baseOptions;
|
|
8989
|
+
if (configuration) {
|
|
8990
|
+
baseOptions = configuration.baseOptions;
|
|
8991
|
+
}
|
|
8992
|
+
|
|
8993
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
8994
|
+
const localVarHeaderParameter = {} as any;
|
|
8995
|
+
const localVarQueryParameter = {} as any;
|
|
8996
|
+
|
|
8997
|
+
|
|
8998
|
+
|
|
8999
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9000
|
+
|
|
9001
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9002
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9003
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9004
|
+
localVarRequestOptions.data = serializeDataIfNeeded(setUserStatusRequest, localVarRequestOptions, configuration)
|
|
9005
|
+
|
|
9006
|
+
return {
|
|
9007
|
+
url: toPathString(localVarUrlObj),
|
|
9008
|
+
options: localVarRequestOptions,
|
|
9009
|
+
};
|
|
9010
|
+
},
|
|
9011
|
+
/**
|
|
9012
|
+
* 更新用户信息
|
|
9013
|
+
* @param {UpdateUserInfoRequest} updateUserInfoRequest
|
|
9014
|
+
* @param {*} [options] Override http request option.
|
|
9015
|
+
* @throws {RequiredError}
|
|
9016
|
+
*/
|
|
9017
|
+
userManageAdminServiceUpdateUserInfo: async (updateUserInfoRequest: UpdateUserInfoRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9018
|
+
// verify required parameter 'updateUserInfoRequest' is not null or undefined
|
|
9019
|
+
assertParamExists('userManageAdminServiceUpdateUserInfo', 'updateUserInfoRequest', updateUserInfoRequest)
|
|
9020
|
+
const localVarPath = `/admin/users/manage/info`;
|
|
9021
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9022
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9023
|
+
let baseOptions;
|
|
9024
|
+
if (configuration) {
|
|
9025
|
+
baseOptions = configuration.baseOptions;
|
|
9026
|
+
}
|
|
9027
|
+
|
|
9028
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
9029
|
+
const localVarHeaderParameter = {} as any;
|
|
9030
|
+
const localVarQueryParameter = {} as any;
|
|
9031
|
+
|
|
9032
|
+
|
|
9033
|
+
|
|
9034
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9035
|
+
|
|
9036
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9037
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9038
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9039
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateUserInfoRequest, localVarRequestOptions, configuration)
|
|
9040
|
+
|
|
9041
|
+
return {
|
|
9042
|
+
url: toPathString(localVarUrlObj),
|
|
9043
|
+
options: localVarRequestOptions,
|
|
9044
|
+
};
|
|
9045
|
+
},
|
|
9046
|
+
}
|
|
9047
|
+
};
|
|
9048
|
+
|
|
9049
|
+
/**
|
|
9050
|
+
* UserManageAdminServiceApi - functional programming interface
|
|
9051
|
+
*/
|
|
9052
|
+
export const UserManageAdminServiceApiFp = function(configuration?: Configuration) {
|
|
9053
|
+
const localVarAxiosParamCreator = UserManageAdminServiceApiAxiosParamCreator(configuration)
|
|
9054
|
+
return {
|
|
9055
|
+
/**
|
|
9056
|
+
* 批量管理 Session
|
|
9057
|
+
* @param {BatchUpdateSessionsRequest} batchUpdateSessionsRequest
|
|
9058
|
+
* @param {*} [options] Override http request option.
|
|
9059
|
+
* @throws {RequiredError}
|
|
9060
|
+
*/
|
|
9061
|
+
async userManageAdminServiceBatchUpdateSessions(batchUpdateSessionsRequest: BatchUpdateSessionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BatchUpdateSessionsResponse>> {
|
|
9062
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.userManageAdminServiceBatchUpdateSessions(batchUpdateSessionsRequest, options);
|
|
9063
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9064
|
+
const localVarOperationServerBasePath = operationServerMap['UserManageAdminServiceApi.userManageAdminServiceBatchUpdateSessions']?.[localVarOperationServerIndex]?.url;
|
|
9065
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9066
|
+
},
|
|
9067
|
+
/**
|
|
9068
|
+
* 用户详情
|
|
9069
|
+
* @param {string} [uid] @gotags: form:\"uid\" binding:\"uid\"
|
|
9070
|
+
* @param {*} [options] Override http request option.
|
|
9071
|
+
* @throws {RequiredError}
|
|
9072
|
+
*/
|
|
9073
|
+
async userManageAdminServiceGetUserDetail(uid?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUserDetailResponse>> {
|
|
9074
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.userManageAdminServiceGetUserDetail(uid, options);
|
|
9075
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9076
|
+
const localVarOperationServerBasePath = operationServerMap['UserManageAdminServiceApi.userManageAdminServiceGetUserDetail']?.[localVarOperationServerIndex]?.url;
|
|
9077
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9078
|
+
},
|
|
9079
|
+
/**
|
|
9080
|
+
* 用户列表(分页查询)
|
|
9081
|
+
* @param {ListUsersRequest} listUsersRequest
|
|
9082
|
+
* @param {*} [options] Override http request option.
|
|
9083
|
+
* @throws {RequiredError}
|
|
9084
|
+
*/
|
|
9085
|
+
async userManageAdminServiceListUsers(listUsersRequest: ListUsersRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListUsersResponse>> {
|
|
9086
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.userManageAdminServiceListUsers(listUsersRequest, options);
|
|
9087
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9088
|
+
const localVarOperationServerBasePath = operationServerMap['UserManageAdminServiceApi.userManageAdminServiceListUsers']?.[localVarOperationServerIndex]?.url;
|
|
9089
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9090
|
+
},
|
|
9091
|
+
/**
|
|
9092
|
+
* 设置用户角色
|
|
9093
|
+
* @param {SetUserRoleRequest} setUserRoleRequest
|
|
9094
|
+
* @param {*} [options] Override http request option.
|
|
9095
|
+
* @throws {RequiredError}
|
|
9096
|
+
*/
|
|
9097
|
+
async userManageAdminServiceSetUserRole(setUserRoleRequest: SetUserRoleRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SetUserRoleResponse>> {
|
|
9098
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.userManageAdminServiceSetUserRole(setUserRoleRequest, options);
|
|
9099
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9100
|
+
const localVarOperationServerBasePath = operationServerMap['UserManageAdminServiceApi.userManageAdminServiceSetUserRole']?.[localVarOperationServerIndex]?.url;
|
|
9101
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9102
|
+
},
|
|
9103
|
+
/**
|
|
9104
|
+
* 设置用户状态(启用/禁用)
|
|
9105
|
+
* @param {SetUserStatusRequest} setUserStatusRequest
|
|
9106
|
+
* @param {*} [options] Override http request option.
|
|
9107
|
+
* @throws {RequiredError}
|
|
9108
|
+
*/
|
|
9109
|
+
async userManageAdminServiceSetUserStatus(setUserStatusRequest: SetUserStatusRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SetUserStatusResponse>> {
|
|
9110
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.userManageAdminServiceSetUserStatus(setUserStatusRequest, options);
|
|
9111
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9112
|
+
const localVarOperationServerBasePath = operationServerMap['UserManageAdminServiceApi.userManageAdminServiceSetUserStatus']?.[localVarOperationServerIndex]?.url;
|
|
9113
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9114
|
+
},
|
|
9115
|
+
/**
|
|
9116
|
+
* 更新用户信息
|
|
9117
|
+
* @param {UpdateUserInfoRequest} updateUserInfoRequest
|
|
9118
|
+
* @param {*} [options] Override http request option.
|
|
9119
|
+
* @throws {RequiredError}
|
|
9120
|
+
*/
|
|
9121
|
+
async userManageAdminServiceUpdateUserInfo(updateUserInfoRequest: UpdateUserInfoRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateUserInfoResponse>> {
|
|
9122
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.userManageAdminServiceUpdateUserInfo(updateUserInfoRequest, options);
|
|
9123
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9124
|
+
const localVarOperationServerBasePath = operationServerMap['UserManageAdminServiceApi.userManageAdminServiceUpdateUserInfo']?.[localVarOperationServerIndex]?.url;
|
|
9125
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9126
|
+
},
|
|
9127
|
+
}
|
|
9128
|
+
};
|
|
9129
|
+
|
|
9130
|
+
/**
|
|
9131
|
+
* UserManageAdminServiceApi - factory interface
|
|
9132
|
+
*/
|
|
9133
|
+
export const UserManageAdminServiceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
9134
|
+
const localVarFp = UserManageAdminServiceApiFp(configuration)
|
|
9135
|
+
return {
|
|
9136
|
+
/**
|
|
9137
|
+
* 批量管理 Session
|
|
9138
|
+
* @param {BatchUpdateSessionsRequest} batchUpdateSessionsRequest
|
|
9139
|
+
* @param {*} [options] Override http request option.
|
|
9140
|
+
* @throws {RequiredError}
|
|
9141
|
+
*/
|
|
9142
|
+
userManageAdminServiceBatchUpdateSessions(batchUpdateSessionsRequest: BatchUpdateSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<BatchUpdateSessionsResponse> {
|
|
9143
|
+
return localVarFp.userManageAdminServiceBatchUpdateSessions(batchUpdateSessionsRequest, options).then((request) => request(axios, basePath));
|
|
9144
|
+
},
|
|
9145
|
+
/**
|
|
9146
|
+
* 用户详情
|
|
9147
|
+
* @param {string} [uid] @gotags: form:\"uid\" binding:\"uid\"
|
|
9148
|
+
* @param {*} [options] Override http request option.
|
|
9149
|
+
* @throws {RequiredError}
|
|
9150
|
+
*/
|
|
9151
|
+
userManageAdminServiceGetUserDetail(uid?: string, options?: RawAxiosRequestConfig): AxiosPromise<GetUserDetailResponse> {
|
|
9152
|
+
return localVarFp.userManageAdminServiceGetUserDetail(uid, options).then((request) => request(axios, basePath));
|
|
9153
|
+
},
|
|
9154
|
+
/**
|
|
9155
|
+
* 用户列表(分页查询)
|
|
9156
|
+
* @param {ListUsersRequest} listUsersRequest
|
|
9157
|
+
* @param {*} [options] Override http request option.
|
|
9158
|
+
* @throws {RequiredError}
|
|
9159
|
+
*/
|
|
9160
|
+
userManageAdminServiceListUsers(listUsersRequest: ListUsersRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListUsersResponse> {
|
|
9161
|
+
return localVarFp.userManageAdminServiceListUsers(listUsersRequest, options).then((request) => request(axios, basePath));
|
|
9162
|
+
},
|
|
9163
|
+
/**
|
|
9164
|
+
* 设置用户角色
|
|
9165
|
+
* @param {SetUserRoleRequest} setUserRoleRequest
|
|
9166
|
+
* @param {*} [options] Override http request option.
|
|
9167
|
+
* @throws {RequiredError}
|
|
9168
|
+
*/
|
|
9169
|
+
userManageAdminServiceSetUserRole(setUserRoleRequest: SetUserRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<SetUserRoleResponse> {
|
|
9170
|
+
return localVarFp.userManageAdminServiceSetUserRole(setUserRoleRequest, options).then((request) => request(axios, basePath));
|
|
9171
|
+
},
|
|
9172
|
+
/**
|
|
9173
|
+
* 设置用户状态(启用/禁用)
|
|
9174
|
+
* @param {SetUserStatusRequest} setUserStatusRequest
|
|
9175
|
+
* @param {*} [options] Override http request option.
|
|
9176
|
+
* @throws {RequiredError}
|
|
9177
|
+
*/
|
|
9178
|
+
userManageAdminServiceSetUserStatus(setUserStatusRequest: SetUserStatusRequest, options?: RawAxiosRequestConfig): AxiosPromise<SetUserStatusResponse> {
|
|
9179
|
+
return localVarFp.userManageAdminServiceSetUserStatus(setUserStatusRequest, options).then((request) => request(axios, basePath));
|
|
9180
|
+
},
|
|
9181
|
+
/**
|
|
9182
|
+
* 更新用户信息
|
|
9183
|
+
* @param {UpdateUserInfoRequest} updateUserInfoRequest
|
|
9184
|
+
* @param {*} [options] Override http request option.
|
|
9185
|
+
* @throws {RequiredError}
|
|
9186
|
+
*/
|
|
9187
|
+
userManageAdminServiceUpdateUserInfo(updateUserInfoRequest: UpdateUserInfoRequest, options?: RawAxiosRequestConfig): AxiosPromise<UpdateUserInfoResponse> {
|
|
9188
|
+
return localVarFp.userManageAdminServiceUpdateUserInfo(updateUserInfoRequest, options).then((request) => request(axios, basePath));
|
|
9189
|
+
},
|
|
9190
|
+
};
|
|
9191
|
+
};
|
|
9192
|
+
|
|
9193
|
+
/**
|
|
9194
|
+
* UserManageAdminServiceApi - interface
|
|
9195
|
+
*/
|
|
9196
|
+
export interface UserManageAdminServiceApiInterface {
|
|
9197
|
+
/**
|
|
9198
|
+
* 批量管理 Session
|
|
9199
|
+
* @param {BatchUpdateSessionsRequest} batchUpdateSessionsRequest
|
|
9200
|
+
* @param {*} [options] Override http request option.
|
|
9201
|
+
* @throws {RequiredError}
|
|
9202
|
+
*/
|
|
9203
|
+
userManageAdminServiceBatchUpdateSessions(batchUpdateSessionsRequest: BatchUpdateSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<BatchUpdateSessionsResponse>;
|
|
9204
|
+
|
|
9205
|
+
/**
|
|
9206
|
+
* 用户详情
|
|
9207
|
+
* @param {string} [uid] @gotags: form:\"uid\" binding:\"uid\"
|
|
9208
|
+
* @param {*} [options] Override http request option.
|
|
9209
|
+
* @throws {RequiredError}
|
|
9210
|
+
*/
|
|
9211
|
+
userManageAdminServiceGetUserDetail(uid?: string, options?: RawAxiosRequestConfig): AxiosPromise<GetUserDetailResponse>;
|
|
9212
|
+
|
|
9213
|
+
/**
|
|
9214
|
+
* 用户列表(分页查询)
|
|
9215
|
+
* @param {ListUsersRequest} listUsersRequest
|
|
9216
|
+
* @param {*} [options] Override http request option.
|
|
9217
|
+
* @throws {RequiredError}
|
|
9218
|
+
*/
|
|
9219
|
+
userManageAdminServiceListUsers(listUsersRequest: ListUsersRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListUsersResponse>;
|
|
9220
|
+
|
|
9221
|
+
/**
|
|
9222
|
+
* 设置用户角色
|
|
9223
|
+
* @param {SetUserRoleRequest} setUserRoleRequest
|
|
9224
|
+
* @param {*} [options] Override http request option.
|
|
9225
|
+
* @throws {RequiredError}
|
|
9226
|
+
*/
|
|
9227
|
+
userManageAdminServiceSetUserRole(setUserRoleRequest: SetUserRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<SetUserRoleResponse>;
|
|
9228
|
+
|
|
9229
|
+
/**
|
|
9230
|
+
* 设置用户状态(启用/禁用)
|
|
9231
|
+
* @param {SetUserStatusRequest} setUserStatusRequest
|
|
9232
|
+
* @param {*} [options] Override http request option.
|
|
9233
|
+
* @throws {RequiredError}
|
|
9234
|
+
*/
|
|
9235
|
+
userManageAdminServiceSetUserStatus(setUserStatusRequest: SetUserStatusRequest, options?: RawAxiosRequestConfig): AxiosPromise<SetUserStatusResponse>;
|
|
9236
|
+
|
|
9237
|
+
/**
|
|
9238
|
+
* 更新用户信息
|
|
9239
|
+
* @param {UpdateUserInfoRequest} updateUserInfoRequest
|
|
9240
|
+
* @param {*} [options] Override http request option.
|
|
9241
|
+
* @throws {RequiredError}
|
|
9242
|
+
*/
|
|
9243
|
+
userManageAdminServiceUpdateUserInfo(updateUserInfoRequest: UpdateUserInfoRequest, options?: RawAxiosRequestConfig): AxiosPromise<UpdateUserInfoResponse>;
|
|
9244
|
+
|
|
9245
|
+
}
|
|
9246
|
+
|
|
9247
|
+
/**
|
|
9248
|
+
* UserManageAdminServiceApi - object-oriented interface
|
|
9249
|
+
*/
|
|
9250
|
+
export class UserManageAdminServiceApi extends BaseAPI implements UserManageAdminServiceApiInterface {
|
|
9251
|
+
/**
|
|
9252
|
+
* 批量管理 Session
|
|
9253
|
+
* @param {BatchUpdateSessionsRequest} batchUpdateSessionsRequest
|
|
9254
|
+
* @param {*} [options] Override http request option.
|
|
9255
|
+
* @throws {RequiredError}
|
|
9256
|
+
*/
|
|
9257
|
+
public userManageAdminServiceBatchUpdateSessions(batchUpdateSessionsRequest: BatchUpdateSessionsRequest, options?: RawAxiosRequestConfig) {
|
|
9258
|
+
return UserManageAdminServiceApiFp(this.configuration).userManageAdminServiceBatchUpdateSessions(batchUpdateSessionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9259
|
+
}
|
|
9260
|
+
|
|
9261
|
+
/**
|
|
9262
|
+
* 用户详情
|
|
9263
|
+
* @param {string} [uid] @gotags: form:\"uid\" binding:\"uid\"
|
|
9264
|
+
* @param {*} [options] Override http request option.
|
|
9265
|
+
* @throws {RequiredError}
|
|
9266
|
+
*/
|
|
9267
|
+
public userManageAdminServiceGetUserDetail(uid?: string, options?: RawAxiosRequestConfig) {
|
|
9268
|
+
return UserManageAdminServiceApiFp(this.configuration).userManageAdminServiceGetUserDetail(uid, options).then((request) => request(this.axios, this.basePath));
|
|
9269
|
+
}
|
|
9270
|
+
|
|
9271
|
+
/**
|
|
9272
|
+
* 用户列表(分页查询)
|
|
9273
|
+
* @param {ListUsersRequest} listUsersRequest
|
|
9274
|
+
* @param {*} [options] Override http request option.
|
|
9275
|
+
* @throws {RequiredError}
|
|
9276
|
+
*/
|
|
9277
|
+
public userManageAdminServiceListUsers(listUsersRequest: ListUsersRequest, options?: RawAxiosRequestConfig) {
|
|
9278
|
+
return UserManageAdminServiceApiFp(this.configuration).userManageAdminServiceListUsers(listUsersRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9279
|
+
}
|
|
9280
|
+
|
|
9281
|
+
/**
|
|
9282
|
+
* 设置用户角色
|
|
9283
|
+
* @param {SetUserRoleRequest} setUserRoleRequest
|
|
9284
|
+
* @param {*} [options] Override http request option.
|
|
9285
|
+
* @throws {RequiredError}
|
|
9286
|
+
*/
|
|
9287
|
+
public userManageAdminServiceSetUserRole(setUserRoleRequest: SetUserRoleRequest, options?: RawAxiosRequestConfig) {
|
|
9288
|
+
return UserManageAdminServiceApiFp(this.configuration).userManageAdminServiceSetUserRole(setUserRoleRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9289
|
+
}
|
|
9290
|
+
|
|
9291
|
+
/**
|
|
9292
|
+
* 设置用户状态(启用/禁用)
|
|
9293
|
+
* @param {SetUserStatusRequest} setUserStatusRequest
|
|
9294
|
+
* @param {*} [options] Override http request option.
|
|
9295
|
+
* @throws {RequiredError}
|
|
9296
|
+
*/
|
|
9297
|
+
public userManageAdminServiceSetUserStatus(setUserStatusRequest: SetUserStatusRequest, options?: RawAxiosRequestConfig) {
|
|
9298
|
+
return UserManageAdminServiceApiFp(this.configuration).userManageAdminServiceSetUserStatus(setUserStatusRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9299
|
+
}
|
|
9300
|
+
|
|
9301
|
+
/**
|
|
9302
|
+
* 更新用户信息
|
|
9303
|
+
* @param {UpdateUserInfoRequest} updateUserInfoRequest
|
|
9304
|
+
* @param {*} [options] Override http request option.
|
|
9305
|
+
* @throws {RequiredError}
|
|
9306
|
+
*/
|
|
9307
|
+
public userManageAdminServiceUpdateUserInfo(updateUserInfoRequest: UpdateUserInfoRequest, options?: RawAxiosRequestConfig) {
|
|
9308
|
+
return UserManageAdminServiceApiFp(this.configuration).userManageAdminServiceUpdateUserInfo(updateUserInfoRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9309
|
+
}
|
|
9310
|
+
}
|
|
9311
|
+
|
|
9312
|
+
|
|
9313
|
+
|
|
8565
9314
|
/**
|
|
8566
9315
|
* UserModelServiceApi - axios parameter creator
|
|
8567
9316
|
*/
|