feat:新增账号设置模块和引入表格组件

This commit is contained in:
Xwen
2024-01-08 23:02:35 +08:00
parent a0fd35bf5e
commit 10a2593979
11 changed files with 2111 additions and 1579 deletions

View File

@@ -73,3 +73,45 @@ export function getLoginCode() {
method: "get",
});
}
/**
* 第三方账号登录
* @param {*} params 参数
* @param {*} scheme 类型
* @returns
*/
export function authOtherLogin(params, scheme) {
return request({
url: `/auth/oauth/login/${scheme}`,
method: "get",
params: params,
});
}
/**
* 第三方账号绑定
* @param {*} params 参数
* @param {*} scheme 类型
* @returns
*/
export function authOtherBind(params, scheme) {
return request({
url: `/auth/oauth/bind/${scheme}`,
method: "post",
params: params,
});
}
/**
* 第三方账号绑定
* @param {*} params 参数
* @param {*} scheme 类型
* @returns
*/
export function getOtherAuthInfo(params) {
return request({
url: `auth/account`,
method: "get",
params: params,
});
}