import request from "@/utils/request";
import {BASE_URL} from '@/config';


export const getDistrictList = (params) => {
    return request({
        method: 'get',
        url: `${BASE_URL}/exam-data/system/getDistrictListNew`,
        params,
    });
};

export const saveDistrict = (data) => {
    return request({
        method: 'post',
        url: `${BASE_URL}/exam-data/system/saveDistrictNew`,
        data,
    });
};

export const getDistrictDetail = (params) => {
    return request({
        method: 'get',
        url: `${BASE_URL}/exam-data/system/getDistrictById`,
        params,
    });
};