feat:关系图谱优化
This commit is contained in:
1 parent
c69e87d1db
commit
dcf3d2fd6a
5 files changed
+515
-24
No files matched your search
@@ -70,6 +70,10 @@ export interface RelationCreateForm {
|
||||
remark?: string
|
||||
}
|
||||
|
||||
export interface RelationUpdateForm extends RelationCreateForm {
|
||||
relationId: string
|
||||
}
|
||||
|
||||
// 关系图谱
|
||||
export function getRelationGraph(userId?: string) {
|
||||
return request({
|
||||
@@ -95,3 +99,12 @@ export function createRelation(data: RelationCreateForm) {
|
||||
data,
|
||||
})
|
||||
}
|
||||
|
||||
// 修改已有用户关系
|
||||
export function updateRelation(data: RelationUpdateForm) {
|
||||
return request({
|
||||
url: "/admin/sysUserRelation/update",
|
||||
method: "put",
|
||||
data,
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user