/**
 * 海邻动态接口
 */
import request from '@/utils/request'
// 获取公司动态列表
export const getDataList = (params) => request.basic.get('/api/v1/articles', params)
// 获取单条数据
export const getItem = (id) => request.basic.get(`/api/v1/articles/${id}`)
// 添加动态
export const createDynamic = (params) => request.basic.post('/api/v1/articles', params)
// 更新动态
export const updateItem = (id, params) => request.basic.put(`/api/v1/articles/${id}`, params)
// 删除动态
export const delItem = (id) => request.basic.delete(`/api/v1/articles/${id}`)
