|
|
|
|
@ -4,7 +4,7 @@ import request from '@/axios'; |
|
|
|
|
|
|
|
|
|
export const getList = (current, size, params, deptId) => { |
|
|
|
|
return request({ |
|
|
|
|
url: '/blade-system/page', |
|
|
|
|
url: '/blade-system/user/page', |
|
|
|
|
method: 'get', |
|
|
|
|
params: { |
|
|
|
|
...params, |
|
|
|
|
@ -17,7 +17,7 @@ export const getList = (current, size, params, deptId) => { |
|
|
|
|
|
|
|
|
|
export const remove = (ids) => { |
|
|
|
|
return request({ |
|
|
|
|
url: '/blade-system/remove', |
|
|
|
|
url: '/blade-system/user/remove', |
|
|
|
|
method: 'post', |
|
|
|
|
params: { |
|
|
|
|
ids, |
|
|
|
|
@ -27,7 +27,7 @@ export const remove = (ids) => { |
|
|
|
|
|
|
|
|
|
export const add = (row) => { |
|
|
|
|
return request({ |
|
|
|
|
url: '/blade-system/submit', |
|
|
|
|
url: '/blade-system/user/submit', |
|
|
|
|
method: 'post', |
|
|
|
|
data: row |
|
|
|
|
}) |
|
|
|
|
@ -35,7 +35,7 @@ export const add = (row) => { |
|
|
|
|
|
|
|
|
|
export const update = (row) => { |
|
|
|
|
return request({ |
|
|
|
|
url: '/blade-system/update', |
|
|
|
|
url: '/blade-system/user/update', |
|
|
|
|
method: 'post', |
|
|
|
|
data: row |
|
|
|
|
}) |
|
|
|
|
@ -43,7 +43,7 @@ export const update = (row) => { |
|
|
|
|
|
|
|
|
|
export const updatePlatform = (userId, userType, userExt) => { |
|
|
|
|
return request({ |
|
|
|
|
url: '/blade-system/update-platform', |
|
|
|
|
url: '/blade-system/user/update-platform', |
|
|
|
|
method: 'post', |
|
|
|
|
params: { |
|
|
|
|
userId, |
|
|
|
|
@ -55,7 +55,7 @@ export const updatePlatform = (userId, userType, userExt) => { |
|
|
|
|
|
|
|
|
|
export const getUser = (id) => { |
|
|
|
|
return request({ |
|
|
|
|
url: '/blade-system/detail', |
|
|
|
|
url: '/blade-system/user/detail', |
|
|
|
|
method: 'get', |
|
|
|
|
params: { |
|
|
|
|
id, |
|
|
|
|
@ -65,7 +65,7 @@ export const getUser = (id) => { |
|
|
|
|
|
|
|
|
|
export const getUserPlatform = (id) => { |
|
|
|
|
return request({ |
|
|
|
|
url: '/blade-system/platform-detail', |
|
|
|
|
url: '/blade-system/user/platform-detail', |
|
|
|
|
method: 'get', |
|
|
|
|
params: { |
|
|
|
|
id, |
|
|
|
|
@ -75,14 +75,14 @@ export const getUserPlatform = (id) => { |
|
|
|
|
|
|
|
|
|
export const getUserInfo = () => { |
|
|
|
|
return request({ |
|
|
|
|
url: '/blade-system/info', |
|
|
|
|
url: '/blade-system/user/info', |
|
|
|
|
method: 'get', |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export const resetPassword = (userIds) => { |
|
|
|
|
return request({ |
|
|
|
|
url: '/blade-system/reset-password', |
|
|
|
|
url: '/blade-system/user/reset-password', |
|
|
|
|
method: 'post', |
|
|
|
|
params: { |
|
|
|
|
userIds, |
|
|
|
|
@ -92,7 +92,7 @@ export const resetPassword = (userIds) => { |
|
|
|
|
|
|
|
|
|
export const updatePassword = (oldPassword, newPassword, newPassword1) => { |
|
|
|
|
return request({ |
|
|
|
|
url: '/blade-system/update-password', |
|
|
|
|
url: '/blade-system/user/update-password', |
|
|
|
|
method: 'post', |
|
|
|
|
params: { |
|
|
|
|
oldPassword, |
|
|
|
|
@ -104,7 +104,7 @@ export const updatePassword = (oldPassword, newPassword, newPassword1) => { |
|
|
|
|
|
|
|
|
|
export const updateInfo = (row) => { |
|
|
|
|
return request({ |
|
|
|
|
url: '/blade-system/update-info', |
|
|
|
|
url: '/blade-system/user/update-info', |
|
|
|
|
method: 'post', |
|
|
|
|
data: row |
|
|
|
|
}) |
|
|
|
|
@ -112,7 +112,7 @@ export const updateInfo = (row) => { |
|
|
|
|
|
|
|
|
|
export const grant = (userIds, roleIds) => { |
|
|
|
|
return request({ |
|
|
|
|
url: '/blade-system/grant', |
|
|
|
|
url: '/blade-system/user/grant', |
|
|
|
|
method: 'post', |
|
|
|
|
params: { |
|
|
|
|
userIds, |
|
|
|
|
@ -123,7 +123,7 @@ export const grant = (userIds, roleIds) => { |
|
|
|
|
|
|
|
|
|
export const unlock = (userIds) => { |
|
|
|
|
return request({ |
|
|
|
|
url: '/blade-system/unlock', |
|
|
|
|
url: '/blade-system/user/unlock', |
|
|
|
|
method: 'post', |
|
|
|
|
params: { |
|
|
|
|
userIds, |
|
|
|
|
|