import http from './index.js';

// 分页查询会员权益
export const pageUserPlanEquity = (params) => http.get('/love/user-plan-equity/page', {params})

// 查询全部会员权益
export const listUserPlanEquity = (params) => http.get('/love/user-plan-equity', {params})

// 修改会员权益
export const addUserPlanEquity = (data) => http.post('/love/user-plan-equity', data)

// 删除会员权益
export const removeUserPlanEquity = (id) => http.delete('/love/user-plan-equity/' + id)

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

export default {
	pageUserPlanEquity,
	listUserPlanEquity,
	addUserPlanEquity,
	removeUserPlanEquity,
	getPlanByPriceId
}
