import http from './index.js';

// 分页查询会员等级
export const pageUsereGrade = (params) => http.get('/shop/user-grade/page', {params})

// 查询全部会员等级
export const listUsereGrade = (params) => http.get('/shop/user-grade', {params})

// 修改会员等级
export const addUsereGrade = (data) => http.post('/shop/user-grade', data)

// 删除会员等级
export const removeUsereGrade = (id) => http.delete('/shop/user-grade/' + id)

export default {
	pageUsereGrade,
	listUsereGrade,
	addUsereGrade,
	removeUsereGrade
}
