From 508a1fc8f2d5cde4116371d2adec012f57aef807 Mon Sep 17 00:00:00 2001
From: haozhifeng <haozhifeng>
Date: 星期四, 12 八月 2021 10:21:34 +0800
Subject: [PATCH] ruleserver 日志

---
 scheduleLog.go |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/scheduleLog.go b/scheduleLog.go
index 0cd045f..f7e6827 100644
--- a/scheduleLog.go
+++ b/scheduleLog.go
@@ -1,5 +1,7 @@
 package logc
 
+import "encoding/json"
+
 type ScheduleLog struct {
 	ID        string `gorm:"column:id;primaryKey;unique;autoIncrement" json:"id"` // 涓婚敭id
 	Timestamp int64  `gorm:"column:timestamp" json:"timestamp"`                   // 鏃堕棿鎴砋nix time
@@ -8,4 +10,14 @@
 	Level     int    `gorm:"column:level" json:"level"`       // 鏃ュ織绛夌骇
 	Type      int    `gorm:"column:type" json:"type"`         // 鎿嶄綔绫诲瀷:浜哄伐鎿嶄綔,鐧诲綍閫�鍑�,杞惊鎽勫儚鏈哄強瀵瑰簲绠楁硶,鏁版嵁鏍堝鐞嗘儏鍐�,寮傚父鎯呭喌绛�
 	Info      string `gorm:"column:info" json:"info"`         // 璇︽儏
+	ScheduleStartTime string  `gorm:"column:schedule_start_time" json:"schedule_start_time"`                   // 鏃堕棿鎴砋nix time
+	ScheduleEndTime string  `gorm:"column:schedule_end_time" json:"schedule_end_time"`                   // 鏃堕棿鎴砋nix time
+}
+
+func (l * ScheduleLog)Marshal()([]byte, error) {
+	return json.Marshal(l)
+}
+
+func (l * ScheduleLog)Topic() string {
+	return ScheduleLogTopic
 }

--
Gitblit v1.8.0