feat(group): edit group
This commit is contained in:
@@ -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[]>({
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user