forked from admin/zeropost-tool
feat: P1 Calendar — CalendarView (month/week/list, drag&drop, channel filter)
This commit is contained in:
@@ -68,4 +68,12 @@ export const engine = {
|
||||
},
|
||||
updateSetting: (key, value) => call(`/api/settings/admin/${encodeURIComponent(key)}`, { method: 'PUT', body: { value } }),
|
||||
invalidateSettingsCache: () => call('/api/settings/admin/invalidate', { method: 'POST' }),
|
||||
|
||||
// Calendar
|
||||
getCalendar: (userId, params = {}) => {
|
||||
const qs = new URLSearchParams(params).toString();
|
||||
return call(`/api/calendar${qs ? '?' + qs : ''}`, { userId });
|
||||
},
|
||||
updateUserPostSchedule: (userId, id, scheduledAt) =>
|
||||
call(`/api/user-posts/${id}`, { userId, method: 'PATCH', body: { scheduled_at: scheduledAt } }),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user