import http from './index.js';

// 分页查询推荐关系
export const pageUserReferee = (params) => http.get('/shop/shop-user-referee/page', {params})

// 查询全部推荐关系
export const listUserReferee = (params) => http.get('/shop/shop-user-referee', {params})

// 修改推荐关系
export const addUserReferee = (data) => http.post('/shop/shop-user-referee', data)

// 删除推荐关系
export const removeUserReferee = (id) => http.delete('/shop/shop-user-referee/' + id)

export default {
	pageUserReferee,
	listUserReferee,
	addUserReferee,
	removeUserReferee
}
