UPDATE: VERSION-20260316
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
|
||||
import { HttpRequestClient } from '@/utils/request';
|
||||
import type { FireRule, FireRulePageableResponse, FireRuleRequest } from './types';
|
||||
import type { PlatformWithComponentsResponse } from '../types';
|
||||
import type { BasicResponse } from '@/types';
|
||||
|
||||
const req = HttpRequestClient.create<BasicResponse>({
|
||||
@@ -31,5 +32,8 @@ export const deleteFireRule = (id: number): Promise<BasicResponse> => {
|
||||
return req.delete(`/system/rule/${id}`);
|
||||
};
|
||||
|
||||
export const findAllPlatformWithComponents = (): Promise<PlatformWithComponentsResponse> => {
|
||||
return req.get(`/system/firerule/platforms`);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user