import request from '@/utils/request'

// 获取服务信息
export function getServer() {
  return request({
    url: '/monitor/server',
    method: 'get'
  })
}

// 获取服务健康度检测
export function getHealth() {
  return request({
    url: '/monitor/server/health',
    method: 'get'
  })
}

// 手动测试微信推送（会真实下发一条消息）
export function triggerWxSendHealthTest() {
  return request({
    url: '/monitor/server/health/wx-send-test',
    method: 'post'
  })
}

// 手动测试企微闲鱼通知（经 wxSend goofish-active-push）
export function triggerGoofishNotifyTest() {
  return request({
    url: '/monitor/server/health/goofish-notify-test',
    method: 'post'
  })
}