25 lines
635 B
JavaScript
25 lines
635 B
JavaScript
import http from './index.js';
|
|
|
|
// 分页查询会员套餐
|
|
export const pageUserPlan = (params) => http.get('/love/user-plan/page', {params})
|
|
|
|
// 查询全部会员套餐
|
|
export const listUserPlan = (params) => http.get('/love/user-plan', {params})
|
|
|
|
// 查询会员套餐信息
|
|
export const getUserPlan = (id) => http.get('/love/user-plan/' + id)
|
|
|
|
// 修改会员套餐
|
|
export const addUserPlan = (data) => http.post('/love/user-plan', data)
|
|
|
|
// 删除会员套餐
|
|
export const removeUserPlan = (id) => http.delete('/love/user-plan/' + id)
|
|
|
|
export default {
|
|
pageUserPlan,
|
|
listUserPlan,
|
|
getUserPlan,
|
|
addUserPlan,
|
|
removeUserPlan
|
|
}
|