import http from './index.js';

// 分页查询临时报餐
export const pageTemporary = (params) => http.get('/apps/bc-temporary/page', {params})

// 分页查询临时报餐
export const pageTemporaryUser = (params) => http.get('/open/bc-temporary/page', {params})

// 分页查询临时报餐
export const listTemporaryUser = (params) => http.get('/open/bc-temporary', {params})

// 查询临时报餐
export const getTemporaryUser = (TemporaryUserId) => http.get('/open/bc-temporary/' + TemporaryUserId)

// 修改
export const updateTemporary = (data) => http.put('/apps/bc-temporary', data)

export const removeTemporary = (id) => http.delete('/apps/bc-temporary/' + id)

// 申请临时报餐
export const applyTemporary = (data) => http.post('/apps/bc-temporary/apply', data)

export default {
	updateTemporary,
	pageTemporary,
	pageTemporaryUser,
	listTemporaryUser,
	getTemporaryUser,
	applyTemporary,
	removeTemporary
}
