import http from './index.js';

// 分页查询余额明细
export const pageBalanceLog = (params) => http.get('/shop/user-balance-log/page', {params})

// 分页查询余额明细
export const listBalanceLog = (params) => http.get('/shop/user-balance-log', {params})

// 查询余额明细
export const getBalanceLog = (balanceLogId) => http.get('/shop/user-balance-log/' + balanceLogId)

// 添加余额明细
export const addBalanceLog = (data) => http.post('/shop/user-balance-log', data)

// 删除余额明细
export const removeBalanceLog = (id) => http.get('/open/user-balance-log/remove/' + id)

export default {
	pageBalanceLog,
	listBalanceLog,
	getBalanceLog,
	addBalanceLog,
	removeBalanceLog
}
