ZengTao
2024-05-13 c85904597bf93e0fbae321093a970dd973b0f64f
CanadaMes-ui/src/api/user.js
@@ -13,6 +13,32 @@
    })
}
export function currentUsername() {
    return request({
        url: '/api/user/currentUsername',
        method: 'get',
    })
 }
export function resetPass(data) {
   return request({
       url: '/api/user/resetPass',
       method: 'post',
       data
   })
}
export function yanzhengmima(data) {
    return request({
        url: '/api/user/verifyPassword',
        method: 'post',
        data
    })
 }
/**
 * 注册
 * @param data
@@ -25,7 +51,40 @@
        data
    })
}
export function test(data) {
    return request({
        url: '/api/device/getAllDevices',
        method: 'get',
        data
    })
}
export function testup(data) {
    return request({
        url: '/api/device/updateMultipleDevices',
        method: 'post',
        data
    })
}
export function call(data) {
    return request({
        url: '/api/device/call-stored-proc',
        method: 'post',
        data
    })
}
/**
 * 注册时校验用户名是否存在
 * @param data
 * @returns {AxiosPromise}
 */
export function changePassword(data) {
    return request({
        url: '/api/user/changePassword',
        method: 'post',
        data
    })
}
/**
 * 注册时校验用户名是否存在
 * @param data