mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-14 19:15:06 +08:00
整理 permission、user 模块的 url
This commit is contained in:
@ -38,7 +38,7 @@ export function addMenu(data) {
|
||||
export function updateMenu(data) {
|
||||
return request({
|
||||
url: '/system/menu/update',
|
||||
method: 'post',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
@ -47,6 +47,6 @@ export function updateMenu(data) {
|
||||
export function delMenu(id) {
|
||||
return request({
|
||||
url: '/system/menu/delete?id=' + id,
|
||||
method: 'post'
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ export function addNotice(data) {
|
||||
export function updateNotice(data) {
|
||||
return request({
|
||||
url: '/system/notice/update',
|
||||
method: 'post',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
@ -39,6 +39,6 @@ export function updateNotice(data) {
|
||||
export function delNotice(noticeId) {
|
||||
return request({
|
||||
url: '/system/notice/delete?id=' + noticeId,
|
||||
method: 'post'
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ export function addRole(data) {
|
||||
export function updateRole(data) {
|
||||
return request({
|
||||
url: '/system/role/update',
|
||||
method: 'post',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
@ -51,7 +51,7 @@ export function changeRoleStatus(id, status) {
|
||||
}
|
||||
return request({
|
||||
url: '/system/role/update-status',
|
||||
method: 'post',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
@ -60,7 +60,7 @@ export function changeRoleStatus(id, status) {
|
||||
export function delRole(roleId) {
|
||||
return request({
|
||||
url: '/system/role/delete?id=' + roleId,
|
||||
method: 'post'
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -31,7 +31,7 @@ export function addUser(data) {
|
||||
export function updateUser(data) {
|
||||
return request({
|
||||
url: '/system/user/update',
|
||||
method: 'post',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
@ -62,7 +62,7 @@ export function resetUserPwd(id, password) {
|
||||
}
|
||||
return request({
|
||||
url: '/system/user/update-password',
|
||||
method: 'post',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
@ -75,7 +75,7 @@ export function changeUserStatus(id, status) {
|
||||
}
|
||||
return request({
|
||||
url: '/system/user/update-status',
|
||||
method: 'post',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
@ -83,7 +83,7 @@ export function changeUserStatus(id, status) {
|
||||
// 查询用户个人信息
|
||||
export function getUserProfile() {
|
||||
return request({
|
||||
url: '/system/user/profile',
|
||||
url: '/system/user/profile/get',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
@ -91,7 +91,7 @@ export function getUserProfile() {
|
||||
// 修改用户个人信息
|
||||
export function updateUserProfile(data) {
|
||||
return request({
|
||||
url: '/system/user/profile',
|
||||
url: '/system/user/profile/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
@ -114,7 +114,7 @@ export function updateUserPwd(oldPassword, newPassword) {
|
||||
export function uploadAvatar(data) {
|
||||
return request({
|
||||
url: '/system/user/profile/avatar',
|
||||
method: 'post',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user