import formatUrl from 'amos-processor/lib/utils/urlFormat';
import { patrolUrls } from './../consts/urlConsts';
import { commonGet } from './../utils/request';

/**
 * 获取巡检点
 */
export const getUserTreeAction = (companyId, roleType) => {
  return commonGet(formatUrl(patrolUrls.userTreeGetByCompanyIdUrl, { companyId, roleType }));
};
