feat: 태그 그룹을 게시판별로 매핑 — 게시판 성격에 맞는 태그만 노출

- tag_category_board 매핑 테이블 추가(그룹 ↔ community/saving/tips)
- TagCategory 응답에 boards 추가, 생성/수정 시 매핑 저장(유효 게시판만)
- listWritableGroups(category): 해당 게시판에 매핑된 그룹만(매핑 없으면 전체=하위호환)
- GET /board/tag-groups?category=... 로 게시판별 필터

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
ByungCheol
2026-06-28 13:34:19 +09:00
co-authored by Claude Opus 4.8
parent b4344f5270
commit caaad65ca2
7 changed files with 98 additions and 15 deletions
@@ -125,10 +125,10 @@ public class BoardController {
return boardService.allTags();
}
/** 글 작성 시 선택 가능한 태그 (게시판 설정 카테고리로 제한) */
/** 글 작성 시 선택 가능한 태그 (해당 게시판에 매핑된 그룹만) */
@GetMapping("/tag-groups")
public List<TagCategoryResponse> tagGroups() {
return tagService.listWritableGroups();
public List<TagCategoryResponse> tagGroups(@RequestParam(required = false) String category) {
return tagService.listWritableGroups(category);
}
@PostMapping("/posts/{id}/comments")