From 8e94e3f60a91e536d69e643b4dc13804b79370bc Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期二, 05 八月 2025 17:40:06 +0800 Subject: [PATCH] feat: 页面 --- src/services/api/menu.ts | 36 ++++++++++++++++++++++++++++++++++++ 1 files changed, 36 insertions(+), 0 deletions(-) diff --git a/src/services/api/menu.ts b/src/services/api/menu.ts index 04034d5..c0caa44 100644 --- a/src/services/api/menu.ts +++ b/src/services/api/menu.ts @@ -55,3 +55,39 @@ ...(options || {}), }); } + +/** 淇濆瓨鑿滃崟鎸夐挳 POST /api/user/menu/saveMenuButton */ +export async function saveMenuButton(body: API.SaveMenuButtonCommand, options?: API.RequestConfig) { + return request<string>('/api/user/menu/saveMenuButton', { + method: 'POST', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + }); +} + +/** 淇濆瓨鑿滃崟瀛楁 POST /api/user/menu/saveMenuField */ +export async function saveMenuField(body: API.SaveMenuFieldCommand, options?: API.RequestConfig) { + return request<string>('/api/user/menu/saveMenuField', { + method: 'POST', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + }); +} + +/** 璁剧疆鑿滃崟鍒囨崲淇℃伅 PUT /api/user/menu/setMenuSwitch */ +export async function setMenuSwitch(body: API.SetMenuSwitchCommand, options?: API.RequestConfig) { + return request<number>('/api/user/menu/setMenuSwitch', { + method: 'PUT', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + }); +} -- Gitblit v1.9.1