@cherryin/aigw-api-client 0.1.29 → 0.1.30
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 +2 -0
- package/README.md +6 -3
- package/api.ts +97 -5
- package/dist/api.d.ts +58 -5
- package/dist/api.js +70 -4
- package/dist/esm/api.d.ts +58 -5
- package/dist/esm/api.js +70 -4
- package/docs/UserAdminServiceApi.md +54 -1
- package/docs/UserInfoUpdateRequest.md +32 -0
- package/docs/UserInfoUpdateResponse.md +22 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -150,6 +150,8 @@ docs/UserExtendInfo.md
|
|
|
150
150
|
docs/UserInfoItem.md
|
|
151
151
|
docs/UserInfoPageGetRequest.md
|
|
152
152
|
docs/UserInfoPageGetResponse.md
|
|
153
|
+
docs/UserInfoUpdateRequest.md
|
|
154
|
+
docs/UserInfoUpdateResponse.md
|
|
153
155
|
docs/UserLabelItem.md
|
|
154
156
|
docs/UserLabelListResponse.md
|
|
155
157
|
docs/UserLabelPair.md
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @cherryin/aigw-api-client@0.1.
|
|
1
|
+
## @cherryin/aigw-api-client@0.1.30
|
|
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/aigw-api-client@0.1.
|
|
39
|
+
npm install @cherryin/aigw-api-client@0.1.30 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -100,7 +100,8 @@ Class | Method | HTTP request | Description
|
|
|
100
100
|
*UserAPIKeyServiceApi* | [**userAPIKeyServiceUserAPIKeyGet**](docs/UserAPIKeyServiceApi.md#userapikeyserviceuserapikeyget) | **GET** /api/v1/user/api-key/get | UserAPIKeyGet 根据 ID 或名称获取单个 UserAPIKey Request path: GET /api/user/api-key/get?id={id} or GET /api/user/api-key/get?name={name}
|
|
101
101
|
*UserAPIKeyServiceApi* | [**userAPIKeyServiceUserAPIKeyList**](docs/UserAPIKeyServiceApi.md#userapikeyserviceuserapikeylist) | **GET** /api/v1/user/api-key/list | UserAPIKeyList 分页查询 UserAPIKey 列表,支持按状态和分组过滤 请求路径: GET /api/user/api-key/list?page={page}&page_size={page_size}&key_status={status}&key_group={group}
|
|
102
102
|
*UserAPIKeyServiceApi* | [**userAPIKeyServiceUserAPIKeyUpdate**](docs/UserAPIKeyServiceApi.md#userapikeyserviceuserapikeyupdate) | **POST** /api/v1/user/api-key/update | UserAPIKeyUpdate 更新现有的 UserAPIKey 请求路径: POST /api/user/api-key/update
|
|
103
|
-
*UserAdminServiceApi* | [**userAdminServiceUserInfoPageGet**](docs/UserAdminServiceApi.md#useradminserviceuserinfopageget) | **POST** /admin/users/search |
|
|
103
|
+
*UserAdminServiceApi* | [**userAdminServiceUserInfoPageGet**](docs/UserAdminServiceApi.md#useradminserviceuserinfopageget) | **POST** /admin/users/search | 用户信息-分页查询接口
|
|
104
|
+
*UserAdminServiceApi* | [**userAdminServiceUserInfoUpdate**](docs/UserAdminServiceApi.md#useradminserviceuserinfoupdate) | **POST** /admin/users/update | 用户信息-单个更新接口
|
|
104
105
|
*UserBalanceServiceApi* | [**userBalanceServiceUserBalanceChange**](docs/UserBalanceServiceApi.md#userbalanceserviceuserbalancechange) | **POST** /v1/user_balance/change | 用户余额变更接口 - 增量操作
|
|
105
106
|
*UserBalanceServiceApi* | [**userBalanceServiceUserBalanceEdit**](docs/UserBalanceServiceApi.md#userbalanceserviceuserbalanceedit) | **POST** /v1/user_balance/edit | 编辑用户余额信息 - 注意,这是直接编辑最终结果值,不是增量操作 NOTE: 后台尽量别用此接口做增量变更操作,避免并发问题导致数据不一致
|
|
106
107
|
*UserBalanceServiceApi* | [**userBalanceServiceUserBalanceList**](docs/UserBalanceServiceApi.md#userbalanceserviceuserbalancelist) | **GET** /v1/user_balance/list | 用户余额列表接口
|
|
@@ -257,6 +258,8 @@ Class | Method | HTTP request | Description
|
|
|
257
258
|
- [UserInfoItem](docs/UserInfoItem.md)
|
|
258
259
|
- [UserInfoPageGetRequest](docs/UserInfoPageGetRequest.md)
|
|
259
260
|
- [UserInfoPageGetResponse](docs/UserInfoPageGetResponse.md)
|
|
261
|
+
- [UserInfoUpdateRequest](docs/UserInfoUpdateRequest.md)
|
|
262
|
+
- [UserInfoUpdateResponse](docs/UserInfoUpdateResponse.md)
|
|
260
263
|
- [UserLabelItem](docs/UserLabelItem.md)
|
|
261
264
|
- [UserLabelListResponse](docs/UserLabelListResponse.md)
|
|
262
265
|
- [UserLabelPair](docs/UserLabelPair.md)
|
package/api.ts
CHANGED
|
@@ -1074,6 +1074,19 @@ export interface UserInfoPageGetResponse {
|
|
|
1074
1074
|
'user_info_list'?: Array<UserInfoItem>;
|
|
1075
1075
|
'total'?: string;
|
|
1076
1076
|
}
|
|
1077
|
+
export interface UserInfoUpdateRequest {
|
|
1078
|
+
'uid'?: string;
|
|
1079
|
+
'user'?: UserBasic;
|
|
1080
|
+
'settings'?: PassportpbUserSettings;
|
|
1081
|
+
'preferences'?: UserPreferences;
|
|
1082
|
+
'payment_info'?: UserPaymentInfo;
|
|
1083
|
+
'extend_info'?: UserExtendInfo;
|
|
1084
|
+
'reason'?: string;
|
|
1085
|
+
}
|
|
1086
|
+
export interface UserInfoUpdateResponse {
|
|
1087
|
+
'code'?: string;
|
|
1088
|
+
'message'?: string;
|
|
1089
|
+
}
|
|
1077
1090
|
export interface UserLabelItem {
|
|
1078
1091
|
'uid'?: string;
|
|
1079
1092
|
'label_id'?: string;
|
|
@@ -5784,7 +5797,7 @@ export const UserAdminServiceApiAxiosParamCreator = function (configuration?: Co
|
|
|
5784
5797
|
return {
|
|
5785
5798
|
/**
|
|
5786
5799
|
*
|
|
5787
|
-
* @summary
|
|
5800
|
+
* @summary 用户信息-分页查询接口
|
|
5788
5801
|
* @param {UserInfoPageGetRequest} body
|
|
5789
5802
|
* @param {*} [options] Override http request option.
|
|
5790
5803
|
* @throws {RequiredError}
|
|
@@ -5806,6 +5819,42 @@ export const UserAdminServiceApiAxiosParamCreator = function (configuration?: Co
|
|
|
5806
5819
|
|
|
5807
5820
|
|
|
5808
5821
|
|
|
5822
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5823
|
+
|
|
5824
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5825
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5826
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5827
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
5828
|
+
|
|
5829
|
+
return {
|
|
5830
|
+
url: toPathString(localVarUrlObj),
|
|
5831
|
+
options: localVarRequestOptions,
|
|
5832
|
+
};
|
|
5833
|
+
},
|
|
5834
|
+
/**
|
|
5835
|
+
*
|
|
5836
|
+
* @summary 用户信息-单个更新接口
|
|
5837
|
+
* @param {UserInfoUpdateRequest} body
|
|
5838
|
+
* @param {*} [options] Override http request option.
|
|
5839
|
+
* @throws {RequiredError}
|
|
5840
|
+
*/
|
|
5841
|
+
userAdminServiceUserInfoUpdate: async (body: UserInfoUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5842
|
+
// verify required parameter 'body' is not null or undefined
|
|
5843
|
+
assertParamExists('userAdminServiceUserInfoUpdate', 'body', body)
|
|
5844
|
+
const localVarPath = `/admin/users/update`;
|
|
5845
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5846
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5847
|
+
let baseOptions;
|
|
5848
|
+
if (configuration) {
|
|
5849
|
+
baseOptions = configuration.baseOptions;
|
|
5850
|
+
}
|
|
5851
|
+
|
|
5852
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
5853
|
+
const localVarHeaderParameter = {} as any;
|
|
5854
|
+
const localVarQueryParameter = {} as any;
|
|
5855
|
+
|
|
5856
|
+
|
|
5857
|
+
|
|
5809
5858
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5810
5859
|
|
|
5811
5860
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -5829,7 +5878,7 @@ export const UserAdminServiceApiFp = function(configuration?: Configuration) {
|
|
|
5829
5878
|
return {
|
|
5830
5879
|
/**
|
|
5831
5880
|
*
|
|
5832
|
-
* @summary
|
|
5881
|
+
* @summary 用户信息-分页查询接口
|
|
5833
5882
|
* @param {UserInfoPageGetRequest} body
|
|
5834
5883
|
* @param {*} [options] Override http request option.
|
|
5835
5884
|
* @throws {RequiredError}
|
|
@@ -5840,6 +5889,19 @@ export const UserAdminServiceApiFp = function(configuration?: Configuration) {
|
|
|
5840
5889
|
const localVarOperationServerBasePath = operationServerMap['UserAdminServiceApi.userAdminServiceUserInfoPageGet']?.[localVarOperationServerIndex]?.url;
|
|
5841
5890
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5842
5891
|
},
|
|
5892
|
+
/**
|
|
5893
|
+
*
|
|
5894
|
+
* @summary 用户信息-单个更新接口
|
|
5895
|
+
* @param {UserInfoUpdateRequest} body
|
|
5896
|
+
* @param {*} [options] Override http request option.
|
|
5897
|
+
* @throws {RequiredError}
|
|
5898
|
+
*/
|
|
5899
|
+
async userAdminServiceUserInfoUpdate(body: UserInfoUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserInfoUpdateResponse>> {
|
|
5900
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.userAdminServiceUserInfoUpdate(body, options);
|
|
5901
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5902
|
+
const localVarOperationServerBasePath = operationServerMap['UserAdminServiceApi.userAdminServiceUserInfoUpdate']?.[localVarOperationServerIndex]?.url;
|
|
5903
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5904
|
+
},
|
|
5843
5905
|
}
|
|
5844
5906
|
};
|
|
5845
5907
|
|
|
@@ -5851,7 +5913,7 @@ export const UserAdminServiceApiFactory = function (configuration?: Configuratio
|
|
|
5851
5913
|
return {
|
|
5852
5914
|
/**
|
|
5853
5915
|
*
|
|
5854
|
-
* @summary
|
|
5916
|
+
* @summary 用户信息-分页查询接口
|
|
5855
5917
|
* @param {UserInfoPageGetRequest} body
|
|
5856
5918
|
* @param {*} [options] Override http request option.
|
|
5857
5919
|
* @throws {RequiredError}
|
|
@@ -5859,6 +5921,16 @@ export const UserAdminServiceApiFactory = function (configuration?: Configuratio
|
|
|
5859
5921
|
userAdminServiceUserInfoPageGet(body: UserInfoPageGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserInfoPageGetResponse> {
|
|
5860
5922
|
return localVarFp.userAdminServiceUserInfoPageGet(body, options).then((request) => request(axios, basePath));
|
|
5861
5923
|
},
|
|
5924
|
+
/**
|
|
5925
|
+
*
|
|
5926
|
+
* @summary 用户信息-单个更新接口
|
|
5927
|
+
* @param {UserInfoUpdateRequest} body
|
|
5928
|
+
* @param {*} [options] Override http request option.
|
|
5929
|
+
* @throws {RequiredError}
|
|
5930
|
+
*/
|
|
5931
|
+
userAdminServiceUserInfoUpdate(body: UserInfoUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserInfoUpdateResponse> {
|
|
5932
|
+
return localVarFp.userAdminServiceUserInfoUpdate(body, options).then((request) => request(axios, basePath));
|
|
5933
|
+
},
|
|
5862
5934
|
};
|
|
5863
5935
|
};
|
|
5864
5936
|
|
|
@@ -5868,13 +5940,22 @@ export const UserAdminServiceApiFactory = function (configuration?: Configuratio
|
|
|
5868
5940
|
export interface UserAdminServiceApiInterface {
|
|
5869
5941
|
/**
|
|
5870
5942
|
*
|
|
5871
|
-
* @summary
|
|
5943
|
+
* @summary 用户信息-分页查询接口
|
|
5872
5944
|
* @param {UserInfoPageGetRequest} body
|
|
5873
5945
|
* @param {*} [options] Override http request option.
|
|
5874
5946
|
* @throws {RequiredError}
|
|
5875
5947
|
*/
|
|
5876
5948
|
userAdminServiceUserInfoPageGet(body: UserInfoPageGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserInfoPageGetResponse>;
|
|
5877
5949
|
|
|
5950
|
+
/**
|
|
5951
|
+
*
|
|
5952
|
+
* @summary 用户信息-单个更新接口
|
|
5953
|
+
* @param {UserInfoUpdateRequest} body
|
|
5954
|
+
* @param {*} [options] Override http request option.
|
|
5955
|
+
* @throws {RequiredError}
|
|
5956
|
+
*/
|
|
5957
|
+
userAdminServiceUserInfoUpdate(body: UserInfoUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserInfoUpdateResponse>;
|
|
5958
|
+
|
|
5878
5959
|
}
|
|
5879
5960
|
|
|
5880
5961
|
/**
|
|
@@ -5883,7 +5964,7 @@ export interface UserAdminServiceApiInterface {
|
|
|
5883
5964
|
export class UserAdminServiceApi extends BaseAPI implements UserAdminServiceApiInterface {
|
|
5884
5965
|
/**
|
|
5885
5966
|
*
|
|
5886
|
-
* @summary
|
|
5967
|
+
* @summary 用户信息-分页查询接口
|
|
5887
5968
|
* @param {UserInfoPageGetRequest} body
|
|
5888
5969
|
* @param {*} [options] Override http request option.
|
|
5889
5970
|
* @throws {RequiredError}
|
|
@@ -5891,6 +5972,17 @@ export class UserAdminServiceApi extends BaseAPI implements UserAdminServiceApiI
|
|
|
5891
5972
|
public userAdminServiceUserInfoPageGet(body: UserInfoPageGetRequest, options?: RawAxiosRequestConfig) {
|
|
5892
5973
|
return UserAdminServiceApiFp(this.configuration).userAdminServiceUserInfoPageGet(body, options).then((request) => request(this.axios, this.basePath));
|
|
5893
5974
|
}
|
|
5975
|
+
|
|
5976
|
+
/**
|
|
5977
|
+
*
|
|
5978
|
+
* @summary 用户信息-单个更新接口
|
|
5979
|
+
* @param {UserInfoUpdateRequest} body
|
|
5980
|
+
* @param {*} [options] Override http request option.
|
|
5981
|
+
* @throws {RequiredError}
|
|
5982
|
+
*/
|
|
5983
|
+
public userAdminServiceUserInfoUpdate(body: UserInfoUpdateRequest, options?: RawAxiosRequestConfig) {
|
|
5984
|
+
return UserAdminServiceApiFp(this.configuration).userAdminServiceUserInfoUpdate(body, options).then((request) => request(this.axios, this.basePath));
|
|
5985
|
+
}
|
|
5894
5986
|
}
|
|
5895
5987
|
|
|
5896
5988
|
|
package/dist/api.d.ts
CHANGED
|
@@ -1075,6 +1075,19 @@ export interface UserInfoPageGetResponse {
|
|
|
1075
1075
|
'user_info_list'?: Array<UserInfoItem>;
|
|
1076
1076
|
'total'?: string;
|
|
1077
1077
|
}
|
|
1078
|
+
export interface UserInfoUpdateRequest {
|
|
1079
|
+
'uid'?: string;
|
|
1080
|
+
'user'?: UserBasic;
|
|
1081
|
+
'settings'?: PassportpbUserSettings;
|
|
1082
|
+
'preferences'?: UserPreferences;
|
|
1083
|
+
'payment_info'?: UserPaymentInfo;
|
|
1084
|
+
'extend_info'?: UserExtendInfo;
|
|
1085
|
+
'reason'?: string;
|
|
1086
|
+
}
|
|
1087
|
+
export interface UserInfoUpdateResponse {
|
|
1088
|
+
'code'?: string;
|
|
1089
|
+
'message'?: string;
|
|
1090
|
+
}
|
|
1078
1091
|
export interface UserLabelItem {
|
|
1079
1092
|
'uid'?: string;
|
|
1080
1093
|
'label_id'?: string;
|
|
@@ -3572,12 +3585,20 @@ export declare class UserAPIKeyServiceApi extends BaseAPI implements UserAPIKeyS
|
|
|
3572
3585
|
export declare const UserAdminServiceApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3573
3586
|
/**
|
|
3574
3587
|
*
|
|
3575
|
-
* @summary
|
|
3588
|
+
* @summary 用户信息-分页查询接口
|
|
3576
3589
|
* @param {UserInfoPageGetRequest} body
|
|
3577
3590
|
* @param {*} [options] Override http request option.
|
|
3578
3591
|
* @throws {RequiredError}
|
|
3579
3592
|
*/
|
|
3580
3593
|
userAdminServiceUserInfoPageGet: (body: UserInfoPageGetRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3594
|
+
/**
|
|
3595
|
+
*
|
|
3596
|
+
* @summary 用户信息-单个更新接口
|
|
3597
|
+
* @param {UserInfoUpdateRequest} body
|
|
3598
|
+
* @param {*} [options] Override http request option.
|
|
3599
|
+
* @throws {RequiredError}
|
|
3600
|
+
*/
|
|
3601
|
+
userAdminServiceUserInfoUpdate: (body: UserInfoUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3581
3602
|
};
|
|
3582
3603
|
/**
|
|
3583
3604
|
* UserAdminServiceApi - functional programming interface
|
|
@@ -3585,12 +3606,20 @@ export declare const UserAdminServiceApiAxiosParamCreator: (configuration?: Conf
|
|
|
3585
3606
|
export declare const UserAdminServiceApiFp: (configuration?: Configuration) => {
|
|
3586
3607
|
/**
|
|
3587
3608
|
*
|
|
3588
|
-
* @summary
|
|
3609
|
+
* @summary 用户信息-分页查询接口
|
|
3589
3610
|
* @param {UserInfoPageGetRequest} body
|
|
3590
3611
|
* @param {*} [options] Override http request option.
|
|
3591
3612
|
* @throws {RequiredError}
|
|
3592
3613
|
*/
|
|
3593
3614
|
userAdminServiceUserInfoPageGet(body: UserInfoPageGetRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserInfoPageGetResponse>>;
|
|
3615
|
+
/**
|
|
3616
|
+
*
|
|
3617
|
+
* @summary 用户信息-单个更新接口
|
|
3618
|
+
* @param {UserInfoUpdateRequest} body
|
|
3619
|
+
* @param {*} [options] Override http request option.
|
|
3620
|
+
* @throws {RequiredError}
|
|
3621
|
+
*/
|
|
3622
|
+
userAdminServiceUserInfoUpdate(body: UserInfoUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserInfoUpdateResponse>>;
|
|
3594
3623
|
};
|
|
3595
3624
|
/**
|
|
3596
3625
|
* UserAdminServiceApi - factory interface
|
|
@@ -3598,12 +3627,20 @@ export declare const UserAdminServiceApiFp: (configuration?: Configuration) => {
|
|
|
3598
3627
|
export declare const UserAdminServiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3599
3628
|
/**
|
|
3600
3629
|
*
|
|
3601
|
-
* @summary
|
|
3630
|
+
* @summary 用户信息-分页查询接口
|
|
3602
3631
|
* @param {UserInfoPageGetRequest} body
|
|
3603
3632
|
* @param {*} [options] Override http request option.
|
|
3604
3633
|
* @throws {RequiredError}
|
|
3605
3634
|
*/
|
|
3606
3635
|
userAdminServiceUserInfoPageGet(body: UserInfoPageGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserInfoPageGetResponse>;
|
|
3636
|
+
/**
|
|
3637
|
+
*
|
|
3638
|
+
* @summary 用户信息-单个更新接口
|
|
3639
|
+
* @param {UserInfoUpdateRequest} body
|
|
3640
|
+
* @param {*} [options] Override http request option.
|
|
3641
|
+
* @throws {RequiredError}
|
|
3642
|
+
*/
|
|
3643
|
+
userAdminServiceUserInfoUpdate(body: UserInfoUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserInfoUpdateResponse>;
|
|
3607
3644
|
};
|
|
3608
3645
|
/**
|
|
3609
3646
|
* UserAdminServiceApi - interface
|
|
@@ -3611,12 +3648,20 @@ export declare const UserAdminServiceApiFactory: (configuration?: Configuration,
|
|
|
3611
3648
|
export interface UserAdminServiceApiInterface {
|
|
3612
3649
|
/**
|
|
3613
3650
|
*
|
|
3614
|
-
* @summary
|
|
3651
|
+
* @summary 用户信息-分页查询接口
|
|
3615
3652
|
* @param {UserInfoPageGetRequest} body
|
|
3616
3653
|
* @param {*} [options] Override http request option.
|
|
3617
3654
|
* @throws {RequiredError}
|
|
3618
3655
|
*/
|
|
3619
3656
|
userAdminServiceUserInfoPageGet(body: UserInfoPageGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserInfoPageGetResponse>;
|
|
3657
|
+
/**
|
|
3658
|
+
*
|
|
3659
|
+
* @summary 用户信息-单个更新接口
|
|
3660
|
+
* @param {UserInfoUpdateRequest} body
|
|
3661
|
+
* @param {*} [options] Override http request option.
|
|
3662
|
+
* @throws {RequiredError}
|
|
3663
|
+
*/
|
|
3664
|
+
userAdminServiceUserInfoUpdate(body: UserInfoUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserInfoUpdateResponse>;
|
|
3620
3665
|
}
|
|
3621
3666
|
/**
|
|
3622
3667
|
* UserAdminServiceApi - object-oriented interface
|
|
@@ -3624,12 +3669,20 @@ export interface UserAdminServiceApiInterface {
|
|
|
3624
3669
|
export declare class UserAdminServiceApi extends BaseAPI implements UserAdminServiceApiInterface {
|
|
3625
3670
|
/**
|
|
3626
3671
|
*
|
|
3627
|
-
* @summary
|
|
3672
|
+
* @summary 用户信息-分页查询接口
|
|
3628
3673
|
* @param {UserInfoPageGetRequest} body
|
|
3629
3674
|
* @param {*} [options] Override http request option.
|
|
3630
3675
|
* @throws {RequiredError}
|
|
3631
3676
|
*/
|
|
3632
3677
|
userAdminServiceUserInfoPageGet(body: UserInfoPageGetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserInfoPageGetResponse, any, {}>>;
|
|
3678
|
+
/**
|
|
3679
|
+
*
|
|
3680
|
+
* @summary 用户信息-单个更新接口
|
|
3681
|
+
* @param {UserInfoUpdateRequest} body
|
|
3682
|
+
* @param {*} [options] Override http request option.
|
|
3683
|
+
* @throws {RequiredError}
|
|
3684
|
+
*/
|
|
3685
|
+
userAdminServiceUserInfoUpdate(body: UserInfoUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserInfoUpdateResponse, any, {}>>;
|
|
3633
3686
|
}
|
|
3634
3687
|
/**
|
|
3635
3688
|
* UserBalanceServiceApi - axios parameter creator
|
package/dist/api.js
CHANGED
|
@@ -3857,7 +3857,7 @@ const UserAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
|
3857
3857
|
return {
|
|
3858
3858
|
/**
|
|
3859
3859
|
*
|
|
3860
|
-
* @summary
|
|
3860
|
+
* @summary 用户信息-分页查询接口
|
|
3861
3861
|
* @param {UserInfoPageGetRequest} body
|
|
3862
3862
|
* @param {*} [options] Override http request option.
|
|
3863
3863
|
* @throws {RequiredError}
|
|
@@ -3885,6 +3885,36 @@ const UserAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
|
3885
3885
|
options: localVarRequestOptions,
|
|
3886
3886
|
};
|
|
3887
3887
|
}),
|
|
3888
|
+
/**
|
|
3889
|
+
*
|
|
3890
|
+
* @summary 用户信息-单个更新接口
|
|
3891
|
+
* @param {UserInfoUpdateRequest} body
|
|
3892
|
+
* @param {*} [options] Override http request option.
|
|
3893
|
+
* @throws {RequiredError}
|
|
3894
|
+
*/
|
|
3895
|
+
userAdminServiceUserInfoUpdate: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
3896
|
+
// verify required parameter 'body' is not null or undefined
|
|
3897
|
+
(0, common_1.assertParamExists)('userAdminServiceUserInfoUpdate', 'body', body);
|
|
3898
|
+
const localVarPath = `/admin/users/update`;
|
|
3899
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3900
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3901
|
+
let baseOptions;
|
|
3902
|
+
if (configuration) {
|
|
3903
|
+
baseOptions = configuration.baseOptions;
|
|
3904
|
+
}
|
|
3905
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3906
|
+
const localVarHeaderParameter = {};
|
|
3907
|
+
const localVarQueryParameter = {};
|
|
3908
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3909
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3910
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3911
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3912
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
3913
|
+
return {
|
|
3914
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3915
|
+
options: localVarRequestOptions,
|
|
3916
|
+
};
|
|
3917
|
+
}),
|
|
3888
3918
|
};
|
|
3889
3919
|
};
|
|
3890
3920
|
exports.UserAdminServiceApiAxiosParamCreator = UserAdminServiceApiAxiosParamCreator;
|
|
@@ -3896,7 +3926,7 @@ const UserAdminServiceApiFp = function (configuration) {
|
|
|
3896
3926
|
return {
|
|
3897
3927
|
/**
|
|
3898
3928
|
*
|
|
3899
|
-
* @summary
|
|
3929
|
+
* @summary 用户信息-分页查询接口
|
|
3900
3930
|
* @param {UserInfoPageGetRequest} body
|
|
3901
3931
|
* @param {*} [options] Override http request option.
|
|
3902
3932
|
* @throws {RequiredError}
|
|
@@ -3910,6 +3940,22 @@ const UserAdminServiceApiFp = function (configuration) {
|
|
|
3910
3940
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3911
3941
|
});
|
|
3912
3942
|
},
|
|
3943
|
+
/**
|
|
3944
|
+
*
|
|
3945
|
+
* @summary 用户信息-单个更新接口
|
|
3946
|
+
* @param {UserInfoUpdateRequest} body
|
|
3947
|
+
* @param {*} [options] Override http request option.
|
|
3948
|
+
* @throws {RequiredError}
|
|
3949
|
+
*/
|
|
3950
|
+
userAdminServiceUserInfoUpdate(body, options) {
|
|
3951
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3952
|
+
var _a, _b, _c;
|
|
3953
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.userAdminServiceUserInfoUpdate(body, options);
|
|
3954
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3955
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserAdminServiceApi.userAdminServiceUserInfoUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3956
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3957
|
+
});
|
|
3958
|
+
},
|
|
3913
3959
|
};
|
|
3914
3960
|
};
|
|
3915
3961
|
exports.UserAdminServiceApiFp = UserAdminServiceApiFp;
|
|
@@ -3921,7 +3967,7 @@ const UserAdminServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
3921
3967
|
return {
|
|
3922
3968
|
/**
|
|
3923
3969
|
*
|
|
3924
|
-
* @summary
|
|
3970
|
+
* @summary 用户信息-分页查询接口
|
|
3925
3971
|
* @param {UserInfoPageGetRequest} body
|
|
3926
3972
|
* @param {*} [options] Override http request option.
|
|
3927
3973
|
* @throws {RequiredError}
|
|
@@ -3929,6 +3975,16 @@ const UserAdminServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
3929
3975
|
userAdminServiceUserInfoPageGet(body, options) {
|
|
3930
3976
|
return localVarFp.userAdminServiceUserInfoPageGet(body, options).then((request) => request(axios, basePath));
|
|
3931
3977
|
},
|
|
3978
|
+
/**
|
|
3979
|
+
*
|
|
3980
|
+
* @summary 用户信息-单个更新接口
|
|
3981
|
+
* @param {UserInfoUpdateRequest} body
|
|
3982
|
+
* @param {*} [options] Override http request option.
|
|
3983
|
+
* @throws {RequiredError}
|
|
3984
|
+
*/
|
|
3985
|
+
userAdminServiceUserInfoUpdate(body, options) {
|
|
3986
|
+
return localVarFp.userAdminServiceUserInfoUpdate(body, options).then((request) => request(axios, basePath));
|
|
3987
|
+
},
|
|
3932
3988
|
};
|
|
3933
3989
|
};
|
|
3934
3990
|
exports.UserAdminServiceApiFactory = UserAdminServiceApiFactory;
|
|
@@ -3938,7 +3994,7 @@ exports.UserAdminServiceApiFactory = UserAdminServiceApiFactory;
|
|
|
3938
3994
|
class UserAdminServiceApi extends base_1.BaseAPI {
|
|
3939
3995
|
/**
|
|
3940
3996
|
*
|
|
3941
|
-
* @summary
|
|
3997
|
+
* @summary 用户信息-分页查询接口
|
|
3942
3998
|
* @param {UserInfoPageGetRequest} body
|
|
3943
3999
|
* @param {*} [options] Override http request option.
|
|
3944
4000
|
* @throws {RequiredError}
|
|
@@ -3946,6 +4002,16 @@ class UserAdminServiceApi extends base_1.BaseAPI {
|
|
|
3946
4002
|
userAdminServiceUserInfoPageGet(body, options) {
|
|
3947
4003
|
return (0, exports.UserAdminServiceApiFp)(this.configuration).userAdminServiceUserInfoPageGet(body, options).then((request) => request(this.axios, this.basePath));
|
|
3948
4004
|
}
|
|
4005
|
+
/**
|
|
4006
|
+
*
|
|
4007
|
+
* @summary 用户信息-单个更新接口
|
|
4008
|
+
* @param {UserInfoUpdateRequest} body
|
|
4009
|
+
* @param {*} [options] Override http request option.
|
|
4010
|
+
* @throws {RequiredError}
|
|
4011
|
+
*/
|
|
4012
|
+
userAdminServiceUserInfoUpdate(body, options) {
|
|
4013
|
+
return (0, exports.UserAdminServiceApiFp)(this.configuration).userAdminServiceUserInfoUpdate(body, options).then((request) => request(this.axios, this.basePath));
|
|
4014
|
+
}
|
|
3949
4015
|
}
|
|
3950
4016
|
exports.UserAdminServiceApi = UserAdminServiceApi;
|
|
3951
4017
|
/**
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -1075,6 +1075,19 @@ export interface UserInfoPageGetResponse {
|
|
|
1075
1075
|
'user_info_list'?: Array<UserInfoItem>;
|
|
1076
1076
|
'total'?: string;
|
|
1077
1077
|
}
|
|
1078
|
+
export interface UserInfoUpdateRequest {
|
|
1079
|
+
'uid'?: string;
|
|
1080
|
+
'user'?: UserBasic;
|
|
1081
|
+
'settings'?: PassportpbUserSettings;
|
|
1082
|
+
'preferences'?: UserPreferences;
|
|
1083
|
+
'payment_info'?: UserPaymentInfo;
|
|
1084
|
+
'extend_info'?: UserExtendInfo;
|
|
1085
|
+
'reason'?: string;
|
|
1086
|
+
}
|
|
1087
|
+
export interface UserInfoUpdateResponse {
|
|
1088
|
+
'code'?: string;
|
|
1089
|
+
'message'?: string;
|
|
1090
|
+
}
|
|
1078
1091
|
export interface UserLabelItem {
|
|
1079
1092
|
'uid'?: string;
|
|
1080
1093
|
'label_id'?: string;
|
|
@@ -3572,12 +3585,20 @@ export declare class UserAPIKeyServiceApi extends BaseAPI implements UserAPIKeyS
|
|
|
3572
3585
|
export declare const UserAdminServiceApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3573
3586
|
/**
|
|
3574
3587
|
*
|
|
3575
|
-
* @summary
|
|
3588
|
+
* @summary 用户信息-分页查询接口
|
|
3576
3589
|
* @param {UserInfoPageGetRequest} body
|
|
3577
3590
|
* @param {*} [options] Override http request option.
|
|
3578
3591
|
* @throws {RequiredError}
|
|
3579
3592
|
*/
|
|
3580
3593
|
userAdminServiceUserInfoPageGet: (body: UserInfoPageGetRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3594
|
+
/**
|
|
3595
|
+
*
|
|
3596
|
+
* @summary 用户信息-单个更新接口
|
|
3597
|
+
* @param {UserInfoUpdateRequest} body
|
|
3598
|
+
* @param {*} [options] Override http request option.
|
|
3599
|
+
* @throws {RequiredError}
|
|
3600
|
+
*/
|
|
3601
|
+
userAdminServiceUserInfoUpdate: (body: UserInfoUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3581
3602
|
};
|
|
3582
3603
|
/**
|
|
3583
3604
|
* UserAdminServiceApi - functional programming interface
|
|
@@ -3585,12 +3606,20 @@ export declare const UserAdminServiceApiAxiosParamCreator: (configuration?: Conf
|
|
|
3585
3606
|
export declare const UserAdminServiceApiFp: (configuration?: Configuration) => {
|
|
3586
3607
|
/**
|
|
3587
3608
|
*
|
|
3588
|
-
* @summary
|
|
3609
|
+
* @summary 用户信息-分页查询接口
|
|
3589
3610
|
* @param {UserInfoPageGetRequest} body
|
|
3590
3611
|
* @param {*} [options] Override http request option.
|
|
3591
3612
|
* @throws {RequiredError}
|
|
3592
3613
|
*/
|
|
3593
3614
|
userAdminServiceUserInfoPageGet(body: UserInfoPageGetRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserInfoPageGetResponse>>;
|
|
3615
|
+
/**
|
|
3616
|
+
*
|
|
3617
|
+
* @summary 用户信息-单个更新接口
|
|
3618
|
+
* @param {UserInfoUpdateRequest} body
|
|
3619
|
+
* @param {*} [options] Override http request option.
|
|
3620
|
+
* @throws {RequiredError}
|
|
3621
|
+
*/
|
|
3622
|
+
userAdminServiceUserInfoUpdate(body: UserInfoUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserInfoUpdateResponse>>;
|
|
3594
3623
|
};
|
|
3595
3624
|
/**
|
|
3596
3625
|
* UserAdminServiceApi - factory interface
|
|
@@ -3598,12 +3627,20 @@ export declare const UserAdminServiceApiFp: (configuration?: Configuration) => {
|
|
|
3598
3627
|
export declare const UserAdminServiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3599
3628
|
/**
|
|
3600
3629
|
*
|
|
3601
|
-
* @summary
|
|
3630
|
+
* @summary 用户信息-分页查询接口
|
|
3602
3631
|
* @param {UserInfoPageGetRequest} body
|
|
3603
3632
|
* @param {*} [options] Override http request option.
|
|
3604
3633
|
* @throws {RequiredError}
|
|
3605
3634
|
*/
|
|
3606
3635
|
userAdminServiceUserInfoPageGet(body: UserInfoPageGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserInfoPageGetResponse>;
|
|
3636
|
+
/**
|
|
3637
|
+
*
|
|
3638
|
+
* @summary 用户信息-单个更新接口
|
|
3639
|
+
* @param {UserInfoUpdateRequest} body
|
|
3640
|
+
* @param {*} [options] Override http request option.
|
|
3641
|
+
* @throws {RequiredError}
|
|
3642
|
+
*/
|
|
3643
|
+
userAdminServiceUserInfoUpdate(body: UserInfoUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserInfoUpdateResponse>;
|
|
3607
3644
|
};
|
|
3608
3645
|
/**
|
|
3609
3646
|
* UserAdminServiceApi - interface
|
|
@@ -3611,12 +3648,20 @@ export declare const UserAdminServiceApiFactory: (configuration?: Configuration,
|
|
|
3611
3648
|
export interface UserAdminServiceApiInterface {
|
|
3612
3649
|
/**
|
|
3613
3650
|
*
|
|
3614
|
-
* @summary
|
|
3651
|
+
* @summary 用户信息-分页查询接口
|
|
3615
3652
|
* @param {UserInfoPageGetRequest} body
|
|
3616
3653
|
* @param {*} [options] Override http request option.
|
|
3617
3654
|
* @throws {RequiredError}
|
|
3618
3655
|
*/
|
|
3619
3656
|
userAdminServiceUserInfoPageGet(body: UserInfoPageGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserInfoPageGetResponse>;
|
|
3657
|
+
/**
|
|
3658
|
+
*
|
|
3659
|
+
* @summary 用户信息-单个更新接口
|
|
3660
|
+
* @param {UserInfoUpdateRequest} body
|
|
3661
|
+
* @param {*} [options] Override http request option.
|
|
3662
|
+
* @throws {RequiredError}
|
|
3663
|
+
*/
|
|
3664
|
+
userAdminServiceUserInfoUpdate(body: UserInfoUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserInfoUpdateResponse>;
|
|
3620
3665
|
}
|
|
3621
3666
|
/**
|
|
3622
3667
|
* UserAdminServiceApi - object-oriented interface
|
|
@@ -3624,12 +3669,20 @@ export interface UserAdminServiceApiInterface {
|
|
|
3624
3669
|
export declare class UserAdminServiceApi extends BaseAPI implements UserAdminServiceApiInterface {
|
|
3625
3670
|
/**
|
|
3626
3671
|
*
|
|
3627
|
-
* @summary
|
|
3672
|
+
* @summary 用户信息-分页查询接口
|
|
3628
3673
|
* @param {UserInfoPageGetRequest} body
|
|
3629
3674
|
* @param {*} [options] Override http request option.
|
|
3630
3675
|
* @throws {RequiredError}
|
|
3631
3676
|
*/
|
|
3632
3677
|
userAdminServiceUserInfoPageGet(body: UserInfoPageGetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserInfoPageGetResponse, any, {}>>;
|
|
3678
|
+
/**
|
|
3679
|
+
*
|
|
3680
|
+
* @summary 用户信息-单个更新接口
|
|
3681
|
+
* @param {UserInfoUpdateRequest} body
|
|
3682
|
+
* @param {*} [options] Override http request option.
|
|
3683
|
+
* @throws {RequiredError}
|
|
3684
|
+
*/
|
|
3685
|
+
userAdminServiceUserInfoUpdate(body: UserInfoUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserInfoUpdateResponse, any, {}>>;
|
|
3633
3686
|
}
|
|
3634
3687
|
/**
|
|
3635
3688
|
* UserBalanceServiceApi - axios parameter creator
|
package/dist/esm/api.js
CHANGED
|
@@ -3825,7 +3825,7 @@ export const UserAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
|
3825
3825
|
return {
|
|
3826
3826
|
/**
|
|
3827
3827
|
*
|
|
3828
|
-
* @summary
|
|
3828
|
+
* @summary 用户信息-分页查询接口
|
|
3829
3829
|
* @param {UserInfoPageGetRequest} body
|
|
3830
3830
|
* @param {*} [options] Override http request option.
|
|
3831
3831
|
* @throws {RequiredError}
|
|
@@ -3853,6 +3853,36 @@ export const UserAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
|
3853
3853
|
options: localVarRequestOptions,
|
|
3854
3854
|
};
|
|
3855
3855
|
}),
|
|
3856
|
+
/**
|
|
3857
|
+
*
|
|
3858
|
+
* @summary 用户信息-单个更新接口
|
|
3859
|
+
* @param {UserInfoUpdateRequest} body
|
|
3860
|
+
* @param {*} [options] Override http request option.
|
|
3861
|
+
* @throws {RequiredError}
|
|
3862
|
+
*/
|
|
3863
|
+
userAdminServiceUserInfoUpdate: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
3864
|
+
// verify required parameter 'body' is not null or undefined
|
|
3865
|
+
assertParamExists('userAdminServiceUserInfoUpdate', 'body', body);
|
|
3866
|
+
const localVarPath = `/admin/users/update`;
|
|
3867
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3868
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3869
|
+
let baseOptions;
|
|
3870
|
+
if (configuration) {
|
|
3871
|
+
baseOptions = configuration.baseOptions;
|
|
3872
|
+
}
|
|
3873
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3874
|
+
const localVarHeaderParameter = {};
|
|
3875
|
+
const localVarQueryParameter = {};
|
|
3876
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3877
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3878
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3879
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3880
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
3881
|
+
return {
|
|
3882
|
+
url: toPathString(localVarUrlObj),
|
|
3883
|
+
options: localVarRequestOptions,
|
|
3884
|
+
};
|
|
3885
|
+
}),
|
|
3856
3886
|
};
|
|
3857
3887
|
};
|
|
3858
3888
|
/**
|
|
@@ -3863,7 +3893,7 @@ export const UserAdminServiceApiFp = function (configuration) {
|
|
|
3863
3893
|
return {
|
|
3864
3894
|
/**
|
|
3865
3895
|
*
|
|
3866
|
-
* @summary
|
|
3896
|
+
* @summary 用户信息-分页查询接口
|
|
3867
3897
|
* @param {UserInfoPageGetRequest} body
|
|
3868
3898
|
* @param {*} [options] Override http request option.
|
|
3869
3899
|
* @throws {RequiredError}
|
|
@@ -3877,6 +3907,22 @@ export const UserAdminServiceApiFp = function (configuration) {
|
|
|
3877
3907
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3878
3908
|
});
|
|
3879
3909
|
},
|
|
3910
|
+
/**
|
|
3911
|
+
*
|
|
3912
|
+
* @summary 用户信息-单个更新接口
|
|
3913
|
+
* @param {UserInfoUpdateRequest} body
|
|
3914
|
+
* @param {*} [options] Override http request option.
|
|
3915
|
+
* @throws {RequiredError}
|
|
3916
|
+
*/
|
|
3917
|
+
userAdminServiceUserInfoUpdate(body, options) {
|
|
3918
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3919
|
+
var _a, _b, _c;
|
|
3920
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.userAdminServiceUserInfoUpdate(body, options);
|
|
3921
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3922
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserAdminServiceApi.userAdminServiceUserInfoUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3923
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3924
|
+
});
|
|
3925
|
+
},
|
|
3880
3926
|
};
|
|
3881
3927
|
};
|
|
3882
3928
|
/**
|
|
@@ -3887,7 +3933,7 @@ export const UserAdminServiceApiFactory = function (configuration, basePath, axi
|
|
|
3887
3933
|
return {
|
|
3888
3934
|
/**
|
|
3889
3935
|
*
|
|
3890
|
-
* @summary
|
|
3936
|
+
* @summary 用户信息-分页查询接口
|
|
3891
3937
|
* @param {UserInfoPageGetRequest} body
|
|
3892
3938
|
* @param {*} [options] Override http request option.
|
|
3893
3939
|
* @throws {RequiredError}
|
|
@@ -3895,6 +3941,16 @@ export const UserAdminServiceApiFactory = function (configuration, basePath, axi
|
|
|
3895
3941
|
userAdminServiceUserInfoPageGet(body, options) {
|
|
3896
3942
|
return localVarFp.userAdminServiceUserInfoPageGet(body, options).then((request) => request(axios, basePath));
|
|
3897
3943
|
},
|
|
3944
|
+
/**
|
|
3945
|
+
*
|
|
3946
|
+
* @summary 用户信息-单个更新接口
|
|
3947
|
+
* @param {UserInfoUpdateRequest} body
|
|
3948
|
+
* @param {*} [options] Override http request option.
|
|
3949
|
+
* @throws {RequiredError}
|
|
3950
|
+
*/
|
|
3951
|
+
userAdminServiceUserInfoUpdate(body, options) {
|
|
3952
|
+
return localVarFp.userAdminServiceUserInfoUpdate(body, options).then((request) => request(axios, basePath));
|
|
3953
|
+
},
|
|
3898
3954
|
};
|
|
3899
3955
|
};
|
|
3900
3956
|
/**
|
|
@@ -3903,7 +3959,7 @@ export const UserAdminServiceApiFactory = function (configuration, basePath, axi
|
|
|
3903
3959
|
export class UserAdminServiceApi extends BaseAPI {
|
|
3904
3960
|
/**
|
|
3905
3961
|
*
|
|
3906
|
-
* @summary
|
|
3962
|
+
* @summary 用户信息-分页查询接口
|
|
3907
3963
|
* @param {UserInfoPageGetRequest} body
|
|
3908
3964
|
* @param {*} [options] Override http request option.
|
|
3909
3965
|
* @throws {RequiredError}
|
|
@@ -3911,6 +3967,16 @@ export class UserAdminServiceApi extends BaseAPI {
|
|
|
3911
3967
|
userAdminServiceUserInfoPageGet(body, options) {
|
|
3912
3968
|
return UserAdminServiceApiFp(this.configuration).userAdminServiceUserInfoPageGet(body, options).then((request) => request(this.axios, this.basePath));
|
|
3913
3969
|
}
|
|
3970
|
+
/**
|
|
3971
|
+
*
|
|
3972
|
+
* @summary 用户信息-单个更新接口
|
|
3973
|
+
* @param {UserInfoUpdateRequest} body
|
|
3974
|
+
* @param {*} [options] Override http request option.
|
|
3975
|
+
* @throws {RequiredError}
|
|
3976
|
+
*/
|
|
3977
|
+
userAdminServiceUserInfoUpdate(body, options) {
|
|
3978
|
+
return UserAdminServiceApiFp(this.configuration).userAdminServiceUserInfoUpdate(body, options).then((request) => request(this.axios, this.basePath));
|
|
3979
|
+
}
|
|
3914
3980
|
}
|
|
3915
3981
|
/**
|
|
3916
3982
|
* UserBalanceServiceApi - axios parameter creator
|
|
@@ -4,7 +4,8 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**userAdminServiceUserInfoPageGet**](#useradminserviceuserinfopageget) | **POST** /admin/users/search |
|
|
7
|
+
|[**userAdminServiceUserInfoPageGet**](#useradminserviceuserinfopageget) | **POST** /admin/users/search | 用户信息-分页查询接口|
|
|
8
|
+
|[**userAdminServiceUserInfoUpdate**](#useradminserviceuserinfoupdate) | **POST** /admin/users/update | 用户信息-单个更新接口|
|
|
8
9
|
|
|
9
10
|
# **userAdminServiceUserInfoPageGet**
|
|
10
11
|
> UserInfoPageGetResponse userAdminServiceUserInfoPageGet(body)
|
|
@@ -58,3 +59,55 @@ No authorization required
|
|
|
58
59
|
|
|
59
60
|
[[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)
|
|
60
61
|
|
|
62
|
+
# **userAdminServiceUserInfoUpdate**
|
|
63
|
+
> UserInfoUpdateResponse userAdminServiceUserInfoUpdate(body)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
### Example
|
|
67
|
+
|
|
68
|
+
```typescript
|
|
69
|
+
import {
|
|
70
|
+
UserAdminServiceApi,
|
|
71
|
+
Configuration,
|
|
72
|
+
UserInfoUpdateRequest
|
|
73
|
+
} from '@cherryin/aigw-api-client';
|
|
74
|
+
|
|
75
|
+
const configuration = new Configuration();
|
|
76
|
+
const apiInstance = new UserAdminServiceApi(configuration);
|
|
77
|
+
|
|
78
|
+
let body: UserInfoUpdateRequest; //
|
|
79
|
+
|
|
80
|
+
const { status, data } = await apiInstance.userAdminServiceUserInfoUpdate(
|
|
81
|
+
body
|
|
82
|
+
);
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Parameters
|
|
86
|
+
|
|
87
|
+
|Name | Type | Description | Notes|
|
|
88
|
+
|------------- | ------------- | ------------- | -------------|
|
|
89
|
+
| **body** | **UserInfoUpdateRequest**| | |
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
### Return type
|
|
93
|
+
|
|
94
|
+
**UserInfoUpdateResponse**
|
|
95
|
+
|
|
96
|
+
### Authorization
|
|
97
|
+
|
|
98
|
+
No authorization required
|
|
99
|
+
|
|
100
|
+
### HTTP request headers
|
|
101
|
+
|
|
102
|
+
- **Content-Type**: application/json
|
|
103
|
+
- **Accept**: application/json
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
### HTTP response details
|
|
107
|
+
| Status code | Description | Response headers |
|
|
108
|
+
|-------------|-------------|------------------|
|
|
109
|
+
|**200** | A successful response. | - |
|
|
110
|
+
|**0** | An unexpected error response. | - |
|
|
111
|
+
|
|
112
|
+
[[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)
|
|
113
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# UserInfoUpdateRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**uid** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**user** | [**UserBasic**](UserBasic.md) | | [optional] [default to undefined]
|
|
10
|
+
**settings** | [**PassportpbUserSettings**](PassportpbUserSettings.md) | | [optional] [default to undefined]
|
|
11
|
+
**preferences** | [**UserPreferences**](UserPreferences.md) | | [optional] [default to undefined]
|
|
12
|
+
**payment_info** | [**UserPaymentInfo**](UserPaymentInfo.md) | | [optional] [default to undefined]
|
|
13
|
+
**extend_info** | [**UserExtendInfo**](UserExtendInfo.md) | | [optional] [default to undefined]
|
|
14
|
+
**reason** | **string** | | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { UserInfoUpdateRequest } from '@cherryin/aigw-api-client';
|
|
20
|
+
|
|
21
|
+
const instance: UserInfoUpdateRequest = {
|
|
22
|
+
uid,
|
|
23
|
+
user,
|
|
24
|
+
settings,
|
|
25
|
+
preferences,
|
|
26
|
+
payment_info,
|
|
27
|
+
extend_info,
|
|
28
|
+
reason,
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# UserInfoUpdateResponse
|
|
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
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { UserInfoUpdateResponse } from '@cherryin/aigw-api-client';
|
|
15
|
+
|
|
16
|
+
const instance: UserInfoUpdateResponse = {
|
|
17
|
+
code,
|
|
18
|
+
message,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|