| | |
| | | import request from '@/utils/request'
|
| | | import { praseStrEmpty } from "@/utils/ruoyi";
|
| | |
|
| | | // 查询用户列表
|
| | | export function listUser(query) {
|
| | |
| | | // 查询用户详细
|
| | | export function getUser(userId) {
|
| | | return request({
|
| | | url: '/system/user/' + userId,
|
| | | url: '/system/user/' + praseStrEmpty(userId),
|
| | | method: 'get'
|
| | | })
|
| | | }
|
| | |
| | | method: 'post',
|
| | | data: data
|
| | | })
|
| | | } |
| | | }
|
| | |
|
| | | // 查询授权角色
|
| | | export function getAuthRole(userId) {
|
| | | return request({
|
| | | url: '/system/user/authRole/' + userId,
|
| | | method: 'get'
|
| | | })
|
| | | }
|
| | |
|
| | | // 保存授权角色
|
| | | export function updateAuthRole(data) {
|
| | | return request({
|
| | | url: '/system/user/authRole',
|
| | | method: 'put',
|
| | | params: data
|
| | | })
|
| | | }
|