73 lines
2.1 KiB
Go
73 lines
2.1 KiB
Go
package model
|
||
|
||
type DeviceData struct {
|
||
Hikvision
|
||
Data struct {
|
||
DeviceId string `json:"deviceId"` //设备id
|
||
DeviceName string `json:"deviceName"` //型号
|
||
DeviceModel string `json:"deviceModel"` //设备名称
|
||
DeviceSerial string `json:"deviceSerial"` //设备序列号
|
||
DeviceStatus int `json:"deviceStatus"` //0-离线,1-在线
|
||
GroupId string `json:"groupId"` //组id
|
||
IsEncrypt int `json:"isEncrypt"` //设备加密状态 0-关闭 1-开启
|
||
|
||
// 当使用设备接入详情接口获取的信息才会拥有版本
|
||
DeviceVersion string `json:"deviceVersion"`
|
||
} `json:"data"`
|
||
}
|
||
|
||
type DeviceListData struct {
|
||
Hikvision
|
||
Data struct {
|
||
PageNo int `json:"pageNo"`
|
||
PageSize int `json:"pageSize"`
|
||
Total int `json:"total"`
|
||
Rows []DeviceData `json:"rows"`
|
||
} `json:"data"`
|
||
}
|
||
|
||
type DeviceStatusData struct {
|
||
Hikvision
|
||
Data struct {
|
||
PrivacyStatus int `json:"privacyStatus"`
|
||
PirStatus int `json:"pirStatus"`
|
||
AlarmSoundMode int `json:"alarmSoundMode"`
|
||
BattryStatus int `json:"battryStatus"`
|
||
LockSignal int `json:"lockSignal"`
|
||
DiskNum int `json:"diskNum"`
|
||
DiskState string `json:"diskState"`
|
||
CloudStatus int `json:"cloudStatus"`
|
||
NvrDiskNum int `json:"nvrDiskNum"`
|
||
NvrDiskState string `json:"nvrDiskState"`
|
||
} `json:"data"`
|
||
}
|
||
|
||
type DeviceSetNTPCfgServerRes struct {
|
||
Hikvision
|
||
Data struct {
|
||
DeviceSetNTPCfgServerChild
|
||
} `json:"data"`
|
||
}
|
||
|
||
type DeviceSetNTPCfgServerChild struct {
|
||
Id string `json:"id"`
|
||
AddressingFormatType string `json:"addressingFormatType"`
|
||
HostName string `json:"hostName"`
|
||
IpAddress string `json:"ipAddress"`
|
||
PortNo int `json:"portNo"`
|
||
SynchronizeInterval int `json:"synchronizeInterval"`
|
||
}
|
||
|
||
type DeviceSetNTPServerCfgReq struct {
|
||
DeviceSerial string `json:"deviceSerial"`
|
||
NtpServerID int `json:"ntpServerId"`
|
||
NtpServer DeviceSetNTPCfgServerRes `json:"ntpServer"`
|
||
}
|
||
|
||
type DeviceNum struct {
|
||
Hikvision
|
||
Data struct {
|
||
TotalCount int `json:"totalCount"`
|
||
} `json:"data"`
|
||
}
|