From af39a611164941c5a0146f7d3d049d0e3544c49e Mon Sep 17 00:00:00 2001 From: Yo Vinchen <2982554722@qq.com> Date: Sun, 25 Jun 2023 22:00:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E5=90=8E=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wechat/menu.js | 54 +++++++++ src/views/wechat/menu/list.vue | 205 +++++++++++++++++++++++++++++++++ 2 files changed, 259 insertions(+) create mode 100644 src/api/wechat/menu.js create mode 100644 src/views/wechat/menu/list.vue diff --git a/src/api/wechat/menu.js b/src/api/wechat/menu.js new file mode 100644 index 0000000..7da080d --- /dev/null +++ b/src/api/wechat/menu.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +const api_name = '/admin/wechat/menu' + +export default { + removeMenu() { + return request({ + url: `${api_name}/removeMenu`, + method: `delete` + }) + }, + syncMenu() { + return request({ + url: `${api_name}/syncMenu`, + method: `get` + }) + }, + findMenuInfo() { + return request({ + url: `${api_name}/findMenuInfo`, + method: `get` + }) + }, + + save(menu) { + return request({ + url: `${api_name}/save`, + method: `post`, + data: menu + }) + }, + + getById(id) { + return request({ + url: `${api_name}/get/${id}`, + method: `get` + }) + }, + + updateById(menu) { + return request({ + url: `${api_name}/update`, + method: `put`, + data: menu + }) + }, + + removeById(id) { + return request({ + url: `${api_name}/remove/${id}`, + method: 'delete' + }) + } +} diff --git a/src/views/wechat/menu/list.vue b/src/views/wechat/menu/list.vue new file mode 100644 index 0000000..0def53f --- /dev/null +++ b/src/views/wechat/menu/list.vue @@ -0,0 +1,205 @@ + +