// 引入 request 文件
import request from '@/common/api/request.js'
const urlAccount = '/account'
const urlProduct = '/product'
const urlOrder = '/order'

//桌码获取详细台桌信息
export const getTableInfo = (data) => {
	return request({
		url: urlAccount + '/user/shopInfo/tableInfo',
		method: 'get',
		data: data
	})
}
//商品列表
export const APIgeocodelocation = (data) => {
	return request({
		url: urlAccount + '/user/points/mall/goods/page',
		method: 'get',
		data: data
	})
}

//001-会员积分账户信息
export const APImemberPointsmyPoints = (data) => {
	return request({
		url: urlAccount + '/user/points/memberPoints/myPoints',
		method: 'get',
		data: data
	})
}

//002-获取订单可用积分及抵扣金额（支付页面使用）
export const APImemberPointscalcUsablePoints = (data) => {
	return request({
		url: urlAccount + '/user/points/memberPoints/calcUsablePoints',
		method: 'get',
		data: data
	})
}

//003-根据积分计算可抵扣金额
export const APImemberPointscalcDeductionAmount = (data) => {
	return request({
		url: urlAccount + '/user/points/memberPoints/calcDeductionAmount',
		method: 'get',
		data: data
	})
}