feat(group): edit group

This commit is contained in:
2026-03-09 15:03:18 +08:00
parent e7670c7cef
commit fe46a422b4
6 changed files with 87 additions and 91 deletions

View File

@@ -38,6 +38,15 @@ export const userEditById = (data: User.EditProps, id: number) => {
})
}
// 编辑用户组织
export const userUpdateGroup = (data: User.UpdateGroupProps) => {
return httpFetch({
url: BASE_LABEL_API + `/api/v1/label_server/user/update/group`,
method: "POST",
body: JSON.stringify(data),
})
}
// 获取用户组织树
export const getUserGroupTree = () => {
return httpFetch<Organization.Response[]>({

View File

@@ -5,6 +5,7 @@ export namespace User {
all_projects: { [x: number]: number[] }
collect_projects: number[]
group_name: string
group_uuid: string
work_status: number
base_city: string
}
@@ -39,6 +40,11 @@ export namespace User {
base_city?: string
work_status?: number
}
export interface UpdateGroupProps {
user_id: number
group_uuid: string
}
}
export namespace Organization {