공지사항 검색, 페이징 추가.

This commit is contained in:
주우성
2025-06-14 16:33:13 +09:00
parent 966cca98cf
commit 485281bbb3
5 changed files with 67 additions and 20 deletions

View File

@@ -26,7 +26,8 @@ class GetNoticesUIController {
private final GetNoticesPortIn getNoticesPortIn;
@GetMapping(path = "/info/notice")
String operate(Model model, @PageableDefault(sort = "createdAt", direction = Sort.Direction.DESC, page = 0, size = 5) Pageable pageable, GetNoticesReqVO reqVO) {
String operate(Model model, @PageableDefault(sort = "createdAt", direction = Sort.Direction.DESC, page = 0, size = 5) Pageable pageable
, GetNoticesReqVO reqVO) {
reqVO.setSearchOpen("true");
Page<GetNotices> notices =
@@ -35,6 +36,7 @@ class GetNoticesUIController {
new GetNoticesCmd(
reqVO.getSearchField(), reqVO.getSearchValue(), reqVO.getSearchOpen()));
model.addAttribute("reqVO", reqVO);
model.addAttribute("notices", notices);