mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-22 21:06:32 +00:00
开源准备
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
import request from "@/utils/request";
|
||||
|
||||
export function getCacheInfo(query) {
|
||||
return request({
|
||||
url: "/api/v1/monitor/cache/info",
|
||||
method: "get",
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
export function getCacheNames() {
|
||||
return request({
|
||||
url: "/api/v1/monitor/cache/get/names",
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
|
||||
export function getCacheKeys(cacheName) {
|
||||
return request({
|
||||
url: `/api/v1/monitor/cache/get/keys/${cacheName}`,
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
|
||||
export function getCacheValue(cacheName, cacheKey) {
|
||||
return request({
|
||||
url: `/api/v1/monitor/cache/get/value/${cacheName}/${cacheKey}`,
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
|
||||
export function deleteCacheName(cacheName) {
|
||||
return request({
|
||||
url: `/api/v1/monitor/cache/delete/name/${cacheName}`,
|
||||
method: "delete",
|
||||
});
|
||||
}
|
||||
|
||||
export function deleteCacheKey(cacheKey) {
|
||||
return request({
|
||||
url: `/api/v1/monitor/cache/delete/key/${cacheKey}`,
|
||||
method: "delete",
|
||||
});
|
||||
}
|
||||
|
||||
export function deleteCacheAll() {
|
||||
return request({
|
||||
url: "/api/v1/monitor/cache/delete/all",
|
||||
method: "delete",
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
import request from "@/utils/request";
|
||||
|
||||
// 查询在线用户列表
|
||||
export function getOnlineList(query) {
|
||||
return request({
|
||||
url: '/monitor/online/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 强退用户
|
||||
export function deleteOnline(body) {
|
||||
return request({
|
||||
url: "/monitor/online/delete",
|
||||
method: "delete",
|
||||
data: body,
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import request from "@/utils/request";
|
||||
|
||||
// 获取服务信息
|
||||
export function getServer() {
|
||||
return request({
|
||||
url: '/monitor/server/info',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user