import request from '@/utils/request' /** * @param {Object} data获取个人地址列表 */ export function queryCustAddrApi(data) { return request({ url: '/smart-canteen/custaddr/queryCustAddrForApp', method: 'post', headers: { "openid": uni.getStorageSync('openId'), "sourceType": "7", }, data }) } /** * @param {Object} data获取单个地址 */ export function queryChildPlaceByIdApi(data) { return request({ url: '/smart-canteen/custaddr/queryChildPlaceById', method: 'post', headers: { "openid": uni.getStorageSync('openId'), "sourceType": "7", }, data }) } /** * @param {Object} data 新增个人地址 */ export function updateCustAddrApi(data) { return request({ url: '/smart-canteen/custaddr/updateCustAddrForApp', method: 'post', headers: { "openid": uni.getStorageSync('openId'), "sourceType": "7", }, data }) } /** * @param {Object} data设置默认地址 */ export function updateDefaultAddrApi(data) { return request({ url: '/smart-canteen/custaddr/updateDefaultAddrForApp', method: 'post', headers: { "openid": uni.getStorageSync('openId'), "sourceType": "7", }, data }) }