From 799a22cda35de94ad5658aa6283f1d80db132ba4 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期二, 05 九月 2023 17:09:51 +0800
Subject: [PATCH] fix todo

---
 constvar/const.go |   30 ++++++++++++++++++++++--------
 1 files changed, 22 insertions(+), 8 deletions(-)

diff --git a/constvar/const.go b/constvar/const.go
index 087eeb5..9f21401 100644
--- a/constvar/const.go
+++ b/constvar/const.go
@@ -1,18 +1,27 @@
 package constvar
 
 const (
-	NsqTopicScheduleTask          = "aps.%v.scheduleTask" //鎺掔▼浠诲姟涓嬪彂
-	NsqTopicGetPlcAddress         = "aps.%v.getPlcAddress"
-	NsqTopicSendPlcAddress        = "aps.%v.sendPlcAddress"
-	NsqTopicProcessParamsRequest  = "aps.%v.processParams.request"
-	NsqTopicProcessParamsResponse = "aps.%v.processParams.response"
+	NsqTopicScheduleTask              = "aps.%v.scheduleTask" //鎺掔▼浠诲姟涓嬪彂
+	NsqTopicGetPlcAddress             = "aps.%v.getPlcAddress"
+	NsqTopicSendPlcAddress            = "aps.%v.sendPlcAddress"
+	NsqTopicProcessParamsRequest      = "aps.%v.processParams.request"
+	NsqTopicProcessParamsResponse     = "aps.%v.processParams.response"
+	NsqTopicApsProcessParams          = "aps.%v.aps.processParams"     //鏈変簡鏂扮殑宸ヨ壓妯″瀷
+	NsqTopicTaskProcedureStatusUpdate = "aps.%v.task.procedure.status" //宸ュ簭鐘舵�佹洿鏂�
 )
 
-type PlcStartAddressType string
+type PlcStartAddressType int
 
 const (
-	PlcStartAddressTypeFinishNumber = 1
-	PlcStartAddressTypeTotalNumber  = 2
+	PlcStartAddressTypeFinishNumber PlcStartAddressType = 1
+	PlcStartAddressTypeTotalNumber  PlcStartAddressType = 2
+)
+
+type PlcStartAddressValueType string
+
+const (
+	PlcStartAddressValueTypeString PlcStartAddressValueType = "string"
+	PlcStartAddressValueTypeInt    PlcStartAddressValueType = "int"
 )
 
 const (
@@ -31,3 +40,8 @@
 func (slf PlcMethod) Valid() bool {
 	return slf == PlcMethodModbusTCP || slf == PlcMethodSerial
 }
+
+const (
+	PlcCacheKeyFinishNumber = "finish_number"
+	PlcCacheKeyTotalNumber  = "total_number"
+)

--
Gitblit v1.8.0