初始代码
This commit is contained in:
22
src/api/system/cache.ts
Normal file
22
src/api/system/cache.ts
Normal 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' });
|
||||
}
|
||||
Reference in New Issue
Block a user