@cherryin/passport-api-client 0.1.27 → 0.1.29
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 +3 -0
- package/README.md +6 -2
- package/api.ts +101 -0
- package/dist/api.d.ts +62 -0
- package/dist/api.js +66 -0
- package/dist/esm/api.d.ts +62 -0
- package/dist/esm/api.js +66 -0
- package/docs/PassportAuthUserRPCServiceApi.md +53 -0
- package/docs/PassportUserInfoPageGetRequest.md +28 -0
- package/docs/PassportUserInfoPageGetResponse.md +26 -0
- package/docs/PassportUserUpdateInfoRequest.md +2 -0
- package/docs/UserBasic.md +4 -0
- package/docs/UserSearchOptions.md +26 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -187,6 +187,8 @@ docs/PassportUserInfoBatchGetRequest.md
|
|
|
187
187
|
docs/PassportUserInfoBatchGetResponse.md
|
|
188
188
|
docs/PassportUserInfoGetRequest.md
|
|
189
189
|
docs/PassportUserInfoGetResponse.md
|
|
190
|
+
docs/PassportUserInfoPageGetRequest.md
|
|
191
|
+
docs/PassportUserInfoPageGetResponse.md
|
|
190
192
|
docs/PassportUserOAuthCallbackResponse.md
|
|
191
193
|
docs/PassportUserPasswordForgetRequest.md
|
|
192
194
|
docs/PassportUserPasswordForgetResponse.md
|
|
@@ -213,6 +215,7 @@ docs/UserInfo.md
|
|
|
213
215
|
docs/UserInfoQueryOptions.md
|
|
214
216
|
docs/UserPaymentInfo.md
|
|
215
217
|
docs/UserPreferences.md
|
|
218
|
+
docs/UserSearchOptions.md
|
|
216
219
|
docs/UserSettings.md
|
|
217
220
|
git_push.sh
|
|
218
221
|
index.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @cherryin/passport-api-client@0.1.
|
|
1
|
+
## @cherryin/passport-api-client@0.1.29
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @cherryin/passport-api-client@0.1.
|
|
39
|
+
npm install @cherryin/passport-api-client@0.1.29 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -107,6 +107,7 @@ Class | Method | HTTP request | Description
|
|
|
107
107
|
*PassportAuthEnterpriseServiceApi* | [**passportAuthEnterpriseServicePassportEnterpriseSignUpEmail**](docs/PassportAuthEnterpriseServiceApi.md#passportauthenterpriseservicepassportenterprisesignupemail) | **POST** /passport/enterprise/auth/v1/sign-up/email | 邮箱注册
|
|
108
108
|
*PassportAuthUserRPCServiceApi* | [**passportAuthUserRPCServicePassportUserInfoBatchGet**](docs/PassportAuthUserRPCServiceApi.md#passportauthuserrpcservicepassportuserinfobatchget) | **POST** /passport/authed/v1/users/batch_get | 批量获取用户信息
|
|
109
109
|
*PassportAuthUserRPCServiceApi* | [**passportAuthUserRPCServicePassportUserInfoGet**](docs/PassportAuthUserRPCServiceApi.md#passportauthuserrpcservicepassportuserinfoget) | **POST** /passport/authed/v1/user/get | 获取用户信息
|
|
110
|
+
*PassportAuthUserRPCServiceApi* | [**passportAuthUserRPCServicePassportUserInfoPageGet**](docs/PassportAuthUserRPCServiceApi.md#passportauthuserrpcservicepassportuserinfopageget) | **POST** /passport/authed/v1/users/page_get | 批量获取用户信息
|
|
110
111
|
*PassportAuthUserRPCServiceApi* | [**passportAuthUserRPCServicePassportUserTokenAuth**](docs/PassportAuthUserRPCServiceApi.md#passportauthuserrpcservicepassportusertokenauth) | **POST** /passport/authed/v1/passports | Token 鉴权 - User
|
|
111
112
|
*PassportAuthUserRPCServiceApi* | [**passportAuthUserRPCServicePassportUserUpdateInfo**](docs/PassportAuthUserRPCServiceApi.md#passportauthuserrpcservicepassportuserupdateinfo) | **POST** /passport/authed/v1/user/update | 更新用户信息
|
|
112
113
|
*PassportAuthUserServiceApi* | [**passportAuthUserServicePassportAuthChangePassword**](docs/PassportAuthUserServiceApi.md#passportauthuserservicepassportauthchangepassword) | **POST** /passport/authed/v1/password/change | 已登录用户修改密码
|
|
@@ -325,6 +326,8 @@ Class | Method | HTTP request | Description
|
|
|
325
326
|
- [PassportUserInfoBatchGetResponse](docs/PassportUserInfoBatchGetResponse.md)
|
|
326
327
|
- [PassportUserInfoGetRequest](docs/PassportUserInfoGetRequest.md)
|
|
327
328
|
- [PassportUserInfoGetResponse](docs/PassportUserInfoGetResponse.md)
|
|
329
|
+
- [PassportUserInfoPageGetRequest](docs/PassportUserInfoPageGetRequest.md)
|
|
330
|
+
- [PassportUserInfoPageGetResponse](docs/PassportUserInfoPageGetResponse.md)
|
|
328
331
|
- [PassportUserOAuthCallbackResponse](docs/PassportUserOAuthCallbackResponse.md)
|
|
329
332
|
- [PassportUserPasswordForgetRequest](docs/PassportUserPasswordForgetRequest.md)
|
|
330
333
|
- [PassportUserPasswordForgetResponse](docs/PassportUserPasswordForgetResponse.md)
|
|
@@ -351,6 +354,7 @@ Class | Method | HTTP request | Description
|
|
|
351
354
|
- [UserInfoQueryOptions](docs/UserInfoQueryOptions.md)
|
|
352
355
|
- [UserPaymentInfo](docs/UserPaymentInfo.md)
|
|
353
356
|
- [UserPreferences](docs/UserPreferences.md)
|
|
357
|
+
- [UserSearchOptions](docs/UserSearchOptions.md)
|
|
354
358
|
- [UserSettings](docs/UserSettings.md)
|
|
355
359
|
|
|
356
360
|
|
package/api.ts
CHANGED
|
@@ -1018,6 +1018,19 @@ export interface PassportUserInfoGetResponse {
|
|
|
1018
1018
|
'message'?: string;
|
|
1019
1019
|
'user_info'?: UserInfo;
|
|
1020
1020
|
}
|
|
1021
|
+
export interface PassportUserInfoPageGetRequest {
|
|
1022
|
+
'page'?: number;
|
|
1023
|
+
'page_size'?: number;
|
|
1024
|
+
'app_ids'?: Array<string>;
|
|
1025
|
+
'query_options'?: UserInfoQueryOptions;
|
|
1026
|
+
'search_options'?: UserSearchOptions;
|
|
1027
|
+
}
|
|
1028
|
+
export interface PassportUserInfoPageGetResponse {
|
|
1029
|
+
'code'?: string;
|
|
1030
|
+
'message'?: string;
|
|
1031
|
+
'user_info_list'?: Array<UserInfo>;
|
|
1032
|
+
'total'?: string;
|
|
1033
|
+
}
|
|
1021
1034
|
export interface PassportUserOAuthCallbackResponse {
|
|
1022
1035
|
'code'?: string;
|
|
1023
1036
|
'message'?: string;
|
|
@@ -1166,6 +1179,7 @@ export interface PassportUserUpdateInfoRequest {
|
|
|
1166
1179
|
'preferences'?: UserPreferences;
|
|
1167
1180
|
'payment_info'?: UserPaymentInfo;
|
|
1168
1181
|
'extend_info'?: UserExtendInfo;
|
|
1182
|
+
'reason'?: string;
|
|
1169
1183
|
}
|
|
1170
1184
|
export interface PassportUserUpdateInfoResponse {
|
|
1171
1185
|
'code'?: string;
|
|
@@ -1189,6 +1203,8 @@ export interface UserBasic {
|
|
|
1189
1203
|
'phone_verified_at'?: string;
|
|
1190
1204
|
'app_name'?: string;
|
|
1191
1205
|
'user_status'?: number;
|
|
1206
|
+
'role'?: number;
|
|
1207
|
+
'disabled_until'?: string;
|
|
1192
1208
|
}
|
|
1193
1209
|
export interface UserExtendInfo {
|
|
1194
1210
|
'user_groups'?: Array<string>;
|
|
@@ -1216,6 +1232,12 @@ export interface UserPreferences {
|
|
|
1216
1232
|
'language'?: string;
|
|
1217
1233
|
'timezone'?: string;
|
|
1218
1234
|
}
|
|
1235
|
+
export interface UserSearchOptions {
|
|
1236
|
+
'user_ids'?: Array<string>;
|
|
1237
|
+
'email'?: string;
|
|
1238
|
+
'phone'?: string;
|
|
1239
|
+
'display_name'?: string;
|
|
1240
|
+
}
|
|
1219
1241
|
export interface UserSettings {
|
|
1220
1242
|
'email_notifications_enabled'?: boolean;
|
|
1221
1243
|
}
|
|
@@ -5666,6 +5688,42 @@ export const PassportAuthUserRPCServiceApiAxiosParamCreator = function (configur
|
|
|
5666
5688
|
|
|
5667
5689
|
|
|
5668
5690
|
|
|
5691
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5692
|
+
|
|
5693
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5694
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5695
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5696
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
5697
|
+
|
|
5698
|
+
return {
|
|
5699
|
+
url: toPathString(localVarUrlObj),
|
|
5700
|
+
options: localVarRequestOptions,
|
|
5701
|
+
};
|
|
5702
|
+
},
|
|
5703
|
+
/**
|
|
5704
|
+
*
|
|
5705
|
+
* @summary 批量获取用户信息
|
|
5706
|
+
* @param {PassportUserInfoPageGetRequest} body
|
|
5707
|
+
* @param {*} [options] Override http request option.
|
|
5708
|
+
* @throws {RequiredError}
|
|
5709
|
+
*/
|
|
5710
|
+
passportAuthUserRPCServicePassportUserInfoPageGet: async (body: PassportUserInfoPageGetRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5711
|
+
// verify required parameter 'body' is not null or undefined
|
|
5712
|
+
assertParamExists('passportAuthUserRPCServicePassportUserInfoPageGet', 'body', body)
|
|
5713
|
+
const localVarPath = `/passport/authed/v1/users/page_get`;
|
|
5714
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5715
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5716
|
+
let baseOptions;
|
|
5717
|
+
if (configuration) {
|
|
5718
|
+
baseOptions = configuration.baseOptions;
|
|
5719
|
+
}
|
|
5720
|
+
|
|
5721
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
5722
|
+
const localVarHeaderParameter = {} as any;
|
|
5723
|
+
const localVarQueryParameter = {} as any;
|
|
5724
|
+
|
|
5725
|
+
|
|
5726
|
+
|
|
5669
5727
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5670
5728
|
|
|
5671
5729
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -5785,6 +5843,19 @@ export const PassportAuthUserRPCServiceApiFp = function(configuration?: Configur
|
|
|
5785
5843
|
const localVarOperationServerBasePath = operationServerMap['PassportAuthUserRPCServiceApi.passportAuthUserRPCServicePassportUserInfoGet']?.[localVarOperationServerIndex]?.url;
|
|
5786
5844
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5787
5845
|
},
|
|
5846
|
+
/**
|
|
5847
|
+
*
|
|
5848
|
+
* @summary 批量获取用户信息
|
|
5849
|
+
* @param {PassportUserInfoPageGetRequest} body
|
|
5850
|
+
* @param {*} [options] Override http request option.
|
|
5851
|
+
* @throws {RequiredError}
|
|
5852
|
+
*/
|
|
5853
|
+
async passportAuthUserRPCServicePassportUserInfoPageGet(body: PassportUserInfoPageGetRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportUserInfoPageGetResponse>> {
|
|
5854
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.passportAuthUserRPCServicePassportUserInfoPageGet(body, options);
|
|
5855
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5856
|
+
const localVarOperationServerBasePath = operationServerMap['PassportAuthUserRPCServiceApi.passportAuthUserRPCServicePassportUserInfoPageGet']?.[localVarOperationServerIndex]?.url;
|
|
5857
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5858
|
+
},
|
|
5788
5859
|
/**
|
|
5789
5860
|
*
|
|
5790
5861
|
* @summary Token 鉴权 - User
|
|
@@ -5840,6 +5911,16 @@ export const PassportAuthUserRPCServiceApiFactory = function (configuration?: Co
|
|
|
5840
5911
|
passportAuthUserRPCServicePassportUserInfoGet(body: PassportUserInfoGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportUserInfoGetResponse> {
|
|
5841
5912
|
return localVarFp.passportAuthUserRPCServicePassportUserInfoGet(body, options).then((request) => request(axios, basePath));
|
|
5842
5913
|
},
|
|
5914
|
+
/**
|
|
5915
|
+
*
|
|
5916
|
+
* @summary 批量获取用户信息
|
|
5917
|
+
* @param {PassportUserInfoPageGetRequest} body
|
|
5918
|
+
* @param {*} [options] Override http request option.
|
|
5919
|
+
* @throws {RequiredError}
|
|
5920
|
+
*/
|
|
5921
|
+
passportAuthUserRPCServicePassportUserInfoPageGet(body: PassportUserInfoPageGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportUserInfoPageGetResponse> {
|
|
5922
|
+
return localVarFp.passportAuthUserRPCServicePassportUserInfoPageGet(body, options).then((request) => request(axios, basePath));
|
|
5923
|
+
},
|
|
5843
5924
|
/**
|
|
5844
5925
|
*
|
|
5845
5926
|
* @summary Token 鉴权 - User
|
|
@@ -5885,6 +5966,15 @@ export interface PassportAuthUserRPCServiceApiInterface {
|
|
|
5885
5966
|
*/
|
|
5886
5967
|
passportAuthUserRPCServicePassportUserInfoGet(body: PassportUserInfoGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportUserInfoGetResponse>;
|
|
5887
5968
|
|
|
5969
|
+
/**
|
|
5970
|
+
*
|
|
5971
|
+
* @summary 批量获取用户信息
|
|
5972
|
+
* @param {PassportUserInfoPageGetRequest} body
|
|
5973
|
+
* @param {*} [options] Override http request option.
|
|
5974
|
+
* @throws {RequiredError}
|
|
5975
|
+
*/
|
|
5976
|
+
passportAuthUserRPCServicePassportUserInfoPageGet(body: PassportUserInfoPageGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportUserInfoPageGetResponse>;
|
|
5977
|
+
|
|
5888
5978
|
/**
|
|
5889
5979
|
*
|
|
5890
5980
|
* @summary Token 鉴权 - User
|
|
@@ -5931,6 +6021,17 @@ export class PassportAuthUserRPCServiceApi extends BaseAPI implements PassportAu
|
|
|
5931
6021
|
return PassportAuthUserRPCServiceApiFp(this.configuration).passportAuthUserRPCServicePassportUserInfoGet(body, options).then((request) => request(this.axios, this.basePath));
|
|
5932
6022
|
}
|
|
5933
6023
|
|
|
6024
|
+
/**
|
|
6025
|
+
*
|
|
6026
|
+
* @summary 批量获取用户信息
|
|
6027
|
+
* @param {PassportUserInfoPageGetRequest} body
|
|
6028
|
+
* @param {*} [options] Override http request option.
|
|
6029
|
+
* @throws {RequiredError}
|
|
6030
|
+
*/
|
|
6031
|
+
public passportAuthUserRPCServicePassportUserInfoPageGet(body: PassportUserInfoPageGetRequest, options?: RawAxiosRequestConfig) {
|
|
6032
|
+
return PassportAuthUserRPCServiceApiFp(this.configuration).passportAuthUserRPCServicePassportUserInfoPageGet(body, options).then((request) => request(this.axios, this.basePath));
|
|
6033
|
+
}
|
|
6034
|
+
|
|
5934
6035
|
/**
|
|
5935
6036
|
*
|
|
5936
6037
|
* @summary Token 鉴权 - User
|
package/dist/api.d.ts
CHANGED
|
@@ -1011,6 +1011,19 @@ export interface PassportUserInfoGetResponse {
|
|
|
1011
1011
|
'message'?: string;
|
|
1012
1012
|
'user_info'?: UserInfo;
|
|
1013
1013
|
}
|
|
1014
|
+
export interface PassportUserInfoPageGetRequest {
|
|
1015
|
+
'page'?: number;
|
|
1016
|
+
'page_size'?: number;
|
|
1017
|
+
'app_ids'?: Array<string>;
|
|
1018
|
+
'query_options'?: UserInfoQueryOptions;
|
|
1019
|
+
'search_options'?: UserSearchOptions;
|
|
1020
|
+
}
|
|
1021
|
+
export interface PassportUserInfoPageGetResponse {
|
|
1022
|
+
'code'?: string;
|
|
1023
|
+
'message'?: string;
|
|
1024
|
+
'user_info_list'?: Array<UserInfo>;
|
|
1025
|
+
'total'?: string;
|
|
1026
|
+
}
|
|
1014
1027
|
export interface PassportUserOAuthCallbackResponse {
|
|
1015
1028
|
'code'?: string;
|
|
1016
1029
|
'message'?: string;
|
|
@@ -1159,6 +1172,7 @@ export interface PassportUserUpdateInfoRequest {
|
|
|
1159
1172
|
'preferences'?: UserPreferences;
|
|
1160
1173
|
'payment_info'?: UserPaymentInfo;
|
|
1161
1174
|
'extend_info'?: UserExtendInfo;
|
|
1175
|
+
'reason'?: string;
|
|
1162
1176
|
}
|
|
1163
1177
|
export interface PassportUserUpdateInfoResponse {
|
|
1164
1178
|
'code'?: string;
|
|
@@ -1182,6 +1196,8 @@ export interface UserBasic {
|
|
|
1182
1196
|
'phone_verified_at'?: string;
|
|
1183
1197
|
'app_name'?: string;
|
|
1184
1198
|
'user_status'?: number;
|
|
1199
|
+
'role'?: number;
|
|
1200
|
+
'disabled_until'?: string;
|
|
1185
1201
|
}
|
|
1186
1202
|
export interface UserExtendInfo {
|
|
1187
1203
|
'user_groups'?: Array<string>;
|
|
@@ -1209,6 +1225,12 @@ export interface UserPreferences {
|
|
|
1209
1225
|
'language'?: string;
|
|
1210
1226
|
'timezone'?: string;
|
|
1211
1227
|
}
|
|
1228
|
+
export interface UserSearchOptions {
|
|
1229
|
+
'user_ids'?: Array<string>;
|
|
1230
|
+
'email'?: string;
|
|
1231
|
+
'phone'?: string;
|
|
1232
|
+
'display_name'?: string;
|
|
1233
|
+
}
|
|
1212
1234
|
export interface UserSettings {
|
|
1213
1235
|
'email_notifications_enabled'?: boolean;
|
|
1214
1236
|
}
|
|
@@ -3462,6 +3484,14 @@ export declare const PassportAuthUserRPCServiceApiAxiosParamCreator: (configurat
|
|
|
3462
3484
|
* @throws {RequiredError}
|
|
3463
3485
|
*/
|
|
3464
3486
|
passportAuthUserRPCServicePassportUserInfoGet: (body: PassportUserInfoGetRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3487
|
+
/**
|
|
3488
|
+
*
|
|
3489
|
+
* @summary 批量获取用户信息
|
|
3490
|
+
* @param {PassportUserInfoPageGetRequest} body
|
|
3491
|
+
* @param {*} [options] Override http request option.
|
|
3492
|
+
* @throws {RequiredError}
|
|
3493
|
+
*/
|
|
3494
|
+
passportAuthUserRPCServicePassportUserInfoPageGet: (body: PassportUserInfoPageGetRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3465
3495
|
/**
|
|
3466
3496
|
*
|
|
3467
3497
|
* @summary Token 鉴权 - User
|
|
@@ -3499,6 +3529,14 @@ export declare const PassportAuthUserRPCServiceApiFp: (configuration?: Configura
|
|
|
3499
3529
|
* @throws {RequiredError}
|
|
3500
3530
|
*/
|
|
3501
3531
|
passportAuthUserRPCServicePassportUserInfoGet(body: PassportUserInfoGetRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportUserInfoGetResponse>>;
|
|
3532
|
+
/**
|
|
3533
|
+
*
|
|
3534
|
+
* @summary 批量获取用户信息
|
|
3535
|
+
* @param {PassportUserInfoPageGetRequest} body
|
|
3536
|
+
* @param {*} [options] Override http request option.
|
|
3537
|
+
* @throws {RequiredError}
|
|
3538
|
+
*/
|
|
3539
|
+
passportAuthUserRPCServicePassportUserInfoPageGet(body: PassportUserInfoPageGetRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportUserInfoPageGetResponse>>;
|
|
3502
3540
|
/**
|
|
3503
3541
|
*
|
|
3504
3542
|
* @summary Token 鉴权 - User
|
|
@@ -3536,6 +3574,14 @@ export declare const PassportAuthUserRPCServiceApiFactory: (configuration?: Conf
|
|
|
3536
3574
|
* @throws {RequiredError}
|
|
3537
3575
|
*/
|
|
3538
3576
|
passportAuthUserRPCServicePassportUserInfoGet(body: PassportUserInfoGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportUserInfoGetResponse>;
|
|
3577
|
+
/**
|
|
3578
|
+
*
|
|
3579
|
+
* @summary 批量获取用户信息
|
|
3580
|
+
* @param {PassportUserInfoPageGetRequest} body
|
|
3581
|
+
* @param {*} [options] Override http request option.
|
|
3582
|
+
* @throws {RequiredError}
|
|
3583
|
+
*/
|
|
3584
|
+
passportAuthUserRPCServicePassportUserInfoPageGet(body: PassportUserInfoPageGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportUserInfoPageGetResponse>;
|
|
3539
3585
|
/**
|
|
3540
3586
|
*
|
|
3541
3587
|
* @summary Token 鉴权 - User
|
|
@@ -3573,6 +3619,14 @@ export interface PassportAuthUserRPCServiceApiInterface {
|
|
|
3573
3619
|
* @throws {RequiredError}
|
|
3574
3620
|
*/
|
|
3575
3621
|
passportAuthUserRPCServicePassportUserInfoGet(body: PassportUserInfoGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportUserInfoGetResponse>;
|
|
3622
|
+
/**
|
|
3623
|
+
*
|
|
3624
|
+
* @summary 批量获取用户信息
|
|
3625
|
+
* @param {PassportUserInfoPageGetRequest} body
|
|
3626
|
+
* @param {*} [options] Override http request option.
|
|
3627
|
+
* @throws {RequiredError}
|
|
3628
|
+
*/
|
|
3629
|
+
passportAuthUserRPCServicePassportUserInfoPageGet(body: PassportUserInfoPageGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportUserInfoPageGetResponse>;
|
|
3576
3630
|
/**
|
|
3577
3631
|
*
|
|
3578
3632
|
* @summary Token 鉴权 - User
|
|
@@ -3610,6 +3664,14 @@ export declare class PassportAuthUserRPCServiceApi extends BaseAPI implements Pa
|
|
|
3610
3664
|
* @throws {RequiredError}
|
|
3611
3665
|
*/
|
|
3612
3666
|
passportAuthUserRPCServicePassportUserInfoGet(body: PassportUserInfoGetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PassportUserInfoGetResponse, any, {}>>;
|
|
3667
|
+
/**
|
|
3668
|
+
*
|
|
3669
|
+
* @summary 批量获取用户信息
|
|
3670
|
+
* @param {PassportUserInfoPageGetRequest} body
|
|
3671
|
+
* @param {*} [options] Override http request option.
|
|
3672
|
+
* @throws {RequiredError}
|
|
3673
|
+
*/
|
|
3674
|
+
passportAuthUserRPCServicePassportUserInfoPageGet(body: PassportUserInfoPageGetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PassportUserInfoPageGetResponse, any, {}>>;
|
|
3613
3675
|
/**
|
|
3614
3676
|
*
|
|
3615
3677
|
* @summary Token 鉴权 - User
|
package/dist/api.js
CHANGED
|
@@ -3752,6 +3752,36 @@ const PassportAuthUserRPCServiceApiAxiosParamCreator = function (configuration)
|
|
|
3752
3752
|
options: localVarRequestOptions,
|
|
3753
3753
|
};
|
|
3754
3754
|
}),
|
|
3755
|
+
/**
|
|
3756
|
+
*
|
|
3757
|
+
* @summary 批量获取用户信息
|
|
3758
|
+
* @param {PassportUserInfoPageGetRequest} body
|
|
3759
|
+
* @param {*} [options] Override http request option.
|
|
3760
|
+
* @throws {RequiredError}
|
|
3761
|
+
*/
|
|
3762
|
+
passportAuthUserRPCServicePassportUserInfoPageGet: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
3763
|
+
// verify required parameter 'body' is not null or undefined
|
|
3764
|
+
(0, common_1.assertParamExists)('passportAuthUserRPCServicePassportUserInfoPageGet', 'body', body);
|
|
3765
|
+
const localVarPath = `/passport/authed/v1/users/page_get`;
|
|
3766
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3767
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3768
|
+
let baseOptions;
|
|
3769
|
+
if (configuration) {
|
|
3770
|
+
baseOptions = configuration.baseOptions;
|
|
3771
|
+
}
|
|
3772
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3773
|
+
const localVarHeaderParameter = {};
|
|
3774
|
+
const localVarQueryParameter = {};
|
|
3775
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3776
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3777
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3778
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3779
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
3780
|
+
return {
|
|
3781
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3782
|
+
options: localVarRequestOptions,
|
|
3783
|
+
};
|
|
3784
|
+
}),
|
|
3755
3785
|
/**
|
|
3756
3786
|
*
|
|
3757
3787
|
* @summary Token 鉴权 - User
|
|
@@ -3853,6 +3883,22 @@ const PassportAuthUserRPCServiceApiFp = function (configuration) {
|
|
|
3853
3883
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3854
3884
|
});
|
|
3855
3885
|
},
|
|
3886
|
+
/**
|
|
3887
|
+
*
|
|
3888
|
+
* @summary 批量获取用户信息
|
|
3889
|
+
* @param {PassportUserInfoPageGetRequest} body
|
|
3890
|
+
* @param {*} [options] Override http request option.
|
|
3891
|
+
* @throws {RequiredError}
|
|
3892
|
+
*/
|
|
3893
|
+
passportAuthUserRPCServicePassportUserInfoPageGet(body, options) {
|
|
3894
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3895
|
+
var _a, _b, _c;
|
|
3896
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.passportAuthUserRPCServicePassportUserInfoPageGet(body, options);
|
|
3897
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3898
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PassportAuthUserRPCServiceApi.passportAuthUserRPCServicePassportUserInfoPageGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3899
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3900
|
+
});
|
|
3901
|
+
},
|
|
3856
3902
|
/**
|
|
3857
3903
|
*
|
|
3858
3904
|
* @summary Token 鉴权 - User
|
|
@@ -3914,6 +3960,16 @@ const PassportAuthUserRPCServiceApiFactory = function (configuration, basePath,
|
|
|
3914
3960
|
passportAuthUserRPCServicePassportUserInfoGet(body, options) {
|
|
3915
3961
|
return localVarFp.passportAuthUserRPCServicePassportUserInfoGet(body, options).then((request) => request(axios, basePath));
|
|
3916
3962
|
},
|
|
3963
|
+
/**
|
|
3964
|
+
*
|
|
3965
|
+
* @summary 批量获取用户信息
|
|
3966
|
+
* @param {PassportUserInfoPageGetRequest} body
|
|
3967
|
+
* @param {*} [options] Override http request option.
|
|
3968
|
+
* @throws {RequiredError}
|
|
3969
|
+
*/
|
|
3970
|
+
passportAuthUserRPCServicePassportUserInfoPageGet(body, options) {
|
|
3971
|
+
return localVarFp.passportAuthUserRPCServicePassportUserInfoPageGet(body, options).then((request) => request(axios, basePath));
|
|
3972
|
+
},
|
|
3917
3973
|
/**
|
|
3918
3974
|
*
|
|
3919
3975
|
* @summary Token 鉴权 - User
|
|
@@ -3961,6 +4017,16 @@ class PassportAuthUserRPCServiceApi extends base_1.BaseAPI {
|
|
|
3961
4017
|
passportAuthUserRPCServicePassportUserInfoGet(body, options) {
|
|
3962
4018
|
return (0, exports.PassportAuthUserRPCServiceApiFp)(this.configuration).passportAuthUserRPCServicePassportUserInfoGet(body, options).then((request) => request(this.axios, this.basePath));
|
|
3963
4019
|
}
|
|
4020
|
+
/**
|
|
4021
|
+
*
|
|
4022
|
+
* @summary 批量获取用户信息
|
|
4023
|
+
* @param {PassportUserInfoPageGetRequest} body
|
|
4024
|
+
* @param {*} [options] Override http request option.
|
|
4025
|
+
* @throws {RequiredError}
|
|
4026
|
+
*/
|
|
4027
|
+
passportAuthUserRPCServicePassportUserInfoPageGet(body, options) {
|
|
4028
|
+
return (0, exports.PassportAuthUserRPCServiceApiFp)(this.configuration).passportAuthUserRPCServicePassportUserInfoPageGet(body, options).then((request) => request(this.axios, this.basePath));
|
|
4029
|
+
}
|
|
3964
4030
|
/**
|
|
3965
4031
|
*
|
|
3966
4032
|
* @summary Token 鉴权 - User
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -1011,6 +1011,19 @@ export interface PassportUserInfoGetResponse {
|
|
|
1011
1011
|
'message'?: string;
|
|
1012
1012
|
'user_info'?: UserInfo;
|
|
1013
1013
|
}
|
|
1014
|
+
export interface PassportUserInfoPageGetRequest {
|
|
1015
|
+
'page'?: number;
|
|
1016
|
+
'page_size'?: number;
|
|
1017
|
+
'app_ids'?: Array<string>;
|
|
1018
|
+
'query_options'?: UserInfoQueryOptions;
|
|
1019
|
+
'search_options'?: UserSearchOptions;
|
|
1020
|
+
}
|
|
1021
|
+
export interface PassportUserInfoPageGetResponse {
|
|
1022
|
+
'code'?: string;
|
|
1023
|
+
'message'?: string;
|
|
1024
|
+
'user_info_list'?: Array<UserInfo>;
|
|
1025
|
+
'total'?: string;
|
|
1026
|
+
}
|
|
1014
1027
|
export interface PassportUserOAuthCallbackResponse {
|
|
1015
1028
|
'code'?: string;
|
|
1016
1029
|
'message'?: string;
|
|
@@ -1159,6 +1172,7 @@ export interface PassportUserUpdateInfoRequest {
|
|
|
1159
1172
|
'preferences'?: UserPreferences;
|
|
1160
1173
|
'payment_info'?: UserPaymentInfo;
|
|
1161
1174
|
'extend_info'?: UserExtendInfo;
|
|
1175
|
+
'reason'?: string;
|
|
1162
1176
|
}
|
|
1163
1177
|
export interface PassportUserUpdateInfoResponse {
|
|
1164
1178
|
'code'?: string;
|
|
@@ -1182,6 +1196,8 @@ export interface UserBasic {
|
|
|
1182
1196
|
'phone_verified_at'?: string;
|
|
1183
1197
|
'app_name'?: string;
|
|
1184
1198
|
'user_status'?: number;
|
|
1199
|
+
'role'?: number;
|
|
1200
|
+
'disabled_until'?: string;
|
|
1185
1201
|
}
|
|
1186
1202
|
export interface UserExtendInfo {
|
|
1187
1203
|
'user_groups'?: Array<string>;
|
|
@@ -1209,6 +1225,12 @@ export interface UserPreferences {
|
|
|
1209
1225
|
'language'?: string;
|
|
1210
1226
|
'timezone'?: string;
|
|
1211
1227
|
}
|
|
1228
|
+
export interface UserSearchOptions {
|
|
1229
|
+
'user_ids'?: Array<string>;
|
|
1230
|
+
'email'?: string;
|
|
1231
|
+
'phone'?: string;
|
|
1232
|
+
'display_name'?: string;
|
|
1233
|
+
}
|
|
1212
1234
|
export interface UserSettings {
|
|
1213
1235
|
'email_notifications_enabled'?: boolean;
|
|
1214
1236
|
}
|
|
@@ -3462,6 +3484,14 @@ export declare const PassportAuthUserRPCServiceApiAxiosParamCreator: (configurat
|
|
|
3462
3484
|
* @throws {RequiredError}
|
|
3463
3485
|
*/
|
|
3464
3486
|
passportAuthUserRPCServicePassportUserInfoGet: (body: PassportUserInfoGetRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3487
|
+
/**
|
|
3488
|
+
*
|
|
3489
|
+
* @summary 批量获取用户信息
|
|
3490
|
+
* @param {PassportUserInfoPageGetRequest} body
|
|
3491
|
+
* @param {*} [options] Override http request option.
|
|
3492
|
+
* @throws {RequiredError}
|
|
3493
|
+
*/
|
|
3494
|
+
passportAuthUserRPCServicePassportUserInfoPageGet: (body: PassportUserInfoPageGetRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3465
3495
|
/**
|
|
3466
3496
|
*
|
|
3467
3497
|
* @summary Token 鉴权 - User
|
|
@@ -3499,6 +3529,14 @@ export declare const PassportAuthUserRPCServiceApiFp: (configuration?: Configura
|
|
|
3499
3529
|
* @throws {RequiredError}
|
|
3500
3530
|
*/
|
|
3501
3531
|
passportAuthUserRPCServicePassportUserInfoGet(body: PassportUserInfoGetRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportUserInfoGetResponse>>;
|
|
3532
|
+
/**
|
|
3533
|
+
*
|
|
3534
|
+
* @summary 批量获取用户信息
|
|
3535
|
+
* @param {PassportUserInfoPageGetRequest} body
|
|
3536
|
+
* @param {*} [options] Override http request option.
|
|
3537
|
+
* @throws {RequiredError}
|
|
3538
|
+
*/
|
|
3539
|
+
passportAuthUserRPCServicePassportUserInfoPageGet(body: PassportUserInfoPageGetRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PassportUserInfoPageGetResponse>>;
|
|
3502
3540
|
/**
|
|
3503
3541
|
*
|
|
3504
3542
|
* @summary Token 鉴权 - User
|
|
@@ -3536,6 +3574,14 @@ export declare const PassportAuthUserRPCServiceApiFactory: (configuration?: Conf
|
|
|
3536
3574
|
* @throws {RequiredError}
|
|
3537
3575
|
*/
|
|
3538
3576
|
passportAuthUserRPCServicePassportUserInfoGet(body: PassportUserInfoGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportUserInfoGetResponse>;
|
|
3577
|
+
/**
|
|
3578
|
+
*
|
|
3579
|
+
* @summary 批量获取用户信息
|
|
3580
|
+
* @param {PassportUserInfoPageGetRequest} body
|
|
3581
|
+
* @param {*} [options] Override http request option.
|
|
3582
|
+
* @throws {RequiredError}
|
|
3583
|
+
*/
|
|
3584
|
+
passportAuthUserRPCServicePassportUserInfoPageGet(body: PassportUserInfoPageGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportUserInfoPageGetResponse>;
|
|
3539
3585
|
/**
|
|
3540
3586
|
*
|
|
3541
3587
|
* @summary Token 鉴权 - User
|
|
@@ -3573,6 +3619,14 @@ export interface PassportAuthUserRPCServiceApiInterface {
|
|
|
3573
3619
|
* @throws {RequiredError}
|
|
3574
3620
|
*/
|
|
3575
3621
|
passportAuthUserRPCServicePassportUserInfoGet(body: PassportUserInfoGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportUserInfoGetResponse>;
|
|
3622
|
+
/**
|
|
3623
|
+
*
|
|
3624
|
+
* @summary 批量获取用户信息
|
|
3625
|
+
* @param {PassportUserInfoPageGetRequest} body
|
|
3626
|
+
* @param {*} [options] Override http request option.
|
|
3627
|
+
* @throws {RequiredError}
|
|
3628
|
+
*/
|
|
3629
|
+
passportAuthUserRPCServicePassportUserInfoPageGet(body: PassportUserInfoPageGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PassportUserInfoPageGetResponse>;
|
|
3576
3630
|
/**
|
|
3577
3631
|
*
|
|
3578
3632
|
* @summary Token 鉴权 - User
|
|
@@ -3610,6 +3664,14 @@ export declare class PassportAuthUserRPCServiceApi extends BaseAPI implements Pa
|
|
|
3610
3664
|
* @throws {RequiredError}
|
|
3611
3665
|
*/
|
|
3612
3666
|
passportAuthUserRPCServicePassportUserInfoGet(body: PassportUserInfoGetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PassportUserInfoGetResponse, any, {}>>;
|
|
3667
|
+
/**
|
|
3668
|
+
*
|
|
3669
|
+
* @summary 批量获取用户信息
|
|
3670
|
+
* @param {PassportUserInfoPageGetRequest} body
|
|
3671
|
+
* @param {*} [options] Override http request option.
|
|
3672
|
+
* @throws {RequiredError}
|
|
3673
|
+
*/
|
|
3674
|
+
passportAuthUserRPCServicePassportUserInfoPageGet(body: PassportUserInfoPageGetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PassportUserInfoPageGetResponse, any, {}>>;
|
|
3613
3675
|
/**
|
|
3614
3676
|
*
|
|
3615
3677
|
* @summary Token 鉴权 - User
|
package/dist/esm/api.js
CHANGED
|
@@ -3733,6 +3733,36 @@ export const PassportAuthUserRPCServiceApiAxiosParamCreator = function (configur
|
|
|
3733
3733
|
options: localVarRequestOptions,
|
|
3734
3734
|
};
|
|
3735
3735
|
}),
|
|
3736
|
+
/**
|
|
3737
|
+
*
|
|
3738
|
+
* @summary 批量获取用户信息
|
|
3739
|
+
* @param {PassportUserInfoPageGetRequest} body
|
|
3740
|
+
* @param {*} [options] Override http request option.
|
|
3741
|
+
* @throws {RequiredError}
|
|
3742
|
+
*/
|
|
3743
|
+
passportAuthUserRPCServicePassportUserInfoPageGet: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
3744
|
+
// verify required parameter 'body' is not null or undefined
|
|
3745
|
+
assertParamExists('passportAuthUserRPCServicePassportUserInfoPageGet', 'body', body);
|
|
3746
|
+
const localVarPath = `/passport/authed/v1/users/page_get`;
|
|
3747
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3748
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3749
|
+
let baseOptions;
|
|
3750
|
+
if (configuration) {
|
|
3751
|
+
baseOptions = configuration.baseOptions;
|
|
3752
|
+
}
|
|
3753
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3754
|
+
const localVarHeaderParameter = {};
|
|
3755
|
+
const localVarQueryParameter = {};
|
|
3756
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3757
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3758
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3759
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3760
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
3761
|
+
return {
|
|
3762
|
+
url: toPathString(localVarUrlObj),
|
|
3763
|
+
options: localVarRequestOptions,
|
|
3764
|
+
};
|
|
3765
|
+
}),
|
|
3736
3766
|
/**
|
|
3737
3767
|
*
|
|
3738
3768
|
* @summary Token 鉴权 - User
|
|
@@ -3833,6 +3863,22 @@ export const PassportAuthUserRPCServiceApiFp = function (configuration) {
|
|
|
3833
3863
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3834
3864
|
});
|
|
3835
3865
|
},
|
|
3866
|
+
/**
|
|
3867
|
+
*
|
|
3868
|
+
* @summary 批量获取用户信息
|
|
3869
|
+
* @param {PassportUserInfoPageGetRequest} body
|
|
3870
|
+
* @param {*} [options] Override http request option.
|
|
3871
|
+
* @throws {RequiredError}
|
|
3872
|
+
*/
|
|
3873
|
+
passportAuthUserRPCServicePassportUserInfoPageGet(body, options) {
|
|
3874
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3875
|
+
var _a, _b, _c;
|
|
3876
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.passportAuthUserRPCServicePassportUserInfoPageGet(body, options);
|
|
3877
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3878
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PassportAuthUserRPCServiceApi.passportAuthUserRPCServicePassportUserInfoPageGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3879
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3880
|
+
});
|
|
3881
|
+
},
|
|
3836
3882
|
/**
|
|
3837
3883
|
*
|
|
3838
3884
|
* @summary Token 鉴权 - User
|
|
@@ -3893,6 +3939,16 @@ export const PassportAuthUserRPCServiceApiFactory = function (configuration, bas
|
|
|
3893
3939
|
passportAuthUserRPCServicePassportUserInfoGet(body, options) {
|
|
3894
3940
|
return localVarFp.passportAuthUserRPCServicePassportUserInfoGet(body, options).then((request) => request(axios, basePath));
|
|
3895
3941
|
},
|
|
3942
|
+
/**
|
|
3943
|
+
*
|
|
3944
|
+
* @summary 批量获取用户信息
|
|
3945
|
+
* @param {PassportUserInfoPageGetRequest} body
|
|
3946
|
+
* @param {*} [options] Override http request option.
|
|
3947
|
+
* @throws {RequiredError}
|
|
3948
|
+
*/
|
|
3949
|
+
passportAuthUserRPCServicePassportUserInfoPageGet(body, options) {
|
|
3950
|
+
return localVarFp.passportAuthUserRPCServicePassportUserInfoPageGet(body, options).then((request) => request(axios, basePath));
|
|
3951
|
+
},
|
|
3896
3952
|
/**
|
|
3897
3953
|
*
|
|
3898
3954
|
* @summary Token 鉴权 - User
|
|
@@ -3939,6 +3995,16 @@ export class PassportAuthUserRPCServiceApi extends BaseAPI {
|
|
|
3939
3995
|
passportAuthUserRPCServicePassportUserInfoGet(body, options) {
|
|
3940
3996
|
return PassportAuthUserRPCServiceApiFp(this.configuration).passportAuthUserRPCServicePassportUserInfoGet(body, options).then((request) => request(this.axios, this.basePath));
|
|
3941
3997
|
}
|
|
3998
|
+
/**
|
|
3999
|
+
*
|
|
4000
|
+
* @summary 批量获取用户信息
|
|
4001
|
+
* @param {PassportUserInfoPageGetRequest} body
|
|
4002
|
+
* @param {*} [options] Override http request option.
|
|
4003
|
+
* @throws {RequiredError}
|
|
4004
|
+
*/
|
|
4005
|
+
passportAuthUserRPCServicePassportUserInfoPageGet(body, options) {
|
|
4006
|
+
return PassportAuthUserRPCServiceApiFp(this.configuration).passportAuthUserRPCServicePassportUserInfoPageGet(body, options).then((request) => request(this.axios, this.basePath));
|
|
4007
|
+
}
|
|
3942
4008
|
/**
|
|
3943
4009
|
*
|
|
3944
4010
|
* @summary Token 鉴权 - User
|
|
@@ -6,6 +6,7 @@ All URIs are relative to *http://localhost*
|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**passportAuthUserRPCServicePassportUserInfoBatchGet**](#passportauthuserrpcservicepassportuserinfobatchget) | **POST** /passport/authed/v1/users/batch_get | 批量获取用户信息|
|
|
8
8
|
|[**passportAuthUserRPCServicePassportUserInfoGet**](#passportauthuserrpcservicepassportuserinfoget) | **POST** /passport/authed/v1/user/get | 获取用户信息|
|
|
9
|
+
|[**passportAuthUserRPCServicePassportUserInfoPageGet**](#passportauthuserrpcservicepassportuserinfopageget) | **POST** /passport/authed/v1/users/page_get | 批量获取用户信息|
|
|
9
10
|
|[**passportAuthUserRPCServicePassportUserTokenAuth**](#passportauthuserrpcservicepassportusertokenauth) | **POST** /passport/authed/v1/passports | Token 鉴权 - User|
|
|
10
11
|
|[**passportAuthUserRPCServicePassportUserUpdateInfo**](#passportauthuserrpcservicepassportuserupdateinfo) | **POST** /passport/authed/v1/user/update | 更新用户信息|
|
|
11
12
|
|
|
@@ -105,6 +106,58 @@ No authorization required
|
|
|
105
106
|
- **Accept**: application/json
|
|
106
107
|
|
|
107
108
|
|
|
109
|
+
### HTTP response details
|
|
110
|
+
| Status code | Description | Response headers |
|
|
111
|
+
|-------------|-------------|------------------|
|
|
112
|
+
|**200** | A successful response. | - |
|
|
113
|
+
|**0** | An unexpected error response. | - |
|
|
114
|
+
|
|
115
|
+
[[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)
|
|
116
|
+
|
|
117
|
+
# **passportAuthUserRPCServicePassportUserInfoPageGet**
|
|
118
|
+
> PassportUserInfoPageGetResponse passportAuthUserRPCServicePassportUserInfoPageGet(body)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
### Example
|
|
122
|
+
|
|
123
|
+
```typescript
|
|
124
|
+
import {
|
|
125
|
+
PassportAuthUserRPCServiceApi,
|
|
126
|
+
Configuration,
|
|
127
|
+
PassportUserInfoPageGetRequest
|
|
128
|
+
} from '@cherryin/passport-api-client';
|
|
129
|
+
|
|
130
|
+
const configuration = new Configuration();
|
|
131
|
+
const apiInstance = new PassportAuthUserRPCServiceApi(configuration);
|
|
132
|
+
|
|
133
|
+
let body: PassportUserInfoPageGetRequest; //
|
|
134
|
+
|
|
135
|
+
const { status, data } = await apiInstance.passportAuthUserRPCServicePassportUserInfoPageGet(
|
|
136
|
+
body
|
|
137
|
+
);
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### Parameters
|
|
141
|
+
|
|
142
|
+
|Name | Type | Description | Notes|
|
|
143
|
+
|------------- | ------------- | ------------- | -------------|
|
|
144
|
+
| **body** | **PassportUserInfoPageGetRequest**| | |
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
### Return type
|
|
148
|
+
|
|
149
|
+
**PassportUserInfoPageGetResponse**
|
|
150
|
+
|
|
151
|
+
### Authorization
|
|
152
|
+
|
|
153
|
+
No authorization required
|
|
154
|
+
|
|
155
|
+
### HTTP request headers
|
|
156
|
+
|
|
157
|
+
- **Content-Type**: application/json
|
|
158
|
+
- **Accept**: application/json
|
|
159
|
+
|
|
160
|
+
|
|
108
161
|
### HTTP response details
|
|
109
162
|
| Status code | Description | Response headers |
|
|
110
163
|
|-------------|-------------|------------------|
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# PassportUserInfoPageGetRequest
|
|
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
|
+
**app_ids** | **Array<string>** | | [optional] [default to undefined]
|
|
11
|
+
**query_options** | [**UserInfoQueryOptions**](UserInfoQueryOptions.md) | | [optional] [default to undefined]
|
|
12
|
+
**search_options** | [**UserSearchOptions**](UserSearchOptions.md) | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { PassportUserInfoPageGetRequest } from '@cherryin/passport-api-client';
|
|
18
|
+
|
|
19
|
+
const instance: PassportUserInfoPageGetRequest = {
|
|
20
|
+
page,
|
|
21
|
+
page_size,
|
|
22
|
+
app_ids,
|
|
23
|
+
query_options,
|
|
24
|
+
search_options,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[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
|
+
# PassportUserInfoPageGetResponse
|
|
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_info_list** | [**Array<UserInfo>**](UserInfo.md) | | [optional] [default to undefined]
|
|
11
|
+
**total** | **string** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { PassportUserInfoPageGetResponse } from '@cherryin/passport-api-client';
|
|
17
|
+
|
|
18
|
+
const instance: PassportUserInfoPageGetResponse = {
|
|
19
|
+
code,
|
|
20
|
+
message,
|
|
21
|
+
user_info_list,
|
|
22
|
+
total,
|
|
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)
|
|
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**preferences** | [**UserPreferences**](UserPreferences.md) | | [optional] [default to undefined]
|
|
12
12
|
**payment_info** | [**UserPaymentInfo**](UserPaymentInfo.md) | | [optional] [default to undefined]
|
|
13
13
|
**extend_info** | [**UserExtendInfo**](UserExtendInfo.md) | | [optional] [default to undefined]
|
|
14
|
+
**reason** | **string** | | [optional] [default to undefined]
|
|
14
15
|
|
|
15
16
|
## Example
|
|
16
17
|
|
|
@@ -24,6 +25,7 @@ const instance: PassportUserUpdateInfoRequest = {
|
|
|
24
25
|
preferences,
|
|
25
26
|
payment_info,
|
|
26
27
|
extend_info,
|
|
28
|
+
reason,
|
|
27
29
|
};
|
|
28
30
|
```
|
|
29
31
|
|
package/docs/UserBasic.md
CHANGED
|
@@ -17,6 +17,8 @@ Name | Type | Description | Notes
|
|
|
17
17
|
**phone_verified_at** | **string** | | [optional] [default to undefined]
|
|
18
18
|
**app_name** | **string** | | [optional] [default to undefined]
|
|
19
19
|
**user_status** | **number** | | [optional] [default to undefined]
|
|
20
|
+
**role** | **number** | | [optional] [default to undefined]
|
|
21
|
+
**disabled_until** | **string** | | [optional] [default to undefined]
|
|
20
22
|
|
|
21
23
|
## Example
|
|
22
24
|
|
|
@@ -36,6 +38,8 @@ const instance: UserBasic = {
|
|
|
36
38
|
phone_verified_at,
|
|
37
39
|
app_name,
|
|
38
40
|
user_status,
|
|
41
|
+
role,
|
|
42
|
+
disabled_until,
|
|
39
43
|
};
|
|
40
44
|
```
|
|
41
45
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# UserSearchOptions
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**user_ids** | **Array<string>** | | [optional] [default to undefined]
|
|
9
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**phone** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**display_name** | **string** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { UserSearchOptions } from '@cherryin/passport-api-client';
|
|
17
|
+
|
|
18
|
+
const instance: UserSearchOptions = {
|
|
19
|
+
user_ids,
|
|
20
|
+
email,
|
|
21
|
+
phone,
|
|
22
|
+
display_name,
|
|
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)
|