feat(api): tarot endpoint를 /api/tarot/* 로 이전 (agent-office 분리)
This commit is contained in:
12
src/api.js
12
src/api.js
@@ -743,11 +743,11 @@ export async function triggerEvolverEvaluate() {
|
|||||||
// --- Tarot Lab ---
|
// --- Tarot Lab ---
|
||||||
|
|
||||||
export function tarotInterpret(body) {
|
export function tarotInterpret(body) {
|
||||||
return apiPost('/api/agent-office/tarot/interpret', body);
|
return apiPost('/api/tarot/interpret', body);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function tarotSaveReading(body) {
|
export function tarotSaveReading(body) {
|
||||||
return apiPost('/api/agent-office/tarot/readings', body);
|
return apiPost('/api/tarot/readings', body);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function tarotListReadings({ page = 1, size = 20, favorite, spread_type, category } = {}) {
|
export function tarotListReadings({ page = 1, size = 20, favorite, spread_type, category } = {}) {
|
||||||
@@ -755,17 +755,17 @@ export function tarotListReadings({ page = 1, size = 20, favorite, spread_type,
|
|||||||
if (favorite !== undefined) qs.set('favorite', favorite ? 'true' : 'false');
|
if (favorite !== undefined) qs.set('favorite', favorite ? 'true' : 'false');
|
||||||
if (spread_type) qs.set('spread_type', spread_type);
|
if (spread_type) qs.set('spread_type', spread_type);
|
||||||
if (category) qs.set('category', category);
|
if (category) qs.set('category', category);
|
||||||
return apiGet(`/api/agent-office/tarot/readings?${qs.toString()}`);
|
return apiGet(`/api/tarot/readings?${qs.toString()}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function tarotGetReading(id) {
|
export function tarotGetReading(id) {
|
||||||
return apiGet(`/api/agent-office/tarot/readings/${id}`);
|
return apiGet(`/api/tarot/readings/${id}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function tarotPatchReading(id, body) {
|
export function tarotPatchReading(id, body) {
|
||||||
return apiPatch(`/api/agent-office/tarot/readings/${id}`, body);
|
return apiPatch(`/api/tarot/readings/${id}`, body);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function tarotDeleteReading(id) {
|
export function tarotDeleteReading(id) {
|
||||||
return apiDelete(`/api/agent-office/tarot/readings/${id}`);
|
return apiDelete(`/api/tarot/readings/${id}`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user