Common.ts 770 字节
Newer Older
R
Rongfeng Fu 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** Keep Alive validate or set keep alive token POST /api/v1/connect/keep_alive */
export async function validateOrSetKeepAliveToken(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.validateOrSetKeepAliveTokenParams,
  options?: { [key: string]: any },
) {
  return request<API.OBResponse>('/api/v1/connect/keep_alive', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** Suicide exit process POST /api/v1/processes/suicide */
export async function exitProcess(options?: { [key: string]: any }) {
  return request<API.OBResponse>('/api/v1/processes/suicide', {
    method: 'POST',
    ...(options || {}),
  });
}