- 백엔드: POST/PUT/GET /admin/variety/schedule API - 백엔드: 일정 상세 응답에 broadcaster, replayUrl, thumbnailUrl 포함 - 프론트엔드: VarietyForm (추가), VarietyEditForm (수정) 페이지 - 방송사 프리셋 버튼 (KBS, MBC, SBS, tvN, 유튜브, 티빙 등) - 출연 멤버 선택, 다시보기 링크, 썸네일 URL 지원 - 라우트 등록 및 일정 목록 편집 링크 연결 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
31 lines
623 B
JavaScript
31 lines
623 B
JavaScript
/**
|
|
* 예능 관리자 API
|
|
*/
|
|
import { fetchAuthApi } from '@/api/client';
|
|
|
|
/**
|
|
* 예능 일정 생성
|
|
*/
|
|
export async function createVarietySchedule(data) {
|
|
return fetchAuthApi('/admin/variety/schedule', {
|
|
method: 'POST',
|
|
body: JSON.stringify(data),
|
|
});
|
|
}
|
|
|
|
/**
|
|
* 예능 일정 상세 조회
|
|
*/
|
|
export async function getVarietySchedule(id) {
|
|
return fetchAuthApi(`/admin/variety/schedule/${id}`);
|
|
}
|
|
|
|
/**
|
|
* 예능 일정 수정
|
|
*/
|
|
export async function updateVarietySchedule(id, data) {
|
|
return fetchAuthApi(`/admin/variety/schedule/${id}`, {
|
|
method: 'PUT',
|
|
body: JSON.stringify(data),
|
|
});
|
|
}
|