修改设备设置及登录判断

This commit is contained in:
zyj
2025-09-17 18:29:30 +08:00
parent 25e0620a3f
commit c2f5721ddd
5 changed files with 43 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ type Device struct {
Mem string `gorm:"mem"`
Disk string `gorm:"disk"`
LoginStatus int `gorm:"login_status"` // 1: 已登录, 0: 未登录
Ip string `gorm:"ip"`
CreatedAt time.Time `gorm:"created_at;type:timestamptz"`
UpdatedAt time.Time `gorm:"updated_at;type:timestamptz"`
}