干燥机配套车间生产管理系统/云平台前端
朱桂飞
2025-01-11 909d20ae348ae18a07a54068c3517ce47a2bcfc7
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})