address.js 692 B

123456789101112131415161718
  1. // 用户地址
  2. import { wxRequest } from './request'
  3. const addAddressURL = '/add/address' // 新增地址
  4. const addressListURL = '/address/list' // 地址列表
  5. const deleteAddressURL = '/delete/address' // 删除地址
  6. const editAddressURL = '/edit/address' // 编辑地址
  7. const getRegionURL = '/get/region' // 获取可用的省市区
  8. export const addAddress = (data) => wxRequest(addAddressURL, data)
  9. export const addressList = (data) => wxRequest(addressListURL, data)
  10. export const deleteAddress = (data) => wxRequest(deleteAddressURL, data)
  11. export const editAddress = (data) => wxRequest(editAddressURL, data)
  12. export const getRegion = (data) => wxRequest(getRegionURL, data)