简化接口

This commit is contained in:
jasminexz 2023-08-15 15:53:44 +08:00
parent b3bf33f07c
commit 11f54c7b2e

View File

@ -1,23 +1,6 @@
import { defaultRequest as rq } from "./request";
import type { R } from "./request";
/**
*
*/
export const metricByAppApi = (params?: object): Promise<R<any>> => {
// return rq.get<R<any>>("${BSMS_URL}/sentinel/es/metric/app", params);
return rq.get<R<any>>("${GATEWAY_URL}/${SERVICE_ID}/sentinel/metric/app", { params });
};
/**
*
*/
export const resourcesApi = (params?: object): Promise<R<any>> => {
// return rq.get<R<any>>("${BSMS_URL}/sentinel/es/resources", params);
return rq.get<R<any>>("${GATEWAY_URL}/${SERVICE_ID}/sentinel/resources", { params });
};
/**
*
*/