初始代码

This commit is contained in:
wangmingwei
2026-04-21 17:48:26 +08:00
parent d3631949e9
commit 7f9e424a5c
1822 changed files with 288292 additions and 0 deletions

22
src/api/system/cache.ts Normal file
View File

@@ -0,0 +1,22 @@
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' });
}