59 lines
930 B
JavaScript
59 lines
930 B
JavaScript
import request from '@/utils/request'
|
|
|
|
|
|
export function getUserList(query) {
|
|
return request({
|
|
url: '/system/userexam/',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
|
|
export function createUser(data) {
|
|
return request({
|
|
url: '/system/userexam/',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function updateUser(id, data) {
|
|
return request({
|
|
url: `/system/userexam/${id}/`,
|
|
method: 'put',
|
|
data
|
|
})
|
|
}
|
|
|
|
|
|
export function deleteUserExam(id, data) {
|
|
return request({
|
|
url: `/system/userexam/${id}/`,
|
|
method: 'delete',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function resetUserpw(id) {
|
|
return request({
|
|
url: `/system/user/${id}/resetpw/`,
|
|
method: 'put',
|
|
})
|
|
}
|
|
|
|
export function changePassword(data) {
|
|
return request({
|
|
url: '/system/user/password/',
|
|
method: 'put',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function impData(data) {
|
|
return request({
|
|
url: '/system/userexam/imp/',
|
|
method: 'post',
|
|
data
|
|
})
|
|
} |