From 131945ff5bc769dbc1004e12a8afc832df275c96 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期四, 16 五月 2024 10:45:40 +0800
Subject: [PATCH] 人脸通知添加ExecuteOperation

---
 service/subscribe.go |    9 +++++----
 vo/subscribe.go      |   13 +++++++------
 2 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/service/subscribe.go b/service/subscribe.go
index 574cb8e..e5fd3dc 100644
--- a/service/subscribe.go
+++ b/service/subscribe.go
@@ -187,10 +187,11 @@
 			}
 
 			var notification = vo.FaceNotification{
-				NotificationID: triggerTime + snowflake.GenerateIdStr(),
-				SubscribeID:    task.conf.Id,
-				Title:          task.conf.Ext.Title,
-				TriggerTime:    triggerTime,
+				NotificationID:   triggerTime + snowflake.GenerateIdStr(),
+				SubscribeID:      task.conf.Id,
+				Title:            task.conf.Ext.Title,
+				TriggerTime:      triggerTime,
+				ExecuteOperation: 1,
 			}
 			var ids []string
 			for idx, _ := range task.faceList {
diff --git a/vo/subscribe.go b/vo/subscribe.go
index 29c7022..96eca70 100644
--- a/vo/subscribe.go
+++ b/vo/subscribe.go
@@ -67,10 +67,11 @@
 }
 
 type FaceNotification struct {
-	NotificationID string
-	SubscribeID    string
-	Title          string
-	TriggerTime    string
-	InfoIDs        string
-	FaceObjectList NotificationFaceList
+	NotificationID   string
+	SubscribeID      string
+	Title            string
+	TriggerTime      string
+	InfoIDs          string
+	ExecuteOperation int
+	FaceObjectList   NotificationFaceList
 }

--
Gitblit v1.8.0