| | |
| | | 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; |
| | | |
| | |
| | | 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(); |
| | | } |
| | | } |