From 9d960ed0058f9087f49e9741a9af06c3f9116eb0 Mon Sep 17 00:00:00 2001
From: baoshiwei <baoshiwei@shlanbao.cn>
Date: 星期六, 19 四月 2025 11:23:02 +0800
Subject: [PATCH] feat(auth): 添加 Keycloak 认证支持

---
 zhitan-vue/src/api/login.js |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/zhitan-vue/src/api/login.js b/zhitan-vue/src/api/login.js
index 82250eb..18738e2 100644
--- a/zhitan-vue/src/api/login.js
+++ b/zhitan-vue/src/api/login.js
@@ -19,6 +19,28 @@
   })
 }
 
+export function loginBySocial(data) {
+  console.log("loginBySocial",data);
+  return request({
+    url: '/login',
+    headers: {
+      isToken: false,
+      repeatSubmit: false
+    },
+    method: 'post',
+    data: data
+  })
+}
+
+
+// 缁戝畾璐﹀彿
+export function authBinding() {
+  return request({
+    url: '/binding',
+    method: 'get'
+  });
+}
+
 // 娉ㄥ唽鏂规硶
 export function register(data) {
   return request({

--
Gitblit v1.9.3