mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-23 23:57:22 +08:00
feat: 优化登录功能 添加UID登录功能
This commit is contained in:
@@ -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 }
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user