188 lines
7.3 KiB
Go
188 lines
7.3 KiB
Go
package model
|
|
|
|
import "time"
|
|
|
|
type MQBase struct {
|
|
Hikvision
|
|
Success bool `json:"success"`
|
|
}
|
|
|
|
type MQMessage struct {
|
|
MQBase
|
|
Data []struct {
|
|
MsgID string `json:"msgId"`
|
|
MsgType string `json:"msgType"`
|
|
Content string `json:"content"`
|
|
Timestamp int `json:"timestamp"`
|
|
} `json:"data"`
|
|
}
|
|
|
|
type MQMessageDeviceOnOffLine struct {
|
|
GroupId string `json:"groupId"`
|
|
DeviceId string `json:"deviceId"`
|
|
DeviceSerial string `json:"deviceSerial"`
|
|
DevType string `json:"devType"`
|
|
RegTime string `json:"regTime"`
|
|
NatIp string `json:"natIp"`
|
|
MsgType string `json:"msgType"`
|
|
SubSerial string `json:"subSerial"`
|
|
OccurTime string `json:"occurTime"`
|
|
DeviceName string `json:"deviceName"`
|
|
}
|
|
|
|
type MQMessageEventAccess struct {
|
|
EventID string `json:"eventId"`
|
|
DateTime time.Time `json:"dateTime"`
|
|
EmployeeNo string `json:"employeeNo"`
|
|
CardNo string `json:"cardNo"`
|
|
DeviceSerial string `json:"deviceSerial"`
|
|
DeviceName string `json:"deviceName"`
|
|
ChannelNo string `json:"channelNo"`
|
|
ChannelName string `json:"channelName"`
|
|
EventType string `json:"eventType"`
|
|
EventCode string `json:"eventCode"`
|
|
EventDescription string `json:"eventDescription"`
|
|
EventSource string `json:"eventSource"`
|
|
PictureURL string `json:"pictureURL"`
|
|
BodyMaxTemperatureValue int `json:"bodyMaxTemperatureValue"`
|
|
CurrTemperature float64 `json:"currTemperature"`
|
|
HealthInfo HealthInfo `json:"healthInfo"`
|
|
EventRemark string `json:"eventRemark"`
|
|
PhysicalInfo struct {
|
|
Type int `json:"type"`
|
|
Weight int `json:"weight"`
|
|
Height int `json:"height"`
|
|
Bmi float64 `json:"bmi"`
|
|
Bodyfat float64 `json:"bodyfat"`
|
|
Water float64 `json:"water"`
|
|
Muscle float64 `json:"muscle"`
|
|
Musclem float64 `json:"musclem"`
|
|
Bone float64 `json:"bone"`
|
|
Lbm float64 `json:"lbm"`
|
|
Protein float64 `json:"protein"`
|
|
Subfat float64 `json:"subfat"`
|
|
Visfat int `json:"visfat"`
|
|
BodyAge int `json:"bodyAge"`
|
|
BodyShape int `json:"bodyShape"`
|
|
Bmr int `json:"bmr"`
|
|
Score float64 `json:"Score"`
|
|
Fatmass float64 `json:"Fatmass"`
|
|
Bodywater float64 `json:"Bodywater"`
|
|
Fatcontrol float64 `json:"Fatcontrol"`
|
|
Weightcontrol float64 `json:"Weightcontrol"`
|
|
Musclemasscontrol float64 `json:"musclemasscontrol"`
|
|
Obesity int `json:"Obesity"`
|
|
} `json:"physicalInfo"`
|
|
}
|
|
|
|
type MQMessageEventQrcode struct {
|
|
DeviceSerial string `json:"deviceSerial"`
|
|
DateTime time.Time `json:"dateTime"`
|
|
SerialNo int `json:"serialNo"`
|
|
DeviceName string `json:"deviceName"`
|
|
QRCodeInfo string `json:"QRCodeInfo"`
|
|
ThermometryUnit string `json:"thermometryUnit"`
|
|
CurrTemperature string `json:"currTemperature"`
|
|
RegionCoordinates struct {
|
|
PositionX int `json:"positionX"`
|
|
} `json:"regionCoordinates"`
|
|
RemoteCheck bool `json:"remoteCheck"`
|
|
PictureURL string `json:"pictureURL"`
|
|
HealthInfo HealthInfo `json:"healthInfo"`
|
|
}
|
|
|
|
type HealthInfo struct {
|
|
HealthCode int `json:"healthCode"`
|
|
NADCode int `json:"NADCode"`
|
|
TravelCode int `json:"travelCode"`
|
|
TravelInfo string `json:"travelInfo"`
|
|
VaccineStatus int `json:"vaccineStatus"`
|
|
VaccineNum int `json:"vaccineNum"`
|
|
}
|
|
|
|
type MQMessageAccessAuthSync struct {
|
|
StatisticsId string `json:"statisticsId"`
|
|
PermissionGroupId string `json:"permissionGroupId"`
|
|
SyncType int `json:"syncType"`
|
|
SyncStatus int `json:"syncStatus"`
|
|
SyncMode int `json:"syncMode"`
|
|
SyncTime string `json:"syncTime"`
|
|
FinishTime string `json:"finishTime"`
|
|
TotalDeviceNum int `json:"totalDeviceNum"`
|
|
TotalPersonNum int `json:"totalPersonNum"`
|
|
}
|
|
|
|
type MQMessageEventUserInfoCollect struct {
|
|
DeviceSerial string `json:"deviceSerial"`
|
|
ChannelNo int `json:"channelNo"`
|
|
DateTime string `json:"dateTime"`
|
|
ActivePostCount int `json:"activePostCount"`
|
|
UserInfo struct {
|
|
LastCaptureNo int `json:"lastCaptureNo"`
|
|
CaptureNo int `json:"captureNo"`
|
|
DataType string `json:"dataType"`
|
|
RiskDataMark bool `json:"riskDataMark"`
|
|
Name string `json:"name"`
|
|
EmployeeNo string `json:"employeeNo"`
|
|
FaceUrl string `json:"faceUrl"`
|
|
IdcardNo string `json:"idcardNo"`
|
|
IdentityInfo struct {
|
|
ChnName string `json:"chnName"`
|
|
EnName string `json:"enName"`
|
|
Gender string `json:"gender"`
|
|
Birth string `json:"birth"`
|
|
Addr string `json:"addr"`
|
|
IdcardNo string `json:"idcardNo"`
|
|
IssuingAuthority string `json:"issuingAuthority"`
|
|
StartDate string `json:"startDate"`
|
|
EndDate string `json:"endDate"`
|
|
Nation int `json:"nation"`
|
|
PassNo string `json:"passNo"`
|
|
IssueNumber string `json:"issueNumber"`
|
|
CertificateType string `json:"certificateType"`
|
|
PermanentResidenceCardNo string `json:"permanentResidenceCardNo"`
|
|
NationalityOrAreaCode string `json:"nationalityOrAreaCode"`
|
|
Version string `json:"version"`
|
|
ReceivingAuthorityCode string `json:"receivingAuthorityCode"`
|
|
FaceData string `json:"faceData"`
|
|
Fingerprints []string `json:"fingerprints"`
|
|
} `json:"identityInfo"`
|
|
Fingerprints []struct {
|
|
FingerprintNo int `json:"fingerprintNo"`
|
|
FingerprintData string `json:"fingerprintData"`
|
|
} `json:"fingerprints"`
|
|
Cards []struct {
|
|
CardNo string `json:"cardNo"`
|
|
CardType string `json:"cardType"`
|
|
} `json:"cards"`
|
|
} `json:"userInfo"`
|
|
}
|
|
|
|
type MQMessageVisitorEvent struct {
|
|
DeviceSerial string `json:"deviceSerial"`
|
|
DateTime string `json:"dateTime"`
|
|
VisitorEvent struct {
|
|
Uuid string `json:"uuid"`
|
|
Name string `json:"name"`
|
|
Sex string `json:"sex"`
|
|
CertificateType string `json:"certificateType"`
|
|
PhoneNo string `json:"phoneNo"`
|
|
RegisterType string `json:"registerType"`
|
|
RegisterStatus string `json:"registerStatus"`
|
|
Reason string `json:"reason"`
|
|
ReceptionistName string `json:"receptionistName"`
|
|
ReceptionistDepartment string `json:"receptionistDepartment"`
|
|
PlateNo string `json:"plateNo"`
|
|
Company string `json:"company"`
|
|
Belongings string `json:"belongings"`
|
|
Remark string `json:"remark"`
|
|
CurrentEvent bool `json:"currentEvent"`
|
|
IDNum string `json:"IDNum"`
|
|
ORCodeEnabled bool `json:"ORCodeEnabled"`
|
|
VisitorImage struct {
|
|
ResourcesContentType string `json:"resourcesContentType"`
|
|
ResourcesContent string `json:"resourcesContent"`
|
|
} `json:"VisitorImage"`
|
|
} `json:"VisitorEvent"`
|
|
}
|