演示项目

This commit is contained in:
2023-12-12 17:31:48 +08:00
parent 9e3f0c440a
commit 9ae4a83573
121 changed files with 20562 additions and 288 deletions

27
web_home/src/api/user.js Normal file
View File

@@ -0,0 +1,27 @@
import request from '@/utils/request'
export function login(data) {
return request({
url: '/login/user',
method: 'post',
data
})
}
export function getInfoAdmin(data) {
return request({
url: '/user/info_admin',
method: 'post',
})
}
export function getFriends(userId) {
let space = 'user_relation';
return request({
url: `/nebula_operate/findonepathbyidwithrelation/${space}/${userId}`,
method: 'post',
data: {
relations: ['edge_768395026']
}
})
}