import request from '@/utils/request'


//监控动态
export function dynamicPage(data) {
  return request({
    url: '/monitor/user/company/dynamicPage',
    method: 'post',
    data: data
  })
}
//监控动态详情
export function dynamicDetail(data) {
  return request({
    url: '/monitor/user/company/dynamicDetail',
    method: 'post',
    data: data
  })
}

// 企业监控列表
export function companyPage(data) {
  return request({
    url: '/monitor/user/system/companyPage',
    method: 'post',
    data: data
  })
}
// 模糊查企业联想
export function companyList(data) {
  return request({
    url: '/enterprise/index',
    method: 'post',
    data: data
  })
}
// 添加默认监控
export function defaultAdd() {
  return request({
    url: '/monitor/user/add/default',
    method: 'post',
  })
}
// 添加监控企业
export function companyAdd(data) {
  return request({
    url: '/monitor/user/system/add',
    method: 'post',
    data: data
  })
}
// 获取监控推荐企业
export function queryMonitorCompany(data) {
  return request({
    url: '/monitor/user/system/queryMonitorCompany',
    method: 'post',
    data: data
  })
}
// 取消监控企业
export function companyCancel(data) {
  return request({
    url: '/monitor/user/system/cancel',
    method: 'post',
    data: data
  })
}
// 企业监控详情
export function companyDetail(data) {
  return request({
    url: '/monitor/user/system/detail',
    method: 'post',
    data: data
  })
}

// 监控报告
export function reportPage(data) {
  return request({
    url: '/monitor/user/reportPage',
    method: 'post',
    data: data
  })
}

// 监控维度设置-类型
export function rulesSelect() {
  return request({
    url: '/monitor/user/push/rulesSelect',
    method: 'get',
  })
}

// 监控维度设置-新增修改
export function insertOrUpdate(data) {
  return request({
    url: '/monitor/user/push/rules/insertOrUpdate',
    method: 'post',
    data: data
  })
}


// 监控维度设置
export function rulesDetail(data) {
  return request({
    url: '/monitor/user/push/rulesDetail',
    method: 'post',
    data: data
  })
}



