From 5413b950ac6693e24ac1cd7d8974ab8aa270b644 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期六, 22 一月 2022 12:04:44 +0800
Subject: [PATCH] 添加系统日志结构
---
scheduleLog.go | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/scheduleLog.go b/scheduleLog.go
index f7e6827..db5970f 100644
--- a/scheduleLog.go
+++ b/scheduleLog.go
@@ -3,21 +3,21 @@
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
- ProcName string `gorm:"column:procName" json:"procName"`
- ProcID string `gorm:"column:procID" json:"procID"`
- 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
+ ID string `gorm:"column:id;primaryKey;unique;autoIncrement" json:"id"` // 涓婚敭id
+ Timestamp int64 `gorm:"column:timestamp" json:"timestamp"` // 鏃堕棿鎴砋nix time
+ ProcName string `gorm:"column:procName" json:"procName"`
+ ProcID string `gorm:"column:procID" json:"procID"`
+ 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) {
+func (l *ScheduleLog) Marshal() ([]byte, error) {
return json.Marshal(l)
}
-func (l * ScheduleLog)Topic() string {
+func (l *ScheduleLog) Topic() string {
return ScheduleLogTopic
}
--
Gitblit v1.8.0