1
This commit is contained in:
38
nx/api/user.js
Normal file
38
nx/api/user.js
Normal file
@@ -0,0 +1,38 @@
|
||||
import request from '@/nx/request'
|
||||
export default {
|
||||
// 账号登录
|
||||
accountLogin: data =>
|
||||
request({
|
||||
url: '/system/auth/login',
|
||||
method: 'POST',
|
||||
data,
|
||||
custom: {
|
||||
loadingMsg: '登录中'
|
||||
}
|
||||
}),
|
||||
// 获取用户权限信息
|
||||
getInfo: () => {
|
||||
return request({
|
||||
url: '/system/auth/get-permission-info',
|
||||
method: 'GET',
|
||||
custom: {
|
||||
showError: false,
|
||||
showLoading: false
|
||||
}
|
||||
})
|
||||
},
|
||||
getRoleMenusByParentMenuKey: params =>
|
||||
request({
|
||||
url: '/sys/permission/getMenuByParentNodeUrl',
|
||||
method: 'GET',
|
||||
params
|
||||
}),
|
||||
|
||||
getAppPermission: param => {
|
||||
request({
|
||||
params: param,
|
||||
url: '/sys/app-client-role/getListByUserIdAndClientId',
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user