feat(blog-marketing): 브랜드커넥트 링크 UI + 버그 수정

- 삭제 버튼 한글 깨짐 수정 (삭�� → 삭제)
- 리뷰 점수 표시 /50 → /60 (6기준 60점 체계 반영)
- 브랜드커넥트 링크 관리 UI 추가 (추가/삭제/목록)
- 마케터 실행 버튼 추가 (draft → marketed 전환)
- Marketed 필터 추가 (PostsTab)
- api.js에 링크 CRUD + 마케터 API 함수 추가

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-07 02:09:54 +09:00
parent 74f043bf29
commit 5cf60e7ee6
2 changed files with 161 additions and 13 deletions

View File

@@ -506,3 +506,29 @@ export function getBlogMarketingDashboard() {
return apiGet('/api/blog-marketing/dashboard');
}
// 마케터 단계
export function startMarket(postId) {
return apiPost(`/api/blog-marketing/market/${postId}`);
}
// 브랜드커넥트 링크 CRUD
export function getBrandLinks(params = {}) {
const qs = new URLSearchParams();
if (params.post_id) qs.set('post_id', String(params.post_id));
if (params.keyword_id) qs.set('keyword_id', String(params.keyword_id));
const q = qs.toString();
return apiGet(`/api/blog-marketing/links${q ? '?' + q : ''}`);
}
export function createBrandLink(data) {
return apiPost('/api/blog-marketing/links', data);
}
export function updateBrandLink(id, data) {
return apiPut(`/api/blog-marketing/links/${id}`, data);
}
export function deleteBrandLink(id) {
return apiDelete(`/api/blog-marketing/links/${id}`);
}