/**
 * 海邻大事记动态接口
 */
import request from '@/utils/request'
// 获取菜单列表
export const getCompanies = (params) => request.basic.get('/api/v1/companies ', params)
// 获取菜单条数据
export const getMenuCompanies = (id) => request.basic.get(`/api/v1/companies/${id}`)
// 添加菜单
export const createCompaniesMenu = (params) => request.basic.post('/api/v1/companies', params)
// 更新菜单
export const updateCompanies = (id, params) => request.basic.put(`/api/v1/companies/${id}`, params)
// 删除菜单
export const delCompanies = (id) => request.basic.delete(`/api/v1/companies/${id}`)
