sys-server-api.ts 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. /* tslint:disable */
  2. /* eslint-disable */
  3. /**
  4. * Admin.NET
  5. * 让 .NET 开发更简单、更通用、更流行。前后端分离架构(.NET6/Vue3),开箱即用紧随前沿技术。<br/><a href='https://gitee.com/zuohuaijun/Admin.NET/'>https://gitee.com/zuohuaijun/Admin.NET</a>
  6. *
  7. * OpenAPI spec version: 1.0.0
  8. * Contact: 515096995@qq.com
  9. *
  10. * NOTE: This class is auto generated by the swagger code generator program.
  11. * https://github.com/swagger-api/swagger-codegen.git
  12. * Do not edit the class manually.
  13. */
  14. import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
  15. import { Configuration } from '../configuration';
  16. // Some imports not used depending on template conditions
  17. // @ts-ignore
  18. import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
  19. import { AdminResultObject } from '../models';
  20. /**
  21. * SysServerApi - axios parameter creator
  22. * @export
  23. */
  24. export const SysServerApiAxiosParamCreator = function (configuration?: Configuration) {
  25. return {
  26. /**
  27. *
  28. * @summary 框架主要程序集
  29. * @param {*} [options] Override http request option.
  30. * @throws {RequiredError}
  31. */
  32. serverAssemblyGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  33. const localVarPath = `/server/assembly`;
  34. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  35. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  36. let baseOptions;
  37. if (configuration) {
  38. baseOptions = configuration.baseOptions;
  39. }
  40. const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
  41. const localVarHeaderParameter = {} as any;
  42. const localVarQueryParameter = {} as any;
  43. // authentication Bearer required
  44. const query = new URLSearchParams(localVarUrlObj.search);
  45. for (const key in localVarQueryParameter) {
  46. query.set(key, localVarQueryParameter[key]);
  47. }
  48. for (const key in options.params) {
  49. query.set(key, options.params[key]);
  50. }
  51. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  52. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  53. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  54. return {
  55. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  56. options: localVarRequestOptions,
  57. };
  58. },
  59. /**
  60. *
  61. * @summary 服务器配置信息
  62. * @param {*} [options] Override http request option.
  63. * @throws {RequiredError}
  64. */
  65. serverBaseGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  66. const localVarPath = `/server/base`;
  67. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  68. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  69. let baseOptions;
  70. if (configuration) {
  71. baseOptions = configuration.baseOptions;
  72. }
  73. const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
  74. const localVarHeaderParameter = {} as any;
  75. const localVarQueryParameter = {} as any;
  76. // authentication Bearer required
  77. const query = new URLSearchParams(localVarUrlObj.search);
  78. for (const key in localVarQueryParameter) {
  79. query.set(key, localVarQueryParameter[key]);
  80. }
  81. for (const key in options.params) {
  82. query.set(key, options.params[key]);
  83. }
  84. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  85. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  86. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  87. return {
  88. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  89. options: localVarRequestOptions,
  90. };
  91. },
  92. /**
  93. *
  94. * @summary 服务器磁盘信息
  95. * @param {*} [options] Override http request option.
  96. * @throws {RequiredError}
  97. */
  98. serverDiskGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  99. const localVarPath = `/server/disk`;
  100. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  101. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  102. let baseOptions;
  103. if (configuration) {
  104. baseOptions = configuration.baseOptions;
  105. }
  106. const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
  107. const localVarHeaderParameter = {} as any;
  108. const localVarQueryParameter = {} as any;
  109. // authentication Bearer required
  110. const query = new URLSearchParams(localVarUrlObj.search);
  111. for (const key in localVarQueryParameter) {
  112. query.set(key, localVarQueryParameter[key]);
  113. }
  114. for (const key in options.params) {
  115. query.set(key, options.params[key]);
  116. }
  117. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  118. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  119. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  120. return {
  121. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  122. options: localVarRequestOptions,
  123. };
  124. },
  125. /**
  126. *
  127. * @summary 服务器内存信息
  128. * @param {*} [options] Override http request option.
  129. * @throws {RequiredError}
  130. */
  131. serverUseGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  132. const localVarPath = `/server/use`;
  133. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  134. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  135. let baseOptions;
  136. if (configuration) {
  137. baseOptions = configuration.baseOptions;
  138. }
  139. const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
  140. const localVarHeaderParameter = {} as any;
  141. const localVarQueryParameter = {} as any;
  142. // authentication Bearer required
  143. const query = new URLSearchParams(localVarUrlObj.search);
  144. for (const key in localVarQueryParameter) {
  145. query.set(key, localVarQueryParameter[key]);
  146. }
  147. for (const key in options.params) {
  148. query.set(key, options.params[key]);
  149. }
  150. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  151. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  152. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  153. return {
  154. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  155. options: localVarRequestOptions,
  156. };
  157. },
  158. }
  159. };
  160. /**
  161. * SysServerApi - functional programming interface
  162. * @export
  163. */
  164. export const SysServerApiFp = function(configuration?: Configuration) {
  165. return {
  166. /**
  167. *
  168. * @summary 框架主要程序集
  169. * @param {*} [options] Override http request option.
  170. * @throws {RequiredError}
  171. */
  172. async serverAssemblyGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultObject>>> {
  173. const localVarAxiosArgs = await SysServerApiAxiosParamCreator(configuration).serverAssemblyGet(options);
  174. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  175. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  176. return axios.request(axiosRequestArgs);
  177. };
  178. },
  179. /**
  180. *
  181. * @summary 服务器配置信息
  182. * @param {*} [options] Override http request option.
  183. * @throws {RequiredError}
  184. */
  185. async serverBaseGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultObject>>> {
  186. const localVarAxiosArgs = await SysServerApiAxiosParamCreator(configuration).serverBaseGet(options);
  187. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  188. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  189. return axios.request(axiosRequestArgs);
  190. };
  191. },
  192. /**
  193. *
  194. * @summary 服务器磁盘信息
  195. * @param {*} [options] Override http request option.
  196. * @throws {RequiredError}
  197. */
  198. async serverDiskGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultObject>>> {
  199. const localVarAxiosArgs = await SysServerApiAxiosParamCreator(configuration).serverDiskGet(options);
  200. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  201. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  202. return axios.request(axiosRequestArgs);
  203. };
  204. },
  205. /**
  206. *
  207. * @summary 服务器内存信息
  208. * @param {*} [options] Override http request option.
  209. * @throws {RequiredError}
  210. */
  211. async serverUseGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultObject>>> {
  212. const localVarAxiosArgs = await SysServerApiAxiosParamCreator(configuration).serverUseGet(options);
  213. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  214. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  215. return axios.request(axiosRequestArgs);
  216. };
  217. },
  218. }
  219. };
  220. /**
  221. * SysServerApi - factory interface
  222. * @export
  223. */
  224. export const SysServerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  225. return {
  226. /**
  227. *
  228. * @summary 框架主要程序集
  229. * @param {*} [options] Override http request option.
  230. * @throws {RequiredError}
  231. */
  232. async serverAssemblyGet(options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultObject>> {
  233. return SysServerApiFp(configuration).serverAssemblyGet(options).then((request) => request(axios, basePath));
  234. },
  235. /**
  236. *
  237. * @summary 服务器配置信息
  238. * @param {*} [options] Override http request option.
  239. * @throws {RequiredError}
  240. */
  241. async serverBaseGet(options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultObject>> {
  242. return SysServerApiFp(configuration).serverBaseGet(options).then((request) => request(axios, basePath));
  243. },
  244. /**
  245. *
  246. * @summary 服务器磁盘信息
  247. * @param {*} [options] Override http request option.
  248. * @throws {RequiredError}
  249. */
  250. async serverDiskGet(options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultObject>> {
  251. return SysServerApiFp(configuration).serverDiskGet(options).then((request) => request(axios, basePath));
  252. },
  253. /**
  254. *
  255. * @summary 服务器内存信息
  256. * @param {*} [options] Override http request option.
  257. * @throws {RequiredError}
  258. */
  259. async serverUseGet(options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultObject>> {
  260. return SysServerApiFp(configuration).serverUseGet(options).then((request) => request(axios, basePath));
  261. },
  262. };
  263. };
  264. /**
  265. * SysServerApi - object-oriented interface
  266. * @export
  267. * @class SysServerApi
  268. * @extends {BaseAPI}
  269. */
  270. export class SysServerApi extends BaseAPI {
  271. /**
  272. *
  273. * @summary 框架主要程序集
  274. * @param {*} [options] Override http request option.
  275. * @throws {RequiredError}
  276. * @memberof SysServerApi
  277. */
  278. public async serverAssemblyGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultObject>> {
  279. return SysServerApiFp(this.configuration).serverAssemblyGet(options).then((request) => request(this.axios, this.basePath));
  280. }
  281. /**
  282. *
  283. * @summary 服务器配置信息
  284. * @param {*} [options] Override http request option.
  285. * @throws {RequiredError}
  286. * @memberof SysServerApi
  287. */
  288. public async serverBaseGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultObject>> {
  289. return SysServerApiFp(this.configuration).serverBaseGet(options).then((request) => request(this.axios, this.basePath));
  290. }
  291. /**
  292. *
  293. * @summary 服务器磁盘信息
  294. * @param {*} [options] Override http request option.
  295. * @throws {RequiredError}
  296. * @memberof SysServerApi
  297. */
  298. public async serverDiskGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultObject>> {
  299. return SysServerApiFp(this.configuration).serverDiskGet(options).then((request) => request(this.axios, this.basePath));
  300. }
  301. /**
  302. *
  303. * @summary 服务器内存信息
  304. * @param {*} [options] Override http request option.
  305. * @throws {RequiredError}
  306. * @memberof SysServerApi
  307. */
  308. public async serverUseGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultObject>> {
  309. return SysServerApiFp(this.configuration).serverUseGet(options).then((request) => request(this.axios, this.basePath));
  310. }
  311. }