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