chore: 🔨 合并微信登录

This commit is contained in:
Ray.Hao
2024-12-01 19:12:17 +08:00
5 changed files with 81 additions and 0 deletions

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",
},
});
},
/**
* 登出接口
*/