import http from './index.js';

// 分页查询访客记录
export const pageLook = (params) => http.get('/shop/user-look/page', {params})

// 查询全部访客记录
export const listLook = (params) => http.get('/shop/user-look', {params})

// 添加访客记录
export const addLook = (data) => http.post('/shop/user-look', data)

// 修改访客记录
export const updateLook = (data) => http.put('/shop/user-look', data)

// 删除访客记录
export const removeLook = (id) => http.delete('/shop/user-look/' + id)

export default {
	pageLook,
	listLook,
	addLook,
	removeLook,
	updateLook
}
