import httpFetch from "@/api/fetch" import { BASE_LABEL_API } from "../const" import { Organization } from "./typing" // 获取用户组织树 export const getUserGroupTree = () => { return httpFetch({ url: "/api/v1/label_server/user/group/tree", method: "GET", }) } /* ****************************** Options ****************************** */ interface Option { label: string value: string } // 获取所有用户组 export const getUserGroupAll = () => { return httpFetch>({ url: BASE_LABEL_API + `/api/v1/label_server/user/group/all`, method: "GET", }) } // 获取所有用户 export const getUserAll = () => { return httpFetch>({ url: BASE_LABEL_API + "/api/v1/label_server/user/all", method: "GET", }) }