feat: 端点登录
This commit is contained in:
@@ -90,6 +90,15 @@ export function getAdapterUserList(data, options) {
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 社交授权的跳转
|
||||
export function socialAuthRedirect(type, redirectUri) {
|
||||
return request({
|
||||
url: '/admin-api/system/auth/social-auth-redirect?type=' + type + '&redirectUri=' + redirectUri,
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取人员角色
|
||||
export function getAdapterRoleList() {
|
||||
return request({
|
||||
@@ -239,13 +248,18 @@ export function getPermissionInfo() {
|
||||
}
|
||||
|
||||
// 获取token
|
||||
export function socialLogin(token) {
|
||||
export function socialLogin(type, code, state) {
|
||||
console.log(type,code,state,'data数据---')
|
||||
return request({
|
||||
url: '/admin-api/system/auth/social-login',
|
||||
method: 'post',
|
||||
token,
|
||||
data: {
|
||||
type,
|
||||
code,
|
||||
state
|
||||
},
|
||||
header: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
'Content-Type': 'application/json',
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user