feat: 优化登录功能 添加UID登录功能

This commit is contained in:
alger
2025-08-07 22:57:02 +08:00
parent aeb7f0361d
commit daa8e7514d
18 changed files with 1030 additions and 195 deletions
+8
View File
@@ -44,3 +44,11 @@ export function loginByCellphone(phone: string, password: string) {
password
});
}
// UID登录 - 通过用户ID获取用户信息
// /user/detail
export function loginByUid(uid: string | number) {
return request.get('/user/detail', {
params: { uid }
});
}