wlzboy
2026-02-26 f5c900c58513bad824381e69750ac7667ef35de0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import request from '@/utils/request'
 
/**
 * OCR服务连接诊断
 */
export function diagOcrConnection() {
  return request({
    url: '/system/diag/ocrConnection',
    method: 'get'
  })
}
 
/**
 * 通用网络连通性测试
 * @param {String} host - 目标主机
 * @param {Number} port - 目标端口
 */
export function testConnectivity(host, port) {
  return request({
    url: '/system/diag/testConnectivity',
    method: 'post',
    data: {
      host,
      port
    }
  })
}
 
/**
 * DNS解析测试
 * @param {String} hostname - 主机名
 */
export function testDnsResolution(hostname) {
  return request({
    url: '/system/diag/testDns',
    method: 'post',
    data: {
      hostname
    }
  })
}