|
|
@@ -3,7 +3,8 @@ import { USER_MODULE } from "./_prefix";
|
|
|
|
|
|
/**
|
|
|
* 获取用户数据
|
|
|
- * @returns {{avatar,username,nickname,bios}}
|
|
|
+ * @param userId
|
|
|
+ * @returns {Promise<{avatar:string,username:string,nickname:string,bios:string}>}
|
|
|
*/
|
|
|
export const fetchUserAuthProfile = userId => {
|
|
|
return request(`${USER_MODULE}/auth/${userId}`);
|