Files
yunzhupaas-web-vue3/src/api/system/cache.ts

23 lines
545 B
TypeScript
Raw Normal View History

2026-04-21 17:48:26 +08:00
import { defHttp } from '@/utils/http/axios';
enum Api {
Prefix = '/api/system/CacheManage',
}
// 获取缓存列表
export function getCacheList(data) {
return defHttp.get({ url: Api.Prefix, data });
}
// 获取缓存详情
export function getInfo(id) {
return defHttp.get({ url: Api.Prefix + '/' + id });
}
// 删除缓存
export function delCache(id) {
return defHttp.delete({ url: Api.Prefix + '/' + id });
}
// 删除全部缓存
export function delAllCache() {
return defHttp.post({ url: Api.Prefix + '/Actions/ClearAll' });
}