implement editing notification channels

This commit is contained in:
Alex Holliday committed 2025-06-10 11:13:19 +08:00
1 parent f41709bd12
commit 0ac1f13043
13 files changed
+265 -25

No files matched your search

+10
View File
@@ -1049,6 +1049,16 @@ class NetworkService {
const { id } = config;
return this.axiosInstance.delete(`/notifications/${id}`);
}
async getNotificationById(config) {
const { id } = config;
return this.axiosInstance.get(`/notifications/${id}`);
}
async editNotification(config) {
const { id, notification } = config;
return this.axiosInstance.put(`/notifications/${id}`, notification);
}
}
export default NetworkService;