Files
learning-system-mobile/api/boe/login.js
2023-08-10 17:22:37 +08:00

29 lines
590 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**控制台相关的控制数据*/
import ajax from '@/api/boe/boeApiAjax.js'
/**
* 退出登录
*/
const logout = function() {
return ajax.postJson('/b1/system/user/logout',{from:'wechat'});
}
/**修改密码,不再使用已转化为userbasic接口
* oldPassword:'',
* newPassword:'',
* confirmPassword:''
*/
const modifyPassword = function(data) {
return ajax.postJson('/b1/system/user/update-password',data);
}
const getRsaPublicKey=function(){
return ajax.get('/b1/common/secret/rsa-public-key');
}
export default {
logout,
modifyPassword,
getRsaPublicKey
}