// 方法名定义 API：属于api级别的作用  getMachine：接口的作用  例如：API_getMachine
// 获取机器开关机状态
export const API_getMachine = (params) => uni.$u.http.get('/WX-SERVER/tEquipment/equipmentStatus', {
	params
})
// 查询商品列表
export const API_selectProductList = (params) => uni.$u.http.post('/SZWL-SERVER/tProduct/selectProductList', params)

// 获取openid
export const API_getOpenid = (params, custom) => uni.$u.http.get('/WX-SERVER/tSzsmWx/getOpenid', {
	params,
	custom
})
// 获取手机号
export const API_getPhone = (params) => uni.$u.http.get('/WX-SERVER/tSzsmWx/getPhone', {
	params
})
// 请求支付
export const API_repayment = (param, params) => uni.$u.http.post('/PAY-SERVER/tOrder/carsPayXCX', param, {
	params
})
// 获取优惠码 
export const API_getCode = (params, custom) => uni.$u.http.get('/SZWL-SERVER/tPromoCode/getCode', {
	params,
	custom
})
// 获取订单
export const API_getOrderlist = (params) => uni.$u.http.post('/ORDER-SERVER/tOrder/getOrderlist', params)
// 获取用户信息
export const API_getUserInfo = (params) => uni.$u.http.get('/WX-SERVER/tSzsmWx/getUserInfo', {
	params
})
// 获取5元优惠券
export const API_getConpon = (params, custom) => uni.$u.http.get('/SZWL-SERVER/tPromoCode/addYHJ', {
	params,
	custom
})
// 获取优惠券列表
export const API_getConponList = (params, custom) => uni.$u.http.get('/SZWL-SERVER/tPromoCode/getYHJList', {
	params,
	custom
})
// 获取取餐码
export const API_postMealCode = (params) => uni.$u.http.post(`/ORDER-SERVER/tOrder/getMealCode?sn=${params}`)
// 检查是否已经领取优惠券
export const API_getCheckYHJList = (params) => uni.$u.http.get('/SZWL-SERVER/tPromoCode/checkYHJList', {
	params
})
// 退款
export const API_refuse = (params) => uni.$u.http.get('/SZWL-SERVER/tOrder/refuseByXcu', {
	params
})

// 设置订阅取餐通知
export const API_setDingYue = (params) => uni.$u.http.get('/WX-SERVER/tSzsmWx/setDingYue', {
	params
})
