|
|
@@ -3,6 +3,7 @@ import { get, post } from '@/utils/request'
|
|
|
const userApi = {
|
|
|
myInfoApi: '/api/user/my',
|
|
|
userInfoApi: '/api/user/info',
|
|
|
+ discoverUserApi: '/api/user/discover',
|
|
|
updateProfileApi: '/api/user/profile/basic',
|
|
|
updateAvatarApi: '/api/user/profile/avatar',
|
|
|
followUserApi: '/api/user/relation/follow',
|
|
|
@@ -23,6 +24,10 @@ export function getUserInfo(userId) {
|
|
|
return get(userApi.userInfoApi + '?userId=' + userId)
|
|
|
}
|
|
|
|
|
|
+export function getUsers() {
|
|
|
+ return get(userApi.discoverUserApi)
|
|
|
+}
|
|
|
+
|
|
|
// 更新用户资料
|
|
|
export function updateProfile(data) {
|
|
|
return post(userApi.updateProfileApi, data)
|