api使用

作者: 懒懒猫 | 来源:发表于2022-09-02 14:52 被阅读0次
    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)
    }
    
    

    相关文章

      网友评论

          本文标题:api使用

          本文链接:https://www.haomeiwen.com/subject/ustynrtx.html