Back to Apitable

.InternalServiceUserInterfaceApi

packages/api-client/InternalServiceUserInterfaceApi.md

1.13.0-beta.16.7 KB
Original Source

.InternalServiceUserInterfaceApi

All URIs are relative to http://backend/api/v1

MethodHTTP requestDescription
closePausedUserAccountPOST /internal/users/{userId}/closeClose and log off the cooling-off period user account
getPausedUsersGET /internal/users/pausedget cooling off users
getUserHistoriesPOST /internal/getUserHistoriesget the cooling-off period user operation record
meSessionGET /internal/user/sessioncheck whether logged in
userBaseInfoGET /internal/user/get/meget the necessary information

closePausedUserAccount

ResponseDataBoolean closePausedUserAccount()

Close and log off the cooling-off period user account

Example

typescript
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));

Parameters

NameTypeDescriptionNotes
userId[number]defaults to undefined

Return type

ResponseDataBoolean

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

HTTP response details

Status codeDescriptionResponse headers
200OK-
500Internal Server Error-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getPausedUsers

ResponseDataListUserInPausedDto getPausedUsers()

get cooling off users

Example

typescript
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));

Parameters

This endpoint does not need any parameter.

Return type

ResponseDataListUserInPausedDto

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

HTTP response details

Status codeDescriptionResponse headers
200OK-
500Internal Server Error-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getUserHistories

ResponseDataListPausedUserHistoryDto getUserHistories(pausedUserHistoryRo)

get the cooling-off period user operation record

Example

typescript
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));

Parameters

NameTypeDescriptionNotes
pausedUserHistoryRoPausedUserHistoryRo

Return type

ResponseDataListPausedUserHistoryDto

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: /

HTTP response details

Status codeDescriptionResponse headers
200OK-
500Internal Server Error-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

meSession

ResponseDataBoolean meSession()

get the necessary information

Example

typescript
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));

Parameters

This endpoint does not need any parameter.

Return type

ResponseDataBoolean

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

HTTP response details

Status codeDescriptionResponse headers
200OK-
500Internal Server Error-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

userBaseInfo

ResponseDataUserBaseInfoVo userBaseInfo()

get the necessary information

Example

typescript
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));

Parameters

This endpoint does not need any parameter.

Return type

ResponseDataUserBaseInfoVo

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

HTTP response details

Status codeDescriptionResponse headers
200OK-
500Internal Server Error-

[Back to top] [Back to API list] [Back to Model list] [Back to README]