Files
app-api/internal/model/share_code.go
T

25 lines
443 B
Go
Raw Normal View History

2026-06-12 15:50:01 +08:00
package model
import "time"
const (
ShareDeviceModelX9 = "Luxsin-X9"
ShareDeviceModelX8 = "Luxsin-X8"
)
func IsValidShareDeviceModel(model string) bool {
return model == ShareDeviceModelX9 || model == ShareDeviceModelX8
}
2026-06-12 15:50:01 +08:00
type ShareCodeLog struct {
ID int
MacAddr string
ShareCode string
Action string // export | import
Model string
2026-06-12 15:50:01 +08:00
IpAddr string
EqData []byte
ExpireAt *time.Time
CreateAt time.Time
}