This commit is contained in:
Logan committed 2026-07-09 14:16:56 +08:00
1 parent 0690285147
commit 5618cd2738
154 files changed
+5021 -3161

No files matched your search

+4 -4
View File
@@ -74,10 +74,10 @@ func (h *LogHandler) CreateSource(c *gin.Context) {
configJSON, _ := json.Marshal(req.Config)
now := time.Now()
item := model.LogSource{
Name: req.Name,
Type: req.Type,
Status: "active",
Config: string(configJSON),
Name: req.Name,
Type: req.Type,
Status: "active",
Config: string(configJSON),
LastSeen: &now,
}
h.db.Create(&item)