import request from '@/utils/request'
// 获取用户列表
export function getdriverList (parameter) {
return request.post('/uavShareManage/orgDriverBindInfo/getDriverBindList', parameter)
}
// 查看驾驶员详情信息
export function getDriverInfo (parameter) {
return request.get(`/uavShareManage/orgDriverBindInfo/getDriverInfo?driverId=${parameter}`, parameter)
}
// 启用/禁用驾驶员
export function getUpdateDriverStatus (driverId, driverStatus) {
return request.get(`/uavShareManage/orgDriverBindInfo/updateDriverStatus?driverId=${driverId}&driverStatus=${driverStatus}`)
}
// 解绑驾驶员
export function getUnBindDriver (driverId) {
return request.get(`/uavShareManage/orgDriverBindInfo/unBindDriver?driverId=${driverId}`)
}
// 绑定驾驶员
export const postBindDriver = parameter => {
return request.post('/uavShareManage/orgDriverBindInfo/bindDriver', parameter)
}
// 更新驾驶员绑定信息
export const postUpdateDriverBindInfo = parameter => {
return request.post('/uavShareManage/orgDriverBindInfo/updateDriverBindInfo', parameter)
}
网友评论