import { GET, POST } from "@mobileUI/utils/http";
import { proxy_api } from "@mobileUI/utils/env";
import Store from "@mobileUI/store";

// 获取员工数据
export const getEmployeeData = (params) => {
  return POST(`${proxy_api[Store.node_env]}/saas/user_picker/user`, params);
};

// 获取组织架构版
export const getDeptData = (params) => {
  return POST(`${proxy_api[Store.node_env]}/saas/user_picker/dept`, params);
};

//获取前五人
export const getTopFiveEmployeeData = (params) => {
  return GET(`${proxy_api[Store.node_env]}/saas/user_picker/top5`, params);
};

//获取企业列表
export const getCorpList = (params) => {
  return GET(`${proxy_api[Store.node_env]}/api/corp/chain/current_user/corp_list`, params);
};

//获取上下游企业影子员工
export const getCorpChain = (params) => {
  return GET(`${proxy_api[Store.node_env]}/saas/user_picker/corpchain`, params);
};
