packages/api-client/InternalServiceUserInterfaceApi.md
All URIs are relative to http://backend/api/v1
| Method | HTTP request | Description |
|---|---|---|
| closePausedUserAccount | POST /internal/users/{userId}/close | Close and log off the cooling-off period user account |
| getPausedUsers | GET /internal/users/paused | get cooling off users |
| getUserHistories | POST /internal/getUserHistories | get the cooling-off period user operation record |
| meSession | GET /internal/user/session | check whether logged in |
| userBaseInfo | GET /internal/user/get/me | get the necessary information |
ResponseDataBoolean closePausedUserAccount()
Close and log off the cooling-off period user account
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .InternalServiceUserInterfaceApi(configuration);
let body:.InternalServiceUserInterfaceApiClosePausedUserAccountRequest = {
// number
userId: 1,
};
apiInstance.closePausedUserAccount(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| userId | [number] | defaults to undefined |
ResponseDataBoolean
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDataListUserInPausedDto getPausedUsers()
get cooling off users
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .InternalServiceUserInterfaceApi(configuration);
let body:any = {};
apiInstance.getPausedUsers(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
This endpoint does not need any parameter.
ResponseDataListUserInPausedDto
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDataListPausedUserHistoryDto getUserHistories(pausedUserHistoryRo)
get the cooling-off period user operation record
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .InternalServiceUserInterfaceApi(configuration);
let body:.InternalServiceUserInterfaceApiGetUserHistoriesRequest = {
// PausedUserHistoryRo
pausedUserHistoryRo: {
limitDays: 1,
},
};
apiInstance.getUserHistories(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| pausedUserHistoryRo | PausedUserHistoryRo |
ResponseDataListPausedUserHistoryDto
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDataBoolean meSession()
get the necessary information
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .InternalServiceUserInterfaceApi(configuration);
let body:any = {};
apiInstance.meSession(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
This endpoint does not need any parameter.
ResponseDataBoolean
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDataUserBaseInfoVo userBaseInfo()
get the necessary information
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .InternalServiceUserInterfaceApi(configuration);
let body:any = {};
apiInstance.userBaseInfo(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
This endpoint does not need any parameter.
ResponseDataUserBaseInfoVo
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]