4e6a89fd7a
- 홈: 6월 예산 아래 일별 수입/지출 캘린더(마우스오버/탭 시 내역 목록) - 투자: 시세 자동조회 버튼/진입 시 갱신, 보유종목 2줄 표기, 평가액 직접입력 - 게시판: 커뮤니티/짠테크 수다방/재테크 팁 분리, 사이드바 영역 구분선 - 회원가입: 이용약관·개인정보 수집 동의(필수 체크) - 보안: 계좌번호 화면 마스킹(끝 4자리+눈 토글) - 정기→고정지출, 내역/정기 라디오·sticky 저장, 태그 드래그 정렬 - fix: 모바일웹 새로고침 시 로그인 팝업(restore localStorage 우선) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
48 lines
1.2 KiB
JavaScript
48 lines
1.2 KiB
JavaScript
import http from './http'
|
|
|
|
// 백엔드 /api/board 엔드포인트와 매핑
|
|
export const boardApi = {
|
|
list({ category = '', page = 1, size = 10, tag = '', keyword = '', searchType = '' } = {}) {
|
|
return http.get('/board/posts', {
|
|
params: {
|
|
category: category || undefined,
|
|
page,
|
|
size,
|
|
tag: tag || undefined,
|
|
keyword: keyword || undefined,
|
|
searchType: keyword ? searchType || 'title' : undefined,
|
|
},
|
|
})
|
|
},
|
|
get(id) {
|
|
return http.get(`/board/posts/${id}`)
|
|
},
|
|
create(payload) {
|
|
return http.post('/board/posts', payload)
|
|
},
|
|
update(id, payload) {
|
|
return http.put(`/board/posts/${id}`, payload)
|
|
},
|
|
remove(id) {
|
|
return http.delete(`/board/posts/${id}`)
|
|
},
|
|
tags() {
|
|
return http.get('/board/tags')
|
|
},
|
|
tagGroups() {
|
|
return http.get('/board/tag-groups')
|
|
},
|
|
addComment(id, content) {
|
|
return http.post(`/board/posts/${id}/comments`, { content })
|
|
},
|
|
removeComment(commentId) {
|
|
return http.delete(`/board/comments/${commentId}`)
|
|
},
|
|
block(id, reason) {
|
|
return http.post(`/board/posts/${id}/block`, { reason })
|
|
},
|
|
unblock(id) {
|
|
return http.post(`/board/posts/${id}/unblock`)
|
|
},
|
|
}
|