//
import request from 'mn-template/plugins/http';

//  *
//  * 获取省列表
//  *
export const getProvinceList = async params => {
  return request({
    method: 'get',
    params: params,
    headers: {
      noLoading:true,
    },
    withCredentials: true,
    url: 'tis/insurance/provinces'
  });
};
/**
 * 获取市列表
 */
export const getCityList = async params => {
  return request({
    method: 'get',
    params: params,
    withCredentials: true,
    headers: {
      noLoading:true,
    },
    url: 'tis/insurance/cities'
  });
};
/**
 * 获取县/区列表
 */
export const getCountyList = async params => {
  return request({
    method: 'get',
    params: params,
    headers: {
      noLoading:true,
    },
    withCredentials: true,
    url: '/tis/insurance/counties'
  });
};
/**
 * 获取乡镇列表
 */
export const getTownList = async params => {
  return request({
    method: 'get',
    params: params,
    headers: {
      noLoading:true,
    },
    withCredentials: true,
    url: '/basic-data/position/towns'
  });
};

