Files
spring-jwt/customer-vue/src/api/notification.js
bum12ark 9426f03cc8 feat(customer-vue): 알림 체크박스 및 개수 화면 구현
- 알림 페이지 체크박스 클릭 시 읽음 처리 및 읽음 해제 처리
- App bar 읽지 않은 알림 개수 표시
- 알림 읽었을 시에
앱바 알림 개수 연동
2022-03-10 10:43:38 +09:00

19 lines
435 B
JavaScript

import axios from "axios";
const url = process.env.VUE_APP_CUSTOMER_SERVICE_BASEURL + "/notification-service";
export default {
requestNotification() {
return axios.get(url + "/notifications");
},
patchNotification(id, isRead) {
const body = {
read: isRead
}
return axios.patch(url + "/notification/" + id, body)
},
countsNotification() {
return axios.get(url + "/api/notification/counts");
}
}