Files

25 lines
443 B
Go

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
CreateAt time.Time
}