@cherryin/aigw-api-client 0.1.28 → 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 +99 -5
- package/dist/api.d.ts +60 -5
- package/dist/api.js +70 -4
- package/dist/esm/api.d.ts +60 -5
- package/dist/esm/api.js +70 -4
- package/docs/UserAdminServiceApi.md +54 -1
- package/docs/UserBasic.md +4 -0
- 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
|
@@ -1050,6 +1050,8 @@ export interface UserBasic {
|
|
|
1050
1050
|
'phone_verified_at'?: string;
|
|
1051
1051
|
'app_name'?: string;
|
|
1052
1052
|
'user_status'?: number;
|
|
1053
|
+
'role'?: number;
|
|
1054
|
+
'disabled_until'?: string;
|
|
1053
1055
|
}
|
|
1054
1056
|
export interface UserExtendInfo {
|
|
1055
1057
|
'user_groups'?: Array<string>;
|
|
@@ -1072,6 +1074,19 @@ export interface UserInfoPageGetResponse {
|
|
|
1072
1074
|
'user_info_list'?: Array<UserInfoItem>;
|
|
1073
1075
|
'total'?: string;
|
|
1074
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
|
+
}
|
|
1075
1090
|
export interface UserLabelItem {
|
|
1076
1091
|
'uid'?: string;
|
|
1077
1092
|
'label_id'?: string;
|
|
@@ -5782,7 +5797,7 @@ export const UserAdminServiceApiAxiosParamCreator = function (configuration?: Co
|
|
|
5782
5797
|
return {
|
|
5783
5798
|
/**
|
|
5784
5799
|
*
|
|
5785
|
-
* @summary
|
|
5800
|
+
* @summary 用户信息-分页查询接口
|
|
5786
5801
|
* @param {UserInfoPageGetRequest} body
|
|
5787
5802
|
* @param {*} [options] Override http request option.
|
|
5788
5803
|
* @throws {RequiredError}
|
|
@@ -5804,6 +5819,42 @@ export const UserAdminServiceApiAxiosParamCreator = function (configuration?: Co
|
|
|
5804
5819
|
|
|
5805
5820
|
|
|
5806
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
|
+
|
|
5807
5858
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5808
5859
|
|
|
5809
5860
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -5827,7 +5878,7 @@ export const UserAdminServiceApiFp = function(configuration?: Configuration) {
|
|
|
5827
5878
|
return {
|
|
5828
5879
|
/**
|
|
5829
5880
|
*
|
|
5830
|
-
* @summary
|
|
5881
|
+
* @summary 用户信息-分页查询接口
|
|
5831
5882
|
* @param {UserInfoPageGetRequest} body
|
|
5832
5883
|
* @param {*} [options] Override http request option.
|
|
5833
5884
|
* @throws {RequiredError}
|
|
@@ -5838,6 +5889,19 @@ export const UserAdminServiceApiFp = function(configuration?: Configuration) {
|
|
|
5838
5889
|
const localVarOperationServerBasePath = operationServerMap['UserAdminServiceApi.userAdminServiceUserInfoPageGet']?.[localVarOperationServerIndex]?.url;
|
|
5839
5890
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5840
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
|
+
},
|
|
5841
5905
|
}
|
|
5842
5906
|
};
|
|
5843
5907
|
|
|
@@ -5849,7 +5913,7 @@ export const UserAdminServiceApiFactory = function (configuration?: Configuratio
|
|
|
5849
5913
|
return {
|
|
5850
5914
|
/**
|
|
5851
5915
|
*
|
|
5852
|
-
* @summary
|
|
5916
|
+
* @summary 用户信息-分页查询接口
|
|
5853
5917
|
* @param {UserInfoPageGetRequest} body
|
|
5854
5918
|
* @param {*} [options] Override http request option.
|
|
5855
5919
|
* @throws {RequiredError}
|
|
@@ -5857,6 +5921,16 @@ export const UserAdminServiceApiFactory = function (configuration?: Configuratio
|
|
|
5857
5921
|
userAdminServiceUserInfoPageGet(body: UserInfoPageGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserInfoPageGetResponse> {
|
|
5858
5922
|
return localVarFp.userAdminServiceUserInfoPageGet(body, options).then((request) => request(axios, basePath));
|
|
5859
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
|
+
},
|
|
5860
5934
|
};
|
|
5861
5935
|
};
|
|
5862
5936
|
|
|
@@ -5866,13 +5940,22 @@ export const UserAdminServiceApiFactory = function (configuration?: Configuratio
|
|
|
5866
5940
|
export interface UserAdminServiceApiInterface {
|
|
5867
5941
|
/**
|
|
5868
5942
|
*
|
|
5869
|
-
* @summary
|
|
5943
|
+
* @summary 用户信息-分页查询接口
|
|
5870
5944
|
* @param {UserInfoPageGetRequest} body
|
|
5871
5945
|
* @param {*} [options] Override http request option.
|
|
5872
5946
|
* @throws {RequiredError}
|
|
5873
5947
|
*/
|
|
5874
5948
|
userAdminServiceUserInfoPageGet(body: UserInfoPageGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserInfoPageGetResponse>;
|
|
5875
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
|
+
|
|
5876
5959
|
}
|
|
5877
5960
|
|
|
5878
5961
|
/**
|
|
@@ -5881,7 +5964,7 @@ export interface UserAdminServiceApiInterface {
|
|
|
5881
5964
|
export class UserAdminServiceApi extends BaseAPI implements UserAdminServiceApiInterface {
|
|
5882
5965
|
/**
|
|
5883
5966
|
*
|
|
5884
|
-
* @summary
|
|
5967
|
+
* @summary 用户信息-分页查询接口
|
|
5885
5968
|
* @param {UserInfoPageGetRequest} body
|
|
5886
5969
|
* @param {*} [options] Override http request option.
|
|
5887
5970
|
* @throws {RequiredError}
|
|
@@ -5889,6 +5972,17 @@ export class UserAdminServiceApi extends BaseAPI implements UserAdminServiceApiI
|
|
|
5889
5972
|
public userAdminServiceUserInfoPageGet(body: UserInfoPageGetRequest, options?: RawAxiosRequestConfig) {
|
|
5890
5973
|
return UserAdminServiceApiFp(this.configuration).userAdminServiceUserInfoPageGet(body, options).then((request) => request(this.axios, this.basePath));
|
|
5891
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
|
+
}
|
|
5892
5986
|
}
|
|
5893
5987
|
|
|
5894
5988
|
|
package/dist/api.d.ts
CHANGED
|
@@ -1051,6 +1051,8 @@ export interface UserBasic {
|
|
|
1051
1051
|
'phone_verified_at'?: string;
|
|
1052
1052
|
'app_name'?: string;
|
|
1053
1053
|
'user_status'?: number;
|
|
1054
|
+
'role'?: number;
|
|
1055
|
+
'disabled_until'?: string;
|
|
1054
1056
|
}
|
|
1055
1057
|
export interface UserExtendInfo {
|
|
1056
1058
|
'user_groups'?: Array<string>;
|
|
@@ -1073,6 +1075,19 @@ export interface UserInfoPageGetResponse {
|
|
|
1073
1075
|
'user_info_list'?: Array<UserInfoItem>;
|
|
1074
1076
|
'total'?: string;
|
|
1075
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
|
+
}
|
|
1076
1091
|
export interface UserLabelItem {
|
|
1077
1092
|
'uid'?: string;
|
|
1078
1093
|
'label_id'?: string;
|
|
@@ -3570,12 +3585,20 @@ export declare class UserAPIKeyServiceApi extends BaseAPI implements UserAPIKeyS
|
|
|
3570
3585
|
export declare const UserAdminServiceApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3571
3586
|
/**
|
|
3572
3587
|
*
|
|
3573
|
-
* @summary
|
|
3588
|
+
* @summary 用户信息-分页查询接口
|
|
3574
3589
|
* @param {UserInfoPageGetRequest} body
|
|
3575
3590
|
* @param {*} [options] Override http request option.
|
|
3576
3591
|
* @throws {RequiredError}
|
|
3577
3592
|
*/
|
|
3578
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>;
|
|
3579
3602
|
};
|
|
3580
3603
|
/**
|
|
3581
3604
|
* UserAdminServiceApi - functional programming interface
|
|
@@ -3583,12 +3606,20 @@ export declare const UserAdminServiceApiAxiosParamCreator: (configuration?: Conf
|
|
|
3583
3606
|
export declare const UserAdminServiceApiFp: (configuration?: Configuration) => {
|
|
3584
3607
|
/**
|
|
3585
3608
|
*
|
|
3586
|
-
* @summary
|
|
3609
|
+
* @summary 用户信息-分页查询接口
|
|
3587
3610
|
* @param {UserInfoPageGetRequest} body
|
|
3588
3611
|
* @param {*} [options] Override http request option.
|
|
3589
3612
|
* @throws {RequiredError}
|
|
3590
3613
|
*/
|
|
3591
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>>;
|
|
3592
3623
|
};
|
|
3593
3624
|
/**
|
|
3594
3625
|
* UserAdminServiceApi - factory interface
|
|
@@ -3596,12 +3627,20 @@ export declare const UserAdminServiceApiFp: (configuration?: Configuration) => {
|
|
|
3596
3627
|
export declare const UserAdminServiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3597
3628
|
/**
|
|
3598
3629
|
*
|
|
3599
|
-
* @summary
|
|
3630
|
+
* @summary 用户信息-分页查询接口
|
|
3600
3631
|
* @param {UserInfoPageGetRequest} body
|
|
3601
3632
|
* @param {*} [options] Override http request option.
|
|
3602
3633
|
* @throws {RequiredError}
|
|
3603
3634
|
*/
|
|
3604
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>;
|
|
3605
3644
|
};
|
|
3606
3645
|
/**
|
|
3607
3646
|
* UserAdminServiceApi - interface
|
|
@@ -3609,12 +3648,20 @@ export declare const UserAdminServiceApiFactory: (configuration?: Configuration,
|
|
|
3609
3648
|
export interface UserAdminServiceApiInterface {
|
|
3610
3649
|
/**
|
|
3611
3650
|
*
|
|
3612
|
-
* @summary
|
|
3651
|
+
* @summary 用户信息-分页查询接口
|
|
3613
3652
|
* @param {UserInfoPageGetRequest} body
|
|
3614
3653
|
* @param {*} [options] Override http request option.
|
|
3615
3654
|
* @throws {RequiredError}
|
|
3616
3655
|
*/
|
|
3617
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>;
|
|
3618
3665
|
}
|
|
3619
3666
|
/**
|
|
3620
3667
|
* UserAdminServiceApi - object-oriented interface
|
|
@@ -3622,12 +3669,20 @@ export interface UserAdminServiceApiInterface {
|
|
|
3622
3669
|
export declare class UserAdminServiceApi extends BaseAPI implements UserAdminServiceApiInterface {
|
|
3623
3670
|
/**
|
|
3624
3671
|
*
|
|
3625
|
-
* @summary
|
|
3672
|
+
* @summary 用户信息-分页查询接口
|
|
3626
3673
|
* @param {UserInfoPageGetRequest} body
|
|
3627
3674
|
* @param {*} [options] Override http request option.
|
|
3628
3675
|
* @throws {RequiredError}
|
|
3629
3676
|
*/
|
|
3630
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, {}>>;
|
|
3631
3686
|
}
|
|
3632
3687
|
/**
|
|
3633
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
|
@@ -1051,6 +1051,8 @@ export interface UserBasic {
|
|
|
1051
1051
|
'phone_verified_at'?: string;
|
|
1052
1052
|
'app_name'?: string;
|
|
1053
1053
|
'user_status'?: number;
|
|
1054
|
+
'role'?: number;
|
|
1055
|
+
'disabled_until'?: string;
|
|
1054
1056
|
}
|
|
1055
1057
|
export interface UserExtendInfo {
|
|
1056
1058
|
'user_groups'?: Array<string>;
|
|
@@ -1073,6 +1075,19 @@ export interface UserInfoPageGetResponse {
|
|
|
1073
1075
|
'user_info_list'?: Array<UserInfoItem>;
|
|
1074
1076
|
'total'?: string;
|
|
1075
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
|
+
}
|
|
1076
1091
|
export interface UserLabelItem {
|
|
1077
1092
|
'uid'?: string;
|
|
1078
1093
|
'label_id'?: string;
|
|
@@ -3570,12 +3585,20 @@ export declare class UserAPIKeyServiceApi extends BaseAPI implements UserAPIKeyS
|
|
|
3570
3585
|
export declare const UserAdminServiceApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3571
3586
|
/**
|
|
3572
3587
|
*
|
|
3573
|
-
* @summary
|
|
3588
|
+
* @summary 用户信息-分页查询接口
|
|
3574
3589
|
* @param {UserInfoPageGetRequest} body
|
|
3575
3590
|
* @param {*} [options] Override http request option.
|
|
3576
3591
|
* @throws {RequiredError}
|
|
3577
3592
|
*/
|
|
3578
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>;
|
|
3579
3602
|
};
|
|
3580
3603
|
/**
|
|
3581
3604
|
* UserAdminServiceApi - functional programming interface
|
|
@@ -3583,12 +3606,20 @@ export declare const UserAdminServiceApiAxiosParamCreator: (configuration?: Conf
|
|
|
3583
3606
|
export declare const UserAdminServiceApiFp: (configuration?: Configuration) => {
|
|
3584
3607
|
/**
|
|
3585
3608
|
*
|
|
3586
|
-
* @summary
|
|
3609
|
+
* @summary 用户信息-分页查询接口
|
|
3587
3610
|
* @param {UserInfoPageGetRequest} body
|
|
3588
3611
|
* @param {*} [options] Override http request option.
|
|
3589
3612
|
* @throws {RequiredError}
|
|
3590
3613
|
*/
|
|
3591
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>>;
|
|
3592
3623
|
};
|
|
3593
3624
|
/**
|
|
3594
3625
|
* UserAdminServiceApi - factory interface
|
|
@@ -3596,12 +3627,20 @@ export declare const UserAdminServiceApiFp: (configuration?: Configuration) => {
|
|
|
3596
3627
|
export declare const UserAdminServiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3597
3628
|
/**
|
|
3598
3629
|
*
|
|
3599
|
-
* @summary
|
|
3630
|
+
* @summary 用户信息-分页查询接口
|
|
3600
3631
|
* @param {UserInfoPageGetRequest} body
|
|
3601
3632
|
* @param {*} [options] Override http request option.
|
|
3602
3633
|
* @throws {RequiredError}
|
|
3603
3634
|
*/
|
|
3604
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>;
|
|
3605
3644
|
};
|
|
3606
3645
|
/**
|
|
3607
3646
|
* UserAdminServiceApi - interface
|
|
@@ -3609,12 +3648,20 @@ export declare const UserAdminServiceApiFactory: (configuration?: Configuration,
|
|
|
3609
3648
|
export interface UserAdminServiceApiInterface {
|
|
3610
3649
|
/**
|
|
3611
3650
|
*
|
|
3612
|
-
* @summary
|
|
3651
|
+
* @summary 用户信息-分页查询接口
|
|
3613
3652
|
* @param {UserInfoPageGetRequest} body
|
|
3614
3653
|
* @param {*} [options] Override http request option.
|
|
3615
3654
|
* @throws {RequiredError}
|
|
3616
3655
|
*/
|
|
3617
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>;
|
|
3618
3665
|
}
|
|
3619
3666
|
/**
|
|
3620
3667
|
* UserAdminServiceApi - object-oriented interface
|
|
@@ -3622,12 +3669,20 @@ export interface UserAdminServiceApiInterface {
|
|
|
3622
3669
|
export declare class UserAdminServiceApi extends BaseAPI implements UserAdminServiceApiInterface {
|
|
3623
3670
|
/**
|
|
3624
3671
|
*
|
|
3625
|
-
* @summary
|
|
3672
|
+
* @summary 用户信息-分页查询接口
|
|
3626
3673
|
* @param {UserInfoPageGetRequest} body
|
|
3627
3674
|
* @param {*} [options] Override http request option.
|
|
3628
3675
|
* @throws {RequiredError}
|
|
3629
3676
|
*/
|
|
3630
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, {}>>;
|
|
3631
3686
|
}
|
|
3632
3687
|
/**
|
|
3633
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
|
+
|
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,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)
|