chore: 🔨 合并微信登录

This commit is contained in:
Ray.Hao committed 2024-12-01 19:12:17 +08:00
commit a2a141bec8
5 files changed
+81

No files matched your search

+17
View File
@@ -20,6 +20,23 @@ const AuthAPI = {
});
},
/**
* 微信登录接口
*
* @param code 微信登录code
* @returns 返回 token
*/
wechatLogin(code: string): Promise<LoginResult> {
return request<LoginResult>({
url: "/api/v1/auth/wechat-login",
method: "POST",
data: { code },
header: {
"Content-Type": "application/x-www-form-urlencoded",
},
});
},
/**
* 登出接口
*/