system alarm test2
This commit is contained in:
@@ -251,7 +251,10 @@ export const addReservation = (data) => {
|
||||
});
|
||||
};
|
||||
|
||||
export const deleteReservation = (scheduleIdList) => {
|
||||
export const deleteReservation = (
|
||||
scheduleIdList,
|
||||
{ onSuccess, onFailure, onComplete }
|
||||
) => {
|
||||
if (typeof window === "object" && !window.PalmSystem) {
|
||||
console.log("LUNA SEND deleteReservation scheduleIdList", scheduleIdList);
|
||||
return;
|
||||
@@ -263,21 +266,15 @@ export const deleteReservation = (scheduleIdList) => {
|
||||
parameters: {
|
||||
scheduleIdList: scheduleIdList,
|
||||
},
|
||||
onSuccess: (res) => {
|
||||
console.log("LUNA SEND deleteReservation success", res);
|
||||
},
|
||||
onFailure: (err) => {
|
||||
console.log("LUNA SEND deleteReservation failed", err);
|
||||
},
|
||||
onSuccess,
|
||||
onFailure,
|
||||
onComplete,
|
||||
});
|
||||
};
|
||||
|
||||
export const searchReservation = (
|
||||
chanId,
|
||||
{ onSuccess, onFailure, onComplete }
|
||||
) => {
|
||||
export const searchReservation = ({ onSuccess, onFailure, onComplete }) => {
|
||||
if (typeof window === "object" && !window.PalmSystem) {
|
||||
console.log("LUNA SEND searchReservation chanId", chanId);
|
||||
console.log("LUNA SEND searchReservation chanId");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user