分享码日志新增 model 字段,记录操作的设备的型号 X8/X9
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user