feat: 端点登录

This commit is contained in:
caijun
2026-01-25 20:22:58 +08:00
parent f9e1a0cc18
commit f43f2ff3c2
12 changed files with 551 additions and 444 deletions

View File

@@ -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',
}
})
}