yunzer_go/pc/src/api/oa.js
2025-11-06 15:56:29 +08:00

16 lines
438 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import request from '@/utils/request';
/**
* 获取OA基础数据部门、职位、角色
* 这是一个合并接口,一次性获取所有基础数据,减少网络请求次数
* @param {number} tenantId - 租户ID
* @returns {Promise} 返回包含 departments, positions, roles 的数据
*/
export function getOABaseData(tenantId) {
return request({
url: `/api/oa/base-data/${tenantId}`,
method: 'get',
});
}