2025-06-27 14:01:42 +08:00
|
|
|
import { getRequest, postRequest } from "./axios";
|
2025-06-10 09:31:15 +08:00
|
|
|
|
|
|
|
// 获取部门
|
2025-06-27 14:01:42 +08:00
|
|
|
export const getDepartmentTree = (params) =>
|
|
|
|
postRequest("/oa/department/getTree", params);
|
2025-06-10 09:31:15 +08:00
|
|
|
// 获取数据字典
|
2025-06-27 14:01:42 +08:00
|
|
|
export const getDataDictionariesList = (params) =>
|
|
|
|
postRequest("/sys/dictionaries/list", params);
|
|
|
|
// 获取数据字典(树形)
|
|
|
|
export const getDataDictionariesListTree = (params) =>
|
|
|
|
postRequest("/sys/dictionaries/listTree", params);
|
|
|
|
// 部门树
|
|
|
|
export const getDepartmentListTree = (params) =>
|
|
|
|
getRequest("/sysdepartment/listTree", params);
|