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

export const regionListAction = () => {
    return commonGet(formatUrl(patrolUrls.companysUrl));
};

export const saveCurCompanyAction = (companyModel,departmentModel,roleModel) => {
    return commonPost(patrolUrls.saveSelectCompanyUrl, { companyModel,departmentModel,roleModel });
};