export const globalApiMethods = { /* ================================================================ * 全局&功能 (Global & Functions) * ================================================================ */ testMail(to) { return this.request('/mail/test', { method: 'POST', body: JSON.stringify({ to }) }) }, getFooterTabbarSettings() { return this.request('/settings/footer-tabbar') }, saveFooterTabbarSettings(data) { return this.request('/settings/footer-tabbar', { method: 'POST', body: JSON.stringify(data) }) }, reorderFooterTabbar(ids) { return this.request('/settings/footer-tabbar/reorder', { method: 'POST', body: JSON.stringify({ ids }) }) }, getFloatingButtons() { return this.request('/settings/floating-buttons') }, saveFloatingButtons(data) { return this.request('/settings/floating-buttons', { method: 'POST', body: JSON.stringify(data) }) }, getFriendLinks() { return this.request('/friend-links') }, addFriendLink(data) { return this.request('/friend-links', { method: 'POST', body: JSON.stringify(data) }) }, deleteFriendLink(id) { return this.request(`/friend-links/${id}`, { method: 'DELETE' }) }, reorderFriendLinks(ids) { return this.request('/friend-links/reorder', { method: 'POST', body: JSON.stringify({ ids }) }) }, getCmsFeatures() { return this.request('/settings/cms-features') }, saveCmsFeatures(cms_features) { return this.request('/settings/cms-features', { method: 'POST', body: JSON.stringify({ cms_features }) }) }, }