hikvision/iot/model/person-model.go

37 lines
1.2 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package model
type PersonCreateData struct {
Person
DynamicCode string `json:"dynamicCode"`
MaxOpenDoorTime int `json:"maxOpenDoorTime"`
CallNumbers []string `json:"callNumbers"`
FloorNumbers []int `json:"floorNumbers"`
LocalUIRight int `json:"localUIRight"`
}
type PersonReq struct {
EmployeeNo string `json:"employeeNo"` //编号,必填
PersonName string `json:"personName"` //姓名,必填
PersonPhone string `json:"personPhone"`
FaceImageBase64 string `json:"faceImageBase64"`
VerifyImage bool `json:"verifyImage"` //是否进行人脸质量校验默认true
}
type PersonOperation struct {
PersonStatisticsId string `json:"personStatisticsId"`
FaceStatisticsId string `json:"faceStatisticsId"`
}
type Person struct {
EmployeeNo string `json:"employeeNo"`
PersonName string `json:"personName"`
PersonPhone string `json:"personPhone"`
FaceUrl string `json:"faceUrl"`
PersonType string `json:"personType"`
FloorNo int `json:"floorNo"`
RoomNo int `json:"roomNo"`
ValidBeginTime string `json:"validBeginTime"`
ValidEndTime string `json:"validEndTime"`
PlanTemplateNos []int `json:"planTemplateNos"`
}