From 302c591ca77dd4fb2b6e373d9912b91ee88f89f5 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期三, 23 八月 2023 12:58:56 +0800 Subject: [PATCH] 下发工艺参数时使用nsq获取工艺参数 --- constvar/const.go | 19 +++++++++++++------ 1 files changed, 13 insertions(+), 6 deletions(-) diff --git a/constvar/const.go b/constvar/const.go index 00642ca..c64e44b 100644 --- a/constvar/const.go +++ b/constvar/const.go @@ -1,15 +1,22 @@ package constvar -type UserStatus int +const ( + NsqTopicScheduleTask = "aps.%v.scheduleTask" //鎺掔▼浠诲姟涓嬪彂 + NsqTopicGetPlcAddress = "aps.%v.getPlcAddress" + NsqTopicSendPlcAddress = "aps.%v.sendPlcAddress" + NsqTopicProcessParamsRequest = "aps.%v.processParams.request" + NsqTopicProcessParamsResponse = "aps.%v.processParams.response" +) -type UserType int +type PlcStartAddressType string const ( - UserTypeSuper UserType = iota + 1 // 瓒呯骇绠$悊鍛� - UserTypePrimary // 涓昏处鎴� - UserTypeSub // 瀛愯处鎴� + PlcStartAddressTypeFinishNumber = 1 + PlcStartAddressTypeTotalNumber = 2 ) const ( - ApsServerHost = "" + PlcAddressDataPath = "datafile/" + PlcAddressDataKeyFileName = "plc_address_key" + PlcAddressDataValueFileName = "plc_address_value" ) -- Gitblit v1.8.0