From 2f0e71d3d73b71cba5a0caebfdb9ba79722989c0 Mon Sep 17 00:00:00 2001
From: wayne <wayne8692wayne8692@gmail.com>
Date: 星期四, 27 一月 2022 14:54:38 +0800
Subject: [PATCH] [update] [todo 134826, 134662] 調整顧問資料格式、棄用搜尋並改將其功能改到前端算匹配度

---
 pamapi/src/main/java/com/pollex/pam/web/rest/PersonalNotificationResource.java |   17 +++++++----------
 1 files changed, 7 insertions(+), 10 deletions(-)

diff --git a/pamapi/src/main/java/com/pollex/pam/web/rest/PersonalNotificationResource.java b/pamapi/src/main/java/com/pollex/pam/web/rest/PersonalNotificationResource.java
index c00c6db..ee805b5 100644
--- a/pamapi/src/main/java/com/pollex/pam/web/rest/PersonalNotificationResource.java
+++ b/pamapi/src/main/java/com/pollex/pam/web/rest/PersonalNotificationResource.java
@@ -8,6 +8,9 @@
 import org.springframework.http.ResponseEntity;
 import org.springframework.util.StringUtils;
 import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
@@ -45,14 +48,8 @@
 		return new ResponseEntity<>(personalNotificationList, HttpStatus.OK);
 	}
 	
-//	@GetMapping("/create")
-//	public void create() {
-//		PersonalNotification test = new PersonalNotification();
-//		test.setContent("content test");
-//		test.setNotificationType(NotificationTypeEnum.ACTIVITY);
-//		test.setOwnerId(Long.valueOf(11));
-//		test.setOwnerRole(PersonalNotificationRoleEnum.CONSULTANT);
-//		test.setTitle("title test");
-//		personalNotificationRepository.save(test);
-//	}
+	@PostMapping("/readAllMyNotification")
+	public void readAll() {
+		personalNotificationService.readAllMyNotification();
+	}
 }

--
Gitblit v1.8.0