import http from './index.js';

// 分页查询购买记录
export const pageUserPlanLog = (params) => http.get('/love/user-plan-log/page', {params})

// 查询全部购买记录
export const listUserPlanLog = (params) => http.get('/love/user-plan-log', {params})

// 修改购买记录
export const addUserPlanLog = (data) => http.post('/love/user-plan-log', data)

// 删除购买记录
export const removeUserPlanLog = (id) => http.delete('/love/user-plan-log/' + id)

// 创建会员订单记录
export const getPlanByPriceId = (priceId) => http.get('/love/user-plan-log/getPlanByPriceId/' + priceId)

export default {
	pageUserPlanLog,
	listUserPlanLog,
	addUserPlanLog,
	removeUserPlanLog,
	getPlanByPriceId
}
