sys-cache-api.ts 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529
  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 { AdminResultInt32 } from '../models';
  20. import { AdminResultListString } from '../models';
  21. import { AdminResultObject } from '../models';
  22. import { TimeSpan } from '../models';
  23. /**
  24. * SysCacheApi - axios parameter creator
  25. * @export
  26. */
  27. export const SysCacheApiAxiosParamCreator = function (configuration?: Configuration) {
  28. return {
  29. /**
  30. *
  31. * @summary 增加缓存并设置过期时间
  32. * @param {any} [body]
  33. * @param {string} [key]
  34. * @param {TimeSpan} [expire]
  35. * @param {*} [options] Override http request option.
  36. * @throws {RequiredError}
  37. */
  38. sysCacheAddExpirePost: async (body?: any, key?: string, expire?: TimeSpan, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  39. const localVarPath = `/sysCache/add/expire`;
  40. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  41. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  42. let baseOptions;
  43. if (configuration) {
  44. baseOptions = configuration.baseOptions;
  45. }
  46. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  47. const localVarHeaderParameter = {} as any;
  48. const localVarQueryParameter = {} as any;
  49. // authentication Bearer required
  50. if (key !== undefined) {
  51. localVarQueryParameter['key'] = key;
  52. }
  53. if (expire !== undefined) {
  54. localVarQueryParameter['expire'] = expire;
  55. }
  56. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  57. const query = new URLSearchParams(localVarUrlObj.search);
  58. for (const key in localVarQueryParameter) {
  59. query.set(key, localVarQueryParameter[key]);
  60. }
  61. for (const key in options.params) {
  62. query.set(key, options.params[key]);
  63. }
  64. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  65. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  66. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  67. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  68. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  69. return {
  70. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  71. options: localVarRequestOptions,
  72. };
  73. },
  74. /**
  75. *
  76. * @summary 增加缓存
  77. * @param {any} [body]
  78. * @param {string} [key]
  79. * @param {*} [options] Override http request option.
  80. * @throws {RequiredError}
  81. */
  82. sysCacheAddPost: async (body?: any, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  83. const localVarPath = `/sysCache/add`;
  84. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  85. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  86. let baseOptions;
  87. if (configuration) {
  88. baseOptions = configuration.baseOptions;
  89. }
  90. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  91. const localVarHeaderParameter = {} as any;
  92. const localVarQueryParameter = {} as any;
  93. // authentication Bearer required
  94. if (key !== undefined) {
  95. localVarQueryParameter['key'] = key;
  96. }
  97. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  98. const query = new URLSearchParams(localVarUrlObj.search);
  99. for (const key in localVarQueryParameter) {
  100. query.set(key, localVarQueryParameter[key]);
  101. }
  102. for (const key in options.params) {
  103. query.set(key, options.params[key]);
  104. }
  105. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  106. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  107. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  108. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  109. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  110. return {
  111. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  112. options: localVarRequestOptions,
  113. };
  114. },
  115. /**
  116. *
  117. * @summary 根据键名前缀删除缓存
  118. * @param {string} [prefixKey] 键名前缀
  119. * @param {*} [options] Override http request option.
  120. * @throws {RequiredError}
  121. */
  122. sysCacheDelByParentKeyPost: async (prefixKey?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  123. const localVarPath = `/sysCache/delByParentKey`;
  124. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  125. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  126. let baseOptions;
  127. if (configuration) {
  128. baseOptions = configuration.baseOptions;
  129. }
  130. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  131. const localVarHeaderParameter = {} as any;
  132. const localVarQueryParameter = {} as any;
  133. // authentication Bearer required
  134. if (prefixKey !== undefined) {
  135. localVarQueryParameter['prefixKey'] = prefixKey;
  136. }
  137. const query = new URLSearchParams(localVarUrlObj.search);
  138. for (const key in localVarQueryParameter) {
  139. query.set(key, localVarQueryParameter[key]);
  140. }
  141. for (const key in options.params) {
  142. query.set(key, options.params[key]);
  143. }
  144. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  145. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  146. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  147. return {
  148. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  149. options: localVarRequestOptions,
  150. };
  151. },
  152. /**
  153. *
  154. * @summary 删除缓存
  155. * @param {string} [key]
  156. * @param {*} [options] Override http request option.
  157. * @throws {RequiredError}
  158. */
  159. sysCacheDeletePost: async (key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  160. const localVarPath = `/sysCache/delete`;
  161. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  162. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  163. let baseOptions;
  164. if (configuration) {
  165. baseOptions = configuration.baseOptions;
  166. }
  167. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  168. const localVarHeaderParameter = {} as any;
  169. const localVarQueryParameter = {} as any;
  170. // authentication Bearer required
  171. if (key !== undefined) {
  172. localVarQueryParameter['key'] = key;
  173. }
  174. const query = new URLSearchParams(localVarUrlObj.search);
  175. for (const key in localVarQueryParameter) {
  176. query.set(key, localVarQueryParameter[key]);
  177. }
  178. for (const key in options.params) {
  179. query.set(key, options.params[key]);
  180. }
  181. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  182. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  183. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  184. return {
  185. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  186. options: localVarRequestOptions,
  187. };
  188. },
  189. /**
  190. *
  191. * @summary 获取缓存
  192. * @param {string} [cacheKey]
  193. * @param {*} [options] Override http request option.
  194. * @throws {RequiredError}
  195. */
  196. sysCacheDetailGet: async (cacheKey?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  197. const localVarPath = `/sysCache/detail`;
  198. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  199. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  200. let baseOptions;
  201. if (configuration) {
  202. baseOptions = configuration.baseOptions;
  203. }
  204. const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
  205. const localVarHeaderParameter = {} as any;
  206. const localVarQueryParameter = {} as any;
  207. // authentication Bearer required
  208. if (cacheKey !== undefined) {
  209. localVarQueryParameter['cacheKey'] = cacheKey;
  210. }
  211. const query = new URLSearchParams(localVarUrlObj.search);
  212. for (const key in localVarQueryParameter) {
  213. query.set(key, localVarQueryParameter[key]);
  214. }
  215. for (const key in options.params) {
  216. query.set(key, options.params[key]);
  217. }
  218. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  219. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  220. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  221. return {
  222. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  223. options: localVarRequestOptions,
  224. };
  225. },
  226. /**
  227. *
  228. * @summary 获取所有缓存键名
  229. * @param {*} [options] Override http request option.
  230. * @throws {RequiredError}
  231. */
  232. sysCacheKeyListGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  233. const localVarPath = `/sysCache/keyList`;
  234. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  235. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  236. let baseOptions;
  237. if (configuration) {
  238. baseOptions = configuration.baseOptions;
  239. }
  240. const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
  241. const localVarHeaderParameter = {} as any;
  242. const localVarQueryParameter = {} as any;
  243. // authentication Bearer required
  244. const query = new URLSearchParams(localVarUrlObj.search);
  245. for (const key in localVarQueryParameter) {
  246. query.set(key, localVarQueryParameter[key]);
  247. }
  248. for (const key in options.params) {
  249. query.set(key, options.params[key]);
  250. }
  251. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  252. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  253. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  254. return {
  255. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  256. options: localVarRequestOptions,
  257. };
  258. },
  259. }
  260. };
  261. /**
  262. * SysCacheApi - functional programming interface
  263. * @export
  264. */
  265. export const SysCacheApiFp = function(configuration?: Configuration) {
  266. return {
  267. /**
  268. *
  269. * @summary 增加缓存并设置过期时间
  270. * @param {any} [body]
  271. * @param {string} [key]
  272. * @param {TimeSpan} [expire]
  273. * @param {*} [options] Override http request option.
  274. * @throws {RequiredError}
  275. */
  276. async sysCacheAddExpirePost(body?: any, key?: string, expire?: TimeSpan, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  277. const localVarAxiosArgs = await SysCacheApiAxiosParamCreator(configuration).sysCacheAddExpirePost(body, key, expire, options);
  278. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  279. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  280. return axios.request(axiosRequestArgs);
  281. };
  282. },
  283. /**
  284. *
  285. * @summary 增加缓存
  286. * @param {any} [body]
  287. * @param {string} [key]
  288. * @param {*} [options] Override http request option.
  289. * @throws {RequiredError}
  290. */
  291. async sysCacheAddPost(body?: any, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  292. const localVarAxiosArgs = await SysCacheApiAxiosParamCreator(configuration).sysCacheAddPost(body, key, options);
  293. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  294. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  295. return axios.request(axiosRequestArgs);
  296. };
  297. },
  298. /**
  299. *
  300. * @summary 根据键名前缀删除缓存
  301. * @param {string} [prefixKey] 键名前缀
  302. * @param {*} [options] Override http request option.
  303. * @throws {RequiredError}
  304. */
  305. async sysCacheDelByParentKeyPost(prefixKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultInt32>>> {
  306. const localVarAxiosArgs = await SysCacheApiAxiosParamCreator(configuration).sysCacheDelByParentKeyPost(prefixKey, options);
  307. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  308. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  309. return axios.request(axiosRequestArgs);
  310. };
  311. },
  312. /**
  313. *
  314. * @summary 删除缓存
  315. * @param {string} [key]
  316. * @param {*} [options] Override http request option.
  317. * @throws {RequiredError}
  318. */
  319. async sysCacheDeletePost(key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  320. const localVarAxiosArgs = await SysCacheApiAxiosParamCreator(configuration).sysCacheDeletePost(key, options);
  321. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  322. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  323. return axios.request(axiosRequestArgs);
  324. };
  325. },
  326. /**
  327. *
  328. * @summary 获取缓存
  329. * @param {string} [cacheKey]
  330. * @param {*} [options] Override http request option.
  331. * @throws {RequiredError}
  332. */
  333. async sysCacheDetailGet(cacheKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultObject>>> {
  334. const localVarAxiosArgs = await SysCacheApiAxiosParamCreator(configuration).sysCacheDetailGet(cacheKey, options);
  335. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  336. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  337. return axios.request(axiosRequestArgs);
  338. };
  339. },
  340. /**
  341. *
  342. * @summary 获取所有缓存键名
  343. * @param {*} [options] Override http request option.
  344. * @throws {RequiredError}
  345. */
  346. async sysCacheKeyListGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultListString>>> {
  347. const localVarAxiosArgs = await SysCacheApiAxiosParamCreator(configuration).sysCacheKeyListGet(options);
  348. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  349. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  350. return axios.request(axiosRequestArgs);
  351. };
  352. },
  353. }
  354. };
  355. /**
  356. * SysCacheApi - factory interface
  357. * @export
  358. */
  359. export const SysCacheApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  360. return {
  361. /**
  362. *
  363. * @summary 增加缓存并设置过期时间
  364. * @param {any} [body]
  365. * @param {string} [key]
  366. * @param {TimeSpan} [expire]
  367. * @param {*} [options] Override http request option.
  368. * @throws {RequiredError}
  369. */
  370. async sysCacheAddExpirePost(body?: any, key?: string, expire?: TimeSpan, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  371. return SysCacheApiFp(configuration).sysCacheAddExpirePost(body, key, expire, options).then((request) => request(axios, basePath));
  372. },
  373. /**
  374. *
  375. * @summary 增加缓存
  376. * @param {any} [body]
  377. * @param {string} [key]
  378. * @param {*} [options] Override http request option.
  379. * @throws {RequiredError}
  380. */
  381. async sysCacheAddPost(body?: any, key?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  382. return SysCacheApiFp(configuration).sysCacheAddPost(body, key, options).then((request) => request(axios, basePath));
  383. },
  384. /**
  385. *
  386. * @summary 根据键名前缀删除缓存
  387. * @param {string} [prefixKey] 键名前缀
  388. * @param {*} [options] Override http request option.
  389. * @throws {RequiredError}
  390. */
  391. async sysCacheDelByParentKeyPost(prefixKey?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultInt32>> {
  392. return SysCacheApiFp(configuration).sysCacheDelByParentKeyPost(prefixKey, options).then((request) => request(axios, basePath));
  393. },
  394. /**
  395. *
  396. * @summary 删除缓存
  397. * @param {string} [key]
  398. * @param {*} [options] Override http request option.
  399. * @throws {RequiredError}
  400. */
  401. async sysCacheDeletePost(key?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  402. return SysCacheApiFp(configuration).sysCacheDeletePost(key, options).then((request) => request(axios, basePath));
  403. },
  404. /**
  405. *
  406. * @summary 获取缓存
  407. * @param {string} [cacheKey]
  408. * @param {*} [options] Override http request option.
  409. * @throws {RequiredError}
  410. */
  411. async sysCacheDetailGet(cacheKey?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultObject>> {
  412. return SysCacheApiFp(configuration).sysCacheDetailGet(cacheKey, options).then((request) => request(axios, basePath));
  413. },
  414. /**
  415. *
  416. * @summary 获取所有缓存键名
  417. * @param {*} [options] Override http request option.
  418. * @throws {RequiredError}
  419. */
  420. async sysCacheKeyListGet(options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultListString>> {
  421. return SysCacheApiFp(configuration).sysCacheKeyListGet(options).then((request) => request(axios, basePath));
  422. },
  423. };
  424. };
  425. /**
  426. * SysCacheApi - object-oriented interface
  427. * @export
  428. * @class SysCacheApi
  429. * @extends {BaseAPI}
  430. */
  431. export class SysCacheApi extends BaseAPI {
  432. /**
  433. *
  434. * @summary 增加缓存并设置过期时间
  435. * @param {any} [body]
  436. * @param {string} [key]
  437. * @param {TimeSpan} [expire]
  438. * @param {*} [options] Override http request option.
  439. * @throws {RequiredError}
  440. * @memberof SysCacheApi
  441. */
  442. public async sysCacheAddExpirePost(body?: any, key?: string, expire?: TimeSpan, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  443. return SysCacheApiFp(this.configuration).sysCacheAddExpirePost(body, key, expire, options).then((request) => request(this.axios, this.basePath));
  444. }
  445. /**
  446. *
  447. * @summary 增加缓存
  448. * @param {any} [body]
  449. * @param {string} [key]
  450. * @param {*} [options] Override http request option.
  451. * @throws {RequiredError}
  452. * @memberof SysCacheApi
  453. */
  454. public async sysCacheAddPost(body?: any, key?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  455. return SysCacheApiFp(this.configuration).sysCacheAddPost(body, key, options).then((request) => request(this.axios, this.basePath));
  456. }
  457. /**
  458. *
  459. * @summary 根据键名前缀删除缓存
  460. * @param {string} [prefixKey] 键名前缀
  461. * @param {*} [options] Override http request option.
  462. * @throws {RequiredError}
  463. * @memberof SysCacheApi
  464. */
  465. public async sysCacheDelByParentKeyPost(prefixKey?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultInt32>> {
  466. return SysCacheApiFp(this.configuration).sysCacheDelByParentKeyPost(prefixKey, options).then((request) => request(this.axios, this.basePath));
  467. }
  468. /**
  469. *
  470. * @summary 删除缓存
  471. * @param {string} [key]
  472. * @param {*} [options] Override http request option.
  473. * @throws {RequiredError}
  474. * @memberof SysCacheApi
  475. */
  476. public async sysCacheDeletePost(key?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  477. return SysCacheApiFp(this.configuration).sysCacheDeletePost(key, options).then((request) => request(this.axios, this.basePath));
  478. }
  479. /**
  480. *
  481. * @summary 获取缓存
  482. * @param {string} [cacheKey]
  483. * @param {*} [options] Override http request option.
  484. * @throws {RequiredError}
  485. * @memberof SysCacheApi
  486. */
  487. public async sysCacheDetailGet(cacheKey?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultObject>> {
  488. return SysCacheApiFp(this.configuration).sysCacheDetailGet(cacheKey, options).then((request) => request(this.axios, this.basePath));
  489. }
  490. /**
  491. *
  492. * @summary 获取所有缓存键名
  493. * @param {*} [options] Override http request option.
  494. * @throws {RequiredError}
  495. * @memberof SysCacheApi
  496. */
  497. public async sysCacheKeyListGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultListString>> {
  498. return SysCacheApiFp(this.configuration).sysCacheKeyListGet(options).then((request) => request(this.axios, this.basePath));
  499. }
  500. }