修改所有PUT 方法为post

This commit is contained in:
weiweiw 2024-11-06 13:46:29 +08:00
parent 1ba873093c
commit 865423d802
11 changed files with 37 additions and 37 deletions

View File

@ -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
})
}

View File

@ -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
})
}

View File

@ -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
})
}

View File

@ -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
})
}

View File

@ -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
})
}

View File

@ -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
})
}

View File

@ -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
})
}

View File

@ -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
})
}

View File

@ -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
})
}

View File

@ -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
})
}

View File

@ -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
})
}