import http from './index.js';

// 分页查询会员证件
export const pageCertificate = (params) => http.get('/love/certificate/page', {params})

// 查询全部会员证件
export const listCertificate = (params) => http.get('/love/certificate', {params})

// 上传会员证件
export const addCertificate = (data) => http.post('/love/certificate', data)

// 修改会员证件
export const updateCertificate = (data) => http.put('/love/certificate', data)

// 删除会员证件
export const removeCertificate = (id) => http.delete('/love/certificate/' + id)

export default {
	pageCertificate,
	listCertificate,
	addCertificate,
	updateCertificate,
	removeCertificate
}
