
import request from '@/utils/request'

// 新增
export function businessAdd(data) {
  return request({
    url: `/community/business/exposed`,
    method: 'post',
    data
  })
}

// 删除
export function businessDel(data) {
  return request({
      url: `/community/business/exposed`,
      method: 'delete',
      data
  })
}

// 修改
export function businessUpdate(data) {
  return request({
    url: `/community/business/exposed/${data.id}`,
    method: 'put',
    data: data
  })
}

// 查询List
export function businessQuery(query, type, alias) {
  return request({
    url: `/community/business/exposed/list`,
    method: 'get',
    params: query
  })
}

// 查询详情
export function businessFetch(id) {
  return request({
    url: `/community/business/exposed/${id}`,
    method: 'get'
  })
}