thêm giao diện cảnh báo
This commit is contained in:
15
controller/AlarmController.ts
Normal file
15
controller/AlarmController.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { api } from "@/config";
|
||||
import { API_GET_ALARM, API_MANAGER_ALARM } from "@/constants";
|
||||
|
||||
export async function queryAlarms(payload: Model.AlarmPayload) {
|
||||
return await api.get<Model.AlarmResponse>(API_GET_ALARM, {
|
||||
params: payload,
|
||||
});
|
||||
}
|
||||
|
||||
export async function queryConfirmAlarm(body: Model.AlarmConfirmRequest) {
|
||||
return await api.post(API_MANAGER_ALARM, body);
|
||||
}
|
||||
export async function queryrUnconfirmAlarm(body: Model.AlarmConfirmRequest) {
|
||||
return await api.delete(API_MANAGER_ALARM, { data: body });
|
||||
}
|
||||
Reference in New Issue
Block a user