干燥机配套车间生产管理系统/云平台服务端
baoshiwei
2024-05-27 fa3ac93010bea3805438ee3ab0a182bfbf7423da
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { defHttp } from '/@/utils/http/axios';
 
enum Api {
  sendCommand = '/dry/real/sendCommand',
  sendWriteCommand = '/dry/opc/sendWriteCommand',
  listAll = '/dry/dryOpcDevice/listAll'
}
/**
 * 发送命令
 * @param params
 */
export const sendCommand = (params) => defHttp.post({ url: Api.sendCommand, params },{ isTransformResponse: false });
 
/**
 * 发送OPC写指令
 */
 
export const sendWriteCommand = (params) => defHttp.post({url: Api.sendWriteCommand, params},{isTransformResponse: false})
 
/**
 * 查询所有OPC设备
 */
 
export const listAll = (params) => defHttp.get({url:Api.listAll, params})