保誠-保戶業務員媒合平台
wayne
2022-02-14 a2edb2c55c3ef6129db84ac92c78970bc8bd27e5
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();
   }
}