chore: sync local updates

This commit is contained in:
2026-05-16 19:03:32 +08:00
parent 360a5f15b9
commit aff88ba97d
47 changed files with 3651 additions and 12175 deletions

View File

@@ -0,0 +1,14 @@
package storage
import "time"
// MonitorKV 键值配置(管理员令牌等),列名避开 MySQL 保留字 key/value
type MonitorKV struct {
CfgKey string `gorm:"primaryKey;size:128;column:cfg_key"`
CfgValue string `gorm:"type:text;column:cfg_value"`
UpdatedAt time.Time `gorm:"autoUpdateTime"`
}
func (MonitorKV) TableName() string { return "monitor_kv" }
const kvKeyAdminToken = "admin_token"