import request from '@/utils/request'

const base = '/${moduleName}/${entity.toSimpleLowerName()}/'

export const doAdd = (data) => request.post(base, data)

export const doUpdate = (data) => request.put(base, data)

export const doDelete = (ids) => request.delete(base+ids)

export const doPage = (params) => request.get(base + 'page', { params })

export const doGet = (id) => request.get(base + id)
