import request from '@/utils/request'

// 获取省市两级联动列表（省级 + children 市级）
export function listProvinceWithCities() {
  return request({
    url: '/customer/address/province-cities',
    method: 'get'
  })
}

// 根据父级ID获取子级城市列表
export function listCitiesByParent(parentId) {
  return request({
    url: '/customer/address/cities',
    method: 'get',
    params: { parentId }
  })
}
