JIALDemo/target/classes/backend/api/member.js

42 lines
691 B
JavaScript
Raw Normal View History

2023-11-28 08:43:15 +08:00
function getMemberList (params) {
return $axios({
2023-12-06 23:19:44 +08:00
url: '/user/page',
2023-11-28 08:43:15 +08:00
method: 'get',
params
})
}
// 修改---启用禁用接口
2023-12-06 23:19:44 +08:00
function enableOrDisableUser (params) {
2023-11-28 08:43:15 +08:00
return $axios({
2023-12-06 23:19:44 +08:00
url: '/user',
2023-11-28 08:43:15 +08:00
method: 'put',
data: { ...params }
})
}
// 新增---添加员工
function addEmployee (params) {
return $axios({
2023-12-06 23:19:44 +08:00
url: '/user',
2023-11-28 08:43:15 +08:00
method: 'post',
data: { ...params }
})
}
// 修改---添加员工
2023-12-06 23:19:44 +08:00
function editUser (params) {
2023-11-28 08:43:15 +08:00
return $axios({
2023-12-06 23:19:44 +08:00
url: '/user',
2023-11-28 08:43:15 +08:00
method: 'put',
data: { ...params }
})
}
// 修改页面反查详情接口
function queryEmployeeById (id) {
return $axios({
2023-12-06 23:19:44 +08:00
url: `/user/${id}`,
2023-11-28 08:43:15 +08:00
method: 'get'
})
}