import {request} from "@/utils/request"; //获取所属驿站 export function getSiteList(params: any) { return request( { url: "companyService/company/getSiteList", method: 'get', params: params, }, { isNew: true, }, ); } //获取县区 export function getRegionList(params: any) { return request( { url: "system/area/getCityList", method: 'get', params: params, }, { isNew: true, }, ); } //获取街道 export function getStreeList(params: any) { return request( { url: "system/area/getAreaList", method: 'get', params: params, }, { isNew: true, }, ); } //提交添加 export function saveCompanyPost(data:any){ return request( { url:'companyService/company/saveAppCompanyPost', method:'post', data } ) } //获取企业信息 export function getCompanyList(params:any){ return request({ url:'companyService/company/getList', method:'get', params },{ isNew:true }) } //获取企业岗位信息 export function getCompanyPostList(params:any){ return request({ url:'companyService/post/getList', method:'get', params },{ isNew:true }) } export function getCompanyById(id: string) { return request({ url: 'companyService/company/getCompanyByID', method: 'get', params: {id} }, { isNew: true }) } export function getCurrentDate() { const now = new Date(); const year = now.getFullYear(); const month = (now.getMonth() + 1).toString().padStart(2, '0'); const day = now.getDate().toString().padStart(2, '0'); const currentDate = `${year}-${month}-${day}`; return currentDate; }