feat: 게시판 추천/비추천·작성자 아바타·추천자·포인트 (프론트)
CI / build (push) Failing after 13m27s

- UserAvatar 컴포넌트(커스텀>구글>이니셜, 로드 실패 시 이니셜 폴백)
- 목록: 작성자 아바타 + 추천 수 표기
- 상세: 작성자 아바타, 추천/비추천 토글 버튼(내 투표 강조),
  추천자 본문 하단 아바타 10개 + 초과 시 (+N명이 추천했습니다), 클릭 시 전체 목록 모달
- 댓글: 작성자 아바타 + 추천/비추천 버튼
- 계정정보: 포인트 표기(GET /auth/points 최신값)
- boardApi.votePost/voteComment/recommenders, authApi.points 추가

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
ByungCheol
2026-06-28 12:28:20 +09:00
parent 7855298eac
commit ca66c1d53e
6 changed files with 372 additions and 5 deletions
+11
View File
@@ -47,6 +47,17 @@ export const boardApi = {
removeComment(commentId) {
return http.delete(`/board/comments/${commentId}`)
},
// 추천/비추천 (토글) — type: 'UP' | 'DOWN'
votePost(id, type) {
return http.post(`/board/posts/${id}/vote`, { type })
},
voteComment(commentId, type) {
return http.post(`/board/comments/${commentId}/vote`, { type })
},
// 추천(👍)한 사람 목록
recommenders(id) {
return http.get(`/board/posts/${id}/recommenders`)
},
block(id, reason) {
return http.post(`/board/posts/${id}/block`, { reason })
},