ny
昨天 282fbc6488f4e8ceb5fda759f963ee88fbf7b999
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { defHttp } from '#/api/request';
 
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` });
}