/* tslint:disable */
/* eslint-disable */
/**
* Admin.NET
* 让 .NET 开发更简单、更通用、更流行。前后端分离架构(.NET6/Vue3),开箱即用紧随前沿技术。
https://gitee.com/zuohuaijun/Admin.NET
*
* OpenAPI spec version: 1.0.0
* Contact: 515096995@qq.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
import { Configuration } from '../configuration';
// Some imports not used depending on template conditions
// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
import { AdminResultObject } from '../models';
/**
* SysServerApi - axios parameter creator
* @export
*/
export const SysServerApiAxiosParamCreator = function (configuration?: Configuration) {
return {
/**
*
* @summary 框架主要程序集
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
serverAssemblyGet: async (options: AxiosRequestConfig = {}): Promise => {
const localVarPath = `/server/assembly`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
// authentication Bearer required
const query = new URLSearchParams(localVarUrlObj.search);
for (const key in localVarQueryParameter) {
query.set(key, localVarQueryParameter[key]);
}
for (const key in options.params) {
query.set(key, options.params[key]);
}
localVarUrlObj.search = (new URLSearchParams(query)).toString();
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
return {
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
options: localVarRequestOptions,
};
},
/**
*
* @summary 服务器配置信息
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
serverBaseGet: async (options: AxiosRequestConfig = {}): Promise => {
const localVarPath = `/server/base`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
// authentication Bearer required
const query = new URLSearchParams(localVarUrlObj.search);
for (const key in localVarQueryParameter) {
query.set(key, localVarQueryParameter[key]);
}
for (const key in options.params) {
query.set(key, options.params[key]);
}
localVarUrlObj.search = (new URLSearchParams(query)).toString();
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
return {
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
options: localVarRequestOptions,
};
},
/**
*
* @summary 服务器磁盘信息
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
serverDiskGet: async (options: AxiosRequestConfig = {}): Promise => {
const localVarPath = `/server/disk`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
// authentication Bearer required
const query = new URLSearchParams(localVarUrlObj.search);
for (const key in localVarQueryParameter) {
query.set(key, localVarQueryParameter[key]);
}
for (const key in options.params) {
query.set(key, options.params[key]);
}
localVarUrlObj.search = (new URLSearchParams(query)).toString();
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
return {
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
options: localVarRequestOptions,
};
},
/**
*
* @summary 服务器内存信息
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
serverUseGet: async (options: AxiosRequestConfig = {}): Promise => {
const localVarPath = `/server/use`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
// authentication Bearer required
const query = new URLSearchParams(localVarUrlObj.search);
for (const key in localVarQueryParameter) {
query.set(key, localVarQueryParameter[key]);
}
for (const key in options.params) {
query.set(key, options.params[key]);
}
localVarUrlObj.search = (new URLSearchParams(query)).toString();
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
return {
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
options: localVarRequestOptions,
};
},
}
};
/**
* SysServerApi - functional programming interface
* @export
*/
export const SysServerApiFp = function(configuration?: Configuration) {
return {
/**
*
* @summary 框架主要程序集
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async serverAssemblyGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> {
const localVarAxiosArgs = await SysServerApiAxiosParamCreator(configuration).serverAssemblyGet(options);
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
return axios.request(axiosRequestArgs);
};
},
/**
*
* @summary 服务器配置信息
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async serverBaseGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> {
const localVarAxiosArgs = await SysServerApiAxiosParamCreator(configuration).serverBaseGet(options);
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
return axios.request(axiosRequestArgs);
};
},
/**
*
* @summary 服务器磁盘信息
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async serverDiskGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> {
const localVarAxiosArgs = await SysServerApiAxiosParamCreator(configuration).serverDiskGet(options);
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
return axios.request(axiosRequestArgs);
};
},
/**
*
* @summary 服务器内存信息
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async serverUseGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> {
const localVarAxiosArgs = await SysServerApiAxiosParamCreator(configuration).serverUseGet(options);
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
return axios.request(axiosRequestArgs);
};
},
}
};
/**
* SysServerApi - factory interface
* @export
*/
export const SysServerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
return {
/**
*
* @summary 框架主要程序集
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async serverAssemblyGet(options?: AxiosRequestConfig): Promise> {
return SysServerApiFp(configuration).serverAssemblyGet(options).then((request) => request(axios, basePath));
},
/**
*
* @summary 服务器配置信息
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async serverBaseGet(options?: AxiosRequestConfig): Promise> {
return SysServerApiFp(configuration).serverBaseGet(options).then((request) => request(axios, basePath));
},
/**
*
* @summary 服务器磁盘信息
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async serverDiskGet(options?: AxiosRequestConfig): Promise> {
return SysServerApiFp(configuration).serverDiskGet(options).then((request) => request(axios, basePath));
},
/**
*
* @summary 服务器内存信息
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async serverUseGet(options?: AxiosRequestConfig): Promise> {
return SysServerApiFp(configuration).serverUseGet(options).then((request) => request(axios, basePath));
},
};
};
/**
* SysServerApi - object-oriented interface
* @export
* @class SysServerApi
* @extends {BaseAPI}
*/
export class SysServerApi extends BaseAPI {
/**
*
* @summary 框架主要程序集
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof SysServerApi
*/
public async serverAssemblyGet(options?: AxiosRequestConfig) : Promise> {
return SysServerApiFp(this.configuration).serverAssemblyGet(options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary 服务器配置信息
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof SysServerApi
*/
public async serverBaseGet(options?: AxiosRequestConfig) : Promise> {
return SysServerApiFp(this.configuration).serverBaseGet(options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary 服务器磁盘信息
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof SysServerApi
*/
public async serverDiskGet(options?: AxiosRequestConfig) : Promise> {
return SysServerApiFp(this.configuration).serverDiskGet(options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary 服务器内存信息
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof SysServerApi
*/
public async serverUseGet(options?: AxiosRequestConfig) : Promise> {
return SysServerApiFp(this.configuration).serverUseGet(options).then((request) => request(this.axios, this.basePath));
}
}