You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
730 B
28 lines
730 B
|
7 years ago
|
import request from '@/config/request'
|
||
|
|
|
||
|
|
const baseUrl = '/system/user'
|
||
|
|
|
||
|
|
export function getUsers(data) {
|
||
|
|
return request.post(baseUrl + '/search', data).then(({data}) => data.data)
|
||
|
|
}
|
||
|
|
|
||
|
|
export function kick(data) {
|
||
|
|
return request.post(baseUrl + '/kick', data).then(({data}) => data)
|
||
|
|
}
|
||
|
|
|
||
|
|
export function addUser(data) {
|
||
|
|
return request.post(baseUrl + '/add', data).then(({data}) => data)
|
||
|
|
}
|
||
|
|
|
||
|
|
export function updateUser(data) {
|
||
|
|
return request.post(baseUrl + '/update', data).then(({data}) => data)
|
||
|
|
}
|
||
|
|
|
||
|
|
export function delUser(data) {
|
||
|
|
return request.post(baseUrl + '/del', data).then(({data}) => data)
|
||
|
|
}
|
||
|
|
|
||
|
|
export function resetUserPwd(data) {
|
||
|
|
return request.post(baseUrl + '/resetPwd', data).then(({data}) => data)
|
||
|
|
}
|