import { ResPage, User } from "@/api/interface/index";
|
import http from "@/api";
|
|
/**
|
* @name 告警管理模块
|
*/
|
// 获取告警列表信息
|
export const getWarningList = (params: User.ReqUserParams) => {
|
return http.post<ResPage<User.ResUserList>>(`/Warning/FindWarningInfo`, params);
|
};
|
|
// 获取未处理告警列表信息
|
export const FindWarningUntreated = (params: User.ReqUserParams) => {
|
return http.post<ResPage<User.ResUserList>>(`/Warning/FindWarningUntreated`, params);
|
};
|
|
// 全部处理告警
|
export const UpAllHandle = () => {
|
return http.post(`/Warning/AllHandle`);
|
};
|
|
// 处理告警
|
export const UpHandle = (params: { id: string[] }) => {
|
return http.post(`/Warning/Handle`, params);
|
};
|
|
// 告警统计分析
|
export const FindWarningAll = () => {
|
return http.post(`/Warning/FindWarningAll`);
|
};
|