分享码日志新增 model 字段,记录操作的设备的型号 X8/X9

This commit is contained in:
eafonyang
2026-06-17 13:52:11 +08:00
parent 1e7dc01b22
commit 7687e6a0d9
12 changed files with 214 additions and 577 deletions
+10
View File
@@ -2,11 +2,21 @@ package model
import "time"
const (
ShareDeviceModelX9 = "Luxsin-X9"
ShareDeviceModelX8 = "Luxsin-X8"
)
func IsValidShareDeviceModel(model string) bool {
return model == ShareDeviceModelX9 || model == ShareDeviceModelX8
}
type ShareCodeLog struct {
ID int
MacAddr string
ShareCode string
Action string // export | import
Model string
IpAddr string
EqData []byte
ExpireAt *time.Time