From ad7cf53c446a71e65a3a914743f24ff041c8ac13 Mon Sep 17 00:00:00 2001
From: panlei <2799247126@qq.com>
Date: 星期四, 14 十一月 2019 11:27:04 +0800
Subject: [PATCH] fix 空指针引用

---
 structure/rule.go |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/structure/rule.go b/structure/rule.go
index ce55b80..6a2f066 100644
--- a/structure/rule.go
+++ b/structure/rule.go
@@ -1,13 +1,17 @@
 package structure
 
-import "basic.com/pubsub/protomsg.git"
+import (
+	"basic.com/pubsub/protomsg.git"
+)
 
 // 姣忎釜鐩爣鐨勫弬鏁帮細鐩镐技搴︼紝鍗犳瘮锛屽昂瀵�
 type Arg struct {
 	Id         uint64
+	Uuid	   string
 	Score      float64 // 鍖哄煙鍐呯殑鐩爣鐨勭浉浼煎害
 	Proportion float64 // 鍖哄煙鍐呯殑鐩爣鐨勫崰姣�
 	Size       float64 // 鍖哄煙鍐呯殑鐩爣鐨勫昂瀵�
+	AreaJson   string  // 鎵�灞炲尯鍩�
 	IsYolo     bool    // 鏄惁鏄痽olo鏁版嵁
 	Location   Rect    // 璁颁笅姣忎釜鐩爣鐨勪綅缃弬鏁帮紝鏈�鍚庣粰缁撴灉瑁呴厤浜鸿劯鏁版嵁鐨勬椂鍊欑敤鐨勫埌
 	Feature    []byte
@@ -30,10 +34,9 @@
 	TargetNum     int    // 鍖哄煙鍐呯洰鏍囨暟閲�
 	Args          []*Arg // 鍖哄煙鍐呯洰鏍囬泦鍚�
 	FilterData    []*Arg // 杩囨护鍚庡尯鍩熷唴鐩爣闆嗗悎
+	AlarmObj	  []*Arg // 鍖哄煙鍐呮渶鍚庢弧瓒宠鍒欑殑鐩爣
 	Time          string // 褰撳墠鏃堕棿锛堢敤浠ュ尮閰嶆椂闂磋鍒欙級
 	IsEffective   bool   // 瑙勫垯涓槸鍚︾敤鍒颁簡姝ゅ尯鍩�
-	KeepRight     bool   // 鏄惁闈犲彸琛�
-	IsStatic      bool   // 鏄惁闈欐
 }
 
 // sdk杈撳嚭鐨勫浘鐗囦笂鍗曚釜鐩爣鐨勬暟鎹�

--
Gitblit v1.8.0