100 lines
3.2 KiB
Go
100 lines
3.2 KiB
Go
package model
|
|
|
|
import "time"
|
|
|
|
type PersonList struct {
|
|
Hikvision
|
|
Data struct {
|
|
Total int `json:"total"`
|
|
PageNo int `json:"pageNo"`
|
|
PageSize int `json:"pageSize"`
|
|
List []Person `json:"list"`
|
|
} `json:"data"`
|
|
}
|
|
|
|
type Person struct {
|
|
PersonID string `json:"personId"`
|
|
PersonName string `json:"personName"`
|
|
Gender int `json:"gender"`
|
|
Phone string `json:"phone"`
|
|
JobNo string `json:"jobNo"`
|
|
OrgIndexCode string `json:"orgIndexCode"`
|
|
CertificateType int `json:"certificateType"`
|
|
CertificateNo string `json:"certificateNo"`
|
|
CreateTime time.Time `json:"createTime"`
|
|
UpdateTime time.Time `json:"updateTime"`
|
|
OrgPath string `json:"orgPath"`
|
|
OrgPathName string `json:"orgPathName"`
|
|
Photo []PersonPhoto `json:"personPhoto"`
|
|
}
|
|
|
|
type PersonPhoto struct {
|
|
PersonPhotoIndexCode string `json:"personPhotoIndexCode"`
|
|
PicUri string `json:"picUri"`
|
|
ServerIndexCode string `json:"serverIndexCode"`
|
|
PersonId string `json:"personId"`
|
|
}
|
|
|
|
// 重点人员
|
|
type PersonImportant struct {
|
|
HikvisionPage
|
|
StartTime string `json:"startTime"`
|
|
EndTime string `json:"endTime"`
|
|
CameraIndexCodes []string `json:"cameraIndexCodes"`
|
|
Similarity int `json:"similarity"`
|
|
Name string `json:"name"`
|
|
CertificateType string `json:"certificateType"`
|
|
CertificateNumber string `json:"certificateNumber"`
|
|
Age []string `json:"age"`
|
|
Gender string `json:"gender"`
|
|
Glass string `json:"glass"`
|
|
FaceGroupIndexcodes []string `json:"faceGroupIndexcodes"`
|
|
OrderType string `json:"orderType"`
|
|
}
|
|
|
|
// 重点人员
|
|
type PersonImportantResponse struct {
|
|
Hikvision
|
|
Data struct {
|
|
Total int `json:"total"`
|
|
PageNo int `json:"pageNo"`
|
|
PageSize int `json:"pageSize"`
|
|
List []PersonImportantList `json:"list"`
|
|
}
|
|
}
|
|
|
|
type PersonImportantList struct {
|
|
SnapInfo PersonImportantSnapInfo `json:"snapInfo"`
|
|
TargetInfoList []HikPersonSnapInfo `json:"targetInfoList"`
|
|
}
|
|
|
|
type PersonPicUrl struct {
|
|
Type string `json:"type"`
|
|
Url string `json:"url"`
|
|
}
|
|
|
|
type PersonImportantSnapInfo struct {
|
|
BkgUrl string `json:"bakUrl"`
|
|
SnapUrl string `json:"snapUrl"`
|
|
DeviceIndexcode string `json:"deviceIndexcode"`
|
|
DeviceName string `json:"deviceName"`
|
|
CameraIndexcode string `json:"cameraIndexcode"`
|
|
CameraName string `json:"cameraName"`
|
|
Gender string `json:"gender"`
|
|
Age string `json:"age"`
|
|
Glass string `json:"glass"`
|
|
EventTime time.Time `json:"eventTime"`
|
|
}
|
|
|
|
type HikPersonSnapInfo struct {
|
|
Name string `json:"name"`
|
|
Similarity string `json:"similarity"`
|
|
CertificateType string `json:"certificateType"`
|
|
Sex string `json:"sex"`
|
|
CertificateNumber string `json:"certificateNumber"`
|
|
FaceInfoIndexcode string `json:"faceInfoIndexcode"`
|
|
FaceGroupIndexcode string `json:"faceGroupIndexcode"`
|
|
FaceGroupName string `json:"faceGroupName"`
|
|
FaceUrl string `json:"faceUrl"`
|
|
}
|