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:
co-authored by
Claude Opus 4.8
parent
b4344f5270
commit
caaad65ca2
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user