[功能]:1、添加http通用接口forest 2、引入justoauth 处理第三方登录 3、大致完成qq登录代码 4、前端界面修改适配第三方登录逻辑

This commit is contained in:
LemonTree
2022-04-20 18:30:27 +08:00
parent 28bfe461dc
commit bb2cdebac3
15 changed files with 875 additions and 560 deletions

View File

@@ -56,4 +56,59 @@ export function getCodeImg() {
method: 'get',
timeout: 20000
})
}
}
//查看是否存在bindId
export function checkBindId(bindId) {
return request({
url: '/auth/checkBindId/' + bindId,
method: 'get',
})
}
//查看是否存在errorId
export function getErrorMsg(errorId) {
return request({
url: '/auth/getErrorMsg/' + errorId,
method: 'get',
})
}
// 登录方法
export function bindLogin(username, password, code, uuid, bindId) {
const data = {
username,
password,
code,
uuid,
bindId
}
return request({
url: '/auth/bind/login',
headers: {
isToken: false
},
method: 'post',
data: data
})
}
// 注册方法
export function bindRegister(data) {
return request({
url: '/auth/bind/register',
headers: {
isToken: false
},
method: 'post',
data: data
})
}
//跳转登录
export function redirectLogin(loginId) {
return request({
url: '/auth/login/' + loginId,
method: 'get',
})
}