import axios from '../axios';

export function getList(obj: any) {
    return axios({
        url: '/ex/exam-schedule/select',
        method: 'get',
        params: obj
    })
}

export function add(obj: any) {
    return axios.post( '/ex/exam-schedule/insert',
       obj,{
        headers: {
            'Content-Type': 'application/json'
        }
    })
}

export function edit(obj: any) {
    return axios({
        url: '/ex/exam-edit',
        method: 'get',
    })
}

export const getIndustryList = async () => {
    const response = await axios.get('/ex/exam-schedule/getIndustry');
    return response.data;
};

export const getPaperList = async (obj:any) => {
    const response = await axios.get('/ex/dict/dictionary?code='+obj);
    return response.data;
};

export const getRegionList = async (obj:any) => {
    const response = await axios.get('/ex/dict/dictionary?code='+obj);
    return response.data;
};