From 1ba873093c6164d7a93902da0a9c4e344ef15d28 Mon Sep 17 00:00:00 2001 From: weiweiw <14335254+weiweiw22@user.noreply.gitee.com> Date: Wed, 6 Nov 2024 12:01:58 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=80=E6=9C=89delete?= =?UTF-8?q?=20=E6=96=B9=E6=B3=95=E4=B8=BApost?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/login.js | 2 +- src/api/monitor/job.js | 4 ++-- src/api/monitor/jobLog.js | 6 +++--- src/api/monitor/online.js | 4 ++-- src/api/system/config.js | 6 +++--- src/api/system/dept.js | 4 ++-- src/api/system/dict/data.js | 4 ++-- src/api/system/dict/type.js | 6 +++--- src/api/system/logininfor.js | 4 ++-- src/api/system/menu.js | 4 ++-- src/api/system/notice.js | 4 ++-- src/api/system/operlog.js | 6 +++--- src/api/system/post.js | 4 ++-- src/api/system/role.js | 4 ++-- src/api/system/user.js | 4 ++-- src/api/tool/gen.js | 4 ++-- 16 files changed, 35 insertions(+), 35 deletions(-) diff --git a/src/api/login.js b/src/api/login.js index bf8772db..effe8e0d 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -81,7 +81,7 @@ export function getInfo() { export function logout() { return request({ url: '/auth/logout', - method: 'delete' + method: 'post' }) } diff --git a/src/api/monitor/job.js b/src/api/monitor/job.js index cb851170..cc40c0fa 100644 --- a/src/api/monitor/job.js +++ b/src/api/monitor/job.js @@ -38,8 +38,8 @@ export function updateJob(data) { // 删除定时任务调度 export function delJob(jobId) { return request({ - url: '/schedule/job/' + jobId, - method: 'delete' + url: '/schedule/job/delete/' + jobId, + method: 'post' }) } diff --git a/src/api/monitor/jobLog.js b/src/api/monitor/jobLog.js index eea2666e..40931cfb 100644 --- a/src/api/monitor/jobLog.js +++ b/src/api/monitor/jobLog.js @@ -12,8 +12,8 @@ export function listJobLog(query) { // 删除调度日志 export function delJobLog(jobLogId) { return request({ - url: '/schedule/job/log/' + jobLogId, - method: 'delete' + url: '/schedule/job/log/delete' + jobLogId, + method: 'post' }) } @@ -21,6 +21,6 @@ export function delJobLog(jobLogId) { export function cleanJobLog() { return request({ url: '/schedule/job/log/clean', - method: 'delete' + method: 'post' }) } diff --git a/src/api/monitor/online.js b/src/api/monitor/online.js index d53df58d..3d34fc42 100644 --- a/src/api/monitor/online.js +++ b/src/api/monitor/online.js @@ -12,7 +12,7 @@ export function list(query) { // 强退用户 export function forceLogout(tokenId) { return request({ - url: '/system/online/' + tokenId, - method: 'delete' + url: '/system/online/delete/' + tokenId, + method: 'post' }) } diff --git a/src/api/system/config.js b/src/api/system/config.js index a404d825..30ad8aa8 100644 --- a/src/api/system/config.js +++ b/src/api/system/config.js @@ -46,8 +46,8 @@ export function updateConfig(data) { // 删除参数配置 export function delConfig(configId) { return request({ - url: '/system/config/' + configId, - method: 'delete' + url: '/system/config/delete/' + configId, + method: 'post' }) } @@ -55,6 +55,6 @@ export function delConfig(configId) { export function refreshCache() { return request({ url: '/system/config/refreshCache', - method: 'delete' + method: 'post' }) } diff --git a/src/api/system/dept.js b/src/api/system/dept.js index fc943cd4..52e3e17e 100644 --- a/src/api/system/dept.js +++ b/src/api/system/dept.js @@ -46,7 +46,7 @@ export function updateDept(data) { // 删除部门 export function delDept(deptId) { return request({ - url: '/system/dept/' + deptId, - method: 'delete' + url: '/system/dept/delete/' + deptId, + method: 'post' }) } \ No newline at end of file diff --git a/src/api/system/dict/data.js b/src/api/system/dict/data.js index 6c9eb79b..a9998db9 100644 --- a/src/api/system/dict/data.js +++ b/src/api/system/dict/data.js @@ -46,7 +46,7 @@ export function updateData(data) { // 删除字典数据 export function delData(dictCode) { return request({ - url: '/system/dict/data/' + dictCode, - method: 'delete' + url: '/system/dict/data/delete/' + dictCode, + method: 'post' }) } diff --git a/src/api/system/dict/type.js b/src/api/system/dict/type.js index a7a6e01f..bc601ffe 100644 --- a/src/api/system/dict/type.js +++ b/src/api/system/dict/type.js @@ -38,8 +38,8 @@ export function updateType(data) { // 删除字典类型 export function delType(dictId) { return request({ - url: '/system/dict/type/' + dictId, - method: 'delete' + url: '/system/dict/type/delete/' + dictId, + method: 'post' }) } @@ -47,7 +47,7 @@ export function delType(dictId) { export function refreshCache() { return request({ url: '/system/dict/type/refreshCache', - method: 'delete' + method: 'post' }) } diff --git a/src/api/system/logininfor.js b/src/api/system/logininfor.js index e010dc38..41bafac7 100644 --- a/src/api/system/logininfor.js +++ b/src/api/system/logininfor.js @@ -13,7 +13,7 @@ export function list(query) { export function delLogininfor(infoId) { return request({ url: '/system/logininfor/' + infoId, - method: 'delete' + method: 'post' }) } @@ -28,6 +28,6 @@ export function unlockLogininfor(userName) { export function cleanLogininfor() { return request({ url: '/system/logininfor/clean', - method: 'delete' + method: 'post' }) } diff --git a/src/api/system/menu.js b/src/api/system/menu.js index f6415c65..58cc4d27 100644 --- a/src/api/system/menu.js +++ b/src/api/system/menu.js @@ -54,7 +54,7 @@ export function updateMenu(data) { // 删除菜单 export function delMenu(menuId) { return request({ - url: '/system/menu/' + menuId, - method: 'delete' + url: '/system/menu/delete/' + menuId, + method: 'post' }) } \ No newline at end of file diff --git a/src/api/system/notice.js b/src/api/system/notice.js index c274ea5b..9ea09732 100644 --- a/src/api/system/notice.js +++ b/src/api/system/notice.js @@ -38,7 +38,7 @@ export function updateNotice(data) { // 删除公告 export function delNotice(noticeId) { return request({ - url: '/system/notice/' + noticeId, - method: 'delete' + url: '/system/notice/delete/' + noticeId, + method: 'post' }) } \ No newline at end of file diff --git a/src/api/system/operlog.js b/src/api/system/operlog.js index 51a4cc32..a2ba683e 100644 --- a/src/api/system/operlog.js +++ b/src/api/system/operlog.js @@ -12,8 +12,8 @@ export function list(query) { // 删除操作日志 export function delOperlog(operId) { return request({ - url: '/system/operlog/' + operId, - method: 'delete' + url: '/system/operlog/delete/' + operId, + method: 'post' }) } @@ -21,6 +21,6 @@ export function delOperlog(operId) { export function cleanOperlog() { return request({ url: '/system/operlog/clean', - method: 'delete' + method: 'post' }) } diff --git a/src/api/system/post.js b/src/api/system/post.js index 1a8e9ca0..20aa0d50 100644 --- a/src/api/system/post.js +++ b/src/api/system/post.js @@ -38,7 +38,7 @@ export function updatePost(data) { // 删除岗位 export function delPost(postId) { return request({ - url: '/system/post/' + postId, - method: 'delete' + url: '/system/post/delete/' + postId, + method: 'post' }) } diff --git a/src/api/system/role.js b/src/api/system/role.js index f13e6f40..8e2e2d3f 100644 --- a/src/api/system/role.js +++ b/src/api/system/role.js @@ -60,8 +60,8 @@ export function changeRoleStatus(roleId, status) { // 删除角色 export function delRole(roleId) { return request({ - url: '/system/role/' + roleId, - method: 'delete' + url: '/system/role/delete/' + roleId, + method: 'post' }) } diff --git a/src/api/system/user.js b/src/api/system/user.js index cd5af3d9..97c70e60 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -39,8 +39,8 @@ export function updateUser(data) { // 删除用户 export function delUser(userId) { return request({ - url: '/system/user/' + userId, - method: 'delete' + url: '/system/user/delete/' + userId, + method: 'post' }) } diff --git a/src/api/tool/gen.js b/src/api/tool/gen.js index 7524a0ab..104a4575 100644 --- a/src/api/tool/gen.js +++ b/src/api/tool/gen.js @@ -54,8 +54,8 @@ export function previewTable(tableId) { // 删除表数据 export function delTable(tableId) { return request({ - url: '/code/gen/' + tableId, - method: 'delete' + url: '/code/gen/delete/' + tableId, + method: 'post' }) } From 865423d802d6701bb27f67cd86a34cc0c2f1f1b9 Mon Sep 17 00:00:00 2001 From: weiweiw <14335254+weiweiw22@user.noreply.gitee.com> Date: Wed, 6 Nov 2024 13:46:29 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=80=E6=9C=89PUT=20?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E4=B8=BApost?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/monitor/job.js | 8 ++++---- src/api/system/config.js | 4 ++-- src/api/system/dept.js | 4 ++-- src/api/system/dict/data.js | 4 ++-- src/api/system/dict/type.js | 4 ++-- src/api/system/menu.js | 4 ++-- src/api/system/notice.js | 4 ++-- src/api/system/post.js | 4 ++-- src/api/system/role.js | 16 ++++++++-------- src/api/system/user.js | 18 +++++++++--------- src/api/tool/gen.js | 4 ++-- 11 files changed, 37 insertions(+), 37 deletions(-) diff --git a/src/api/monitor/job.js b/src/api/monitor/job.js index cc40c0fa..101abec4 100644 --- a/src/api/monitor/job.js +++ b/src/api/monitor/job.js @@ -29,8 +29,8 @@ export function addJob(data) { // 修改定时任务调度 export function updateJob(data) { return request({ - url: '/schedule/job', - method: 'put', + url: '/schedule/job/edit', + method: 'post', data: data }) } @@ -51,7 +51,7 @@ export function changeJobStatus(jobId, status) { } return request({ url: '/schedule/job/changeStatus', - method: 'put', + method: 'post', data: data }) } @@ -65,7 +65,7 @@ export function runJob(jobId, jobGroup) { } return request({ url: '/schedule/job/run', - method: 'put', + method: 'post', data: data }) } \ No newline at end of file diff --git a/src/api/system/config.js b/src/api/system/config.js index 30ad8aa8..d20c6d56 100644 --- a/src/api/system/config.js +++ b/src/api/system/config.js @@ -37,8 +37,8 @@ export function addConfig(data) { // 修改参数配置 export function updateConfig(data) { return request({ - url: '/system/config', - method: 'put', + url: '/system/config/edit', + method: 'post', data: data }) } diff --git a/src/api/system/dept.js b/src/api/system/dept.js index 52e3e17e..566a70b2 100644 --- a/src/api/system/dept.js +++ b/src/api/system/dept.js @@ -37,8 +37,8 @@ export function addDept(data) { // 修改部门 export function updateDept(data) { return request({ - url: '/system/dept', - method: 'put', + url: '/system/dept/edit', + method: 'post', data: data }) } diff --git a/src/api/system/dict/data.js b/src/api/system/dict/data.js index a9998db9..6fd1b7db 100644 --- a/src/api/system/dict/data.js +++ b/src/api/system/dict/data.js @@ -37,8 +37,8 @@ export function addData(data) { // 修改字典数据 export function updateData(data) { return request({ - url: '/system/dict/data', - method: 'put', + url: '/system/dict/data/edit', + method: 'post', data: data }) } diff --git a/src/api/system/dict/type.js b/src/api/system/dict/type.js index bc601ffe..16e6aac4 100644 --- a/src/api/system/dict/type.js +++ b/src/api/system/dict/type.js @@ -29,8 +29,8 @@ export function addType(data) { // 修改字典类型 export function updateType(data) { return request({ - url: '/system/dict/type', - method: 'put', + url: '/system/dict/type/edit', + method: 'post', data: data }) } diff --git a/src/api/system/menu.js b/src/api/system/menu.js index 58cc4d27..0dff19c6 100644 --- a/src/api/system/menu.js +++ b/src/api/system/menu.js @@ -45,8 +45,8 @@ export function addMenu(data) { // 修改菜单 export function updateMenu(data) { return request({ - url: '/system/menu', - method: 'put', + url: '/system/menu/edit', + method: 'post', data: data }) } diff --git a/src/api/system/notice.js b/src/api/system/notice.js index 9ea09732..4fdee030 100644 --- a/src/api/system/notice.js +++ b/src/api/system/notice.js @@ -29,8 +29,8 @@ export function addNotice(data) { // 修改公告 export function updateNotice(data) { return request({ - url: '/system/notice', - method: 'put', + url: '/system/notice/edit', + method: 'post', data: data }) } diff --git a/src/api/system/post.js b/src/api/system/post.js index 20aa0d50..6103fd6b 100644 --- a/src/api/system/post.js +++ b/src/api/system/post.js @@ -29,8 +29,8 @@ export function addPost(data) { // 修改岗位 export function updatePost(data) { return request({ - url: '/system/post', - method: 'put', + url: '/system/post/edit', + method: 'post', data: data }) } diff --git a/src/api/system/role.js b/src/api/system/role.js index 8e2e2d3f..abbe6cba 100644 --- a/src/api/system/role.js +++ b/src/api/system/role.js @@ -29,8 +29,8 @@ export function addRole(data) { // 修改角色 export function updateRole(data) { return request({ - url: '/system/role', - method: 'put', + url: '/system/role/edit', + method: 'post', data: data }) } @@ -38,8 +38,8 @@ export function updateRole(data) { // 角色数据权限 export function dataScope(data) { return request({ - url: '/system/role/dataScope', - method: 'put', + url: '/system/role/dataScope/edit', + method: 'post', data: data }) } @@ -52,7 +52,7 @@ export function changeRoleStatus(roleId, status) { } return request({ url: '/system/role/changeStatus', - method: 'put', + method: 'post', data: data }) } @@ -87,7 +87,7 @@ export function unallocatedUserList(query) { export function authUserCancel(data) { return request({ url: '/system/role/authUser/cancel', - method: 'put', + method: 'post', data: data }) } @@ -96,7 +96,7 @@ export function authUserCancel(data) { export function authUserCancelAll(data) { return request({ url: '/system/role/authUser/cancelAll', - method: 'put', + method: 'post', params: data }) } @@ -105,7 +105,7 @@ export function authUserCancelAll(data) { export function authUserSelectAll(data) { return request({ url: '/system/role/authUser/selectAll', - method: 'put', + method: 'post', params: data }) } diff --git a/src/api/system/user.js b/src/api/system/user.js index 97c70e60..07c7190d 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -30,8 +30,8 @@ export function addUser(data) { // 修改用户 export function updateUser(data) { return request({ - url: '/system/user', - method: 'put', + url: '/system/user/edit', + method: 'post', data: data }) } @@ -52,7 +52,7 @@ export function resetUserPwd(userId, password) { } return request({ url: '/system/user/resetPwd', - method: 'put', + method: 'post', data: data }) } @@ -65,7 +65,7 @@ export function changeUserStatus(userId, status) { } return request({ url: '/system/user/changeStatus', - method: 'put', + method: 'post', data: data }) } @@ -81,8 +81,8 @@ export function getUserProfile() { // 修改用户个人信息 export function updateUserProfile(data) { return request({ - url: '/system/user/profile', - method: 'put', + url: '/system/user/profile/edit', + method: 'post', data: data }) } @@ -95,7 +95,7 @@ export function updateUserPwd(oldPassword, newPassword) { } return request({ url: '/system/user/profile/updatePwd', - method: 'put', + method: 'post', params: data }) } @@ -123,8 +123,8 @@ export function getAuthRole(userId) { // 保存授权角色 export function updateAuthRole(data) { return request({ - url: '/system/user/authRole', - method: 'put', + url: '/system/user/authRole/edit', + method: 'post', params: data }) } diff --git a/src/api/tool/gen.js b/src/api/tool/gen.js index 104a4575..ba9a22f7 100644 --- a/src/api/tool/gen.js +++ b/src/api/tool/gen.js @@ -28,8 +28,8 @@ export function getGenTable(tableId) { // 修改代码生成信息 export function updateGenTable(data) { return request({ - url: '/code/gen', - method: 'put', + url: '/code/gen/edit', + method: 'post', data: data }) }