Documentation
¶
Index ¶
- Constants
- Variables
- func Base64ToImage(base string) (result []byte, err error)
- func Base64Unescape(base string) (result string, err error)
- func FileDownload(url string, targetPath string) (err error)
- func FileRead(file string) (bytes []byte, err error)
- func ImageToBase64(img []byte) (result string, err error)
- func NewRequestId() string
- func ParseRequest(r *http.Request, resp interface{}) (err error)
- type Client
- func (this *Client) GetAliveClient(sn string) *WebsocketClient
- func (this *Client) GetClientList() (result []*WebsocketClient)
- func (this *Client) GetMessageData() map[string]*queue.Message
- func (this *Client) SendWebsocketMessage(requestId, sn string, data interface{}) (result []byte, err error)
- func (this *Client) ServeWebsocket(w http.ResponseWriter, r *http.Request, responseHeader http.Header) (err error)
- type Config
- type HttpHeader
- type HttpRecordFaceData
- type HttpRecordFaceResponse
- type HttpResponse
- type HttpStrangerData
- type HttpStrangerResponse
- type HttpUpdateEnrollData
- type HttpUpdateEnrollResponse
- type Hub
- type WebsocketApi
- type WebsocketApiDeclare
- type WebsocketApiDeclareRequest
- type WebsocketApiDeclareResponse
- type WebsocketApiOnlineAuthorizationRequest
- type WebsocketApiOnlineAuthorizationRequestData
- type WebsocketApiOnlineAuthorizationResponse
- type WebsocketApiOnlineAuthorizationResponseData
- type WebsocketApiPing
- type WebsocketApiPingRequest
- type WebsocketApiPingResponse
- type WebsocketApiSettingsGetRequest
- type WebsocketApiSettingsGetRequestData
- type WebsocketApiSettingsGetResponse
- type WebsocketApiSettingsGetResponseData
- type WebsocketApiSettingsGetResponseDataSettings
- type WebsocketApiSettingsRebootRequest
- type WebsocketApiSettingsRebootRequestData
- type WebsocketApiSettingsRebootResponse
- type WebsocketApiSettingsSetAdImageRequest
- type WebsocketApiSettingsSetAdImageRequestData
- type WebsocketApiSettingsSetAdImageResponse
- type WebsocketApiSettingsSetAdRequest
- type WebsocketApiSettingsSetAdRequestData
- type WebsocketApiSettingsSetAdResponse
- type WebsocketApiSettingsSetCameraPanoramicParamsRequest
- type WebsocketApiSettingsSetCameraPanoramicParamsRequestData
- type WebsocketApiSettingsSetCameraPanoramicParamsResponse
- type WebsocketApiSettingsSetCameraPanoramicRequest
- type WebsocketApiSettingsSetCameraPanoramicRequestData
- type WebsocketApiSettingsSetCameraPanoramicResponse
- type WebsocketApiSettingsSetCustomHomeLogoRequest
- type WebsocketApiSettingsSetCustomHomeLogoRequestData
- type WebsocketApiSettingsSetCustomHomeLogoResponse
- type WebsocketApiSettingsSetDelAdRequest
- type WebsocketApiSettingsSetDelAdRequestData
- type WebsocketApiSettingsSetDelAdResponse
- type WebsocketApiSettingsSetDoorRequest
- type WebsocketApiSettingsSetDoorRequestData
- type WebsocketApiSettingsSetDoorResponse
- type WebsocketApiSettingsSetHealthQrCodeValueRequest
- type WebsocketApiSettingsSetHealthQrCodeValueRequestData
- type WebsocketApiSettingsSetHealthQrCodeValueResponse
- type WebsocketApiSettingsSetHealthTreasureKeyRequest
- type WebsocketApiSettingsSetHealthTreasureKeyRequestData
- type WebsocketApiSettingsSetHealthTreasureKeyResponse
- type WebsocketApiSettingsSetHealthTreasureStatusRequest
- type WebsocketApiSettingsSetHealthTreasureStatusRequestData
- type WebsocketApiSettingsSetHealthTreasureStatusResponse
- type WebsocketApiSettingsSetHttpTokenQualityResponse
- type WebsocketApiSettingsSetHttpTokenRequest
- type WebsocketApiSettingsSetHttpTokenRequestData
- type WebsocketApiSettingsSetLivenessDetectionRequest
- type WebsocketApiSettingsSetLivenessDetectionRequestData
- type WebsocketApiSettingsSetLivenessDetectionResponse
- type WebsocketApiSettingsSetLivenessLevelRequest
- type WebsocketApiSettingsSetLivenessLevelRequestData
- type WebsocketApiSettingsSetLivenessLevelResponse
- type WebsocketApiSettingsSetMaskDetectionRequest
- type WebsocketApiSettingsSetMaskDetectionRequestData
- type WebsocketApiSettingsSetMaskDetectionResponse
- type WebsocketApiSettingsSetOnlineRecognitionIntervalRequest
- type WebsocketApiSettingsSetOnlineRecognitionIntervalRequestData
- type WebsocketApiSettingsSetOnlineRecognitionIntervalResponse
- type WebsocketApiSettingsSetPassTypeRequest
- type WebsocketApiSettingsSetPassTypeRequestData
- type WebsocketApiSettingsSetPassTypeResponse
- type WebsocketApiSettingsSetPasswordRequest
- type WebsocketApiSettingsSetPasswordRequestData
- type WebsocketApiSettingsSetPasswordResponse
- type WebsocketApiSettingsSetPlayUserNameRequest
- type WebsocketApiSettingsSetPlayUserNameRequestData
- type WebsocketApiSettingsSetPlayUserNameResponse
- type WebsocketApiSettingsSetPrinterStatusRequest
- type WebsocketApiSettingsSetPrinterStatusRequestData
- type WebsocketApiSettingsSetPrinterStatusResponse
- type WebsocketApiSettingsSetRecognitionDistanceRequest
- type WebsocketApiSettingsSetRecognitionDistanceRequestData
- type WebsocketApiSettingsSetRecognitionDistanceResponse
- type WebsocketApiSettingsSetRecognitionIntervalRequest
- type WebsocketApiSettingsSetRecognitionIntervalRequestData
- type WebsocketApiSettingsSetRecognitionIntervalResponse
- type WebsocketApiSettingsSetRecognitionLevelRequest
- type WebsocketApiSettingsSetRecognitionLevelRequestData
- type WebsocketApiSettingsSetRecognitionLevelResponse
- type WebsocketApiSettingsSetRecordPictureQualityRequest
- type WebsocketApiSettingsSetRecordPictureQualityRequestData
- type WebsocketApiSettingsSetRecordPictureQualityResponse
- type WebsocketApiSettingsSetRelayStateRequest
- type WebsocketApiSettingsSetRelayStateRequestData
- type WebsocketApiSettingsSetRelayStateResponse
- type WebsocketApiSettingsSetScreensaverIntervalRequest
- type WebsocketApiSettingsSetScreensaverIntervalRequestData
- type WebsocketApiSettingsSetScreensaverIntervalResponse
- type WebsocketApiSettingsSetScreensaverRequest
- type WebsocketApiSettingsSetScreensaverRequestData
- type WebsocketApiSettingsSetScreensaverResponse
- type WebsocketApiSettingsSetScreensaverStateRequest
- type WebsocketApiSettingsSetScreensaverStateRequestData
- type WebsocketApiSettingsSetScreensaverStateResponse
- type WebsocketApiSettingsSetScreensaverStatusRequest
- type WebsocketApiSettingsSetScreensaverStatusRequestData
- type WebsocketApiSettingsSetScreensaverStatusResponse
- type WebsocketApiSettingsSetStrangerRecognitionRequest
- type WebsocketApiSettingsSetStrangerRecognitionRequestData
- type WebsocketApiSettingsSetStrangerRecognitionResponse
- type WebsocketApiSettingsSetSwitchRequest
- type WebsocketApiSettingsSetSwitchRequestData
- type WebsocketApiSettingsSetSwitchResponse
- type WebsocketApiSettingsSetTemperatureCalibrationModeRequest
- type WebsocketApiSettingsSetTemperatureCalibrationModeRequestData
- type WebsocketApiSettingsSetTemperatureCalibrationModeResponse
- type WebsocketApiSettingsSetTemperatureCorrectionRequest
- type WebsocketApiSettingsSetTemperatureCorrectionRequestData
- type WebsocketApiSettingsSetTemperatureCorrectionResponse
- type WebsocketApiSettingsSetTemperatureDetectDistanceRequest
- type WebsocketApiSettingsSetTemperatureDetectDistanceRequestData
- type WebsocketApiSettingsSetTemperatureDetectDistanceResponse
- type WebsocketApiSettingsSetTemperatureDetectionRequest
- type WebsocketApiSettingsSetTemperatureDetectionRequestData
- type WebsocketApiSettingsSetTemperatureDetectionResponse
- type WebsocketApiSettingsSetTemperatureLowPassRequest
- type WebsocketApiSettingsSetTemperatureLowPassRequestData
- type WebsocketApiSettingsSetTemperatureLowPassResponse
- type WebsocketApiSettingsSetTemperatureModeRequest
- type WebsocketApiSettingsSetTemperatureModeRequestData
- type WebsocketApiSettingsSetTemperatureModeResponse
- type WebsocketApiSettingsSetTemperaturePlayRequest
- type WebsocketApiSettingsSetTemperaturePlayRequestData
- type WebsocketApiSettingsSetTemperaturePlayResponse
- type WebsocketApiSettingsSetTemperaturePreliminaryScreeningStandardRequest
- type WebsocketApiSettingsSetTemperaturePreliminaryScreeningStandardRequestData
- type WebsocketApiSettingsSetTemperaturePreliminaryScreeningStandardResponse
- type WebsocketApiSettingsSetTemperatureReflectivityRequest
- type WebsocketApiSettingsSetTemperatureReflectivityRequestData
- type WebsocketApiSettingsSetTemperatureReflectivityResponse
- type WebsocketApiSettingsSetTimeRequest
- type WebsocketApiSettingsSetTimeRequestData
- type WebsocketApiSettingsSetTimeResponse
- type WebsocketApiSettingsSetVersionAutoUpdateRequest
- type WebsocketApiSettingsSetVersionAutoUpdateRequestData
- type WebsocketApiSettingsSetVersionAutoUpdateResponse
- type WebsocketApiSettingsSetVersionCheckRequest
- type WebsocketApiSettingsSetVersionCheckRequestData
- type WebsocketApiSettingsSetVersionCheckResponse
- type WebsocketApiSettingsSetVersionGetInfoRequest
- type WebsocketApiSettingsSetVersionGetInfoRequestData
- type WebsocketApiSettingsSetVersionGetInfoResponse
- type WebsocketApiSettingsSetVersionPushInfoRequest
- type WebsocketApiSettingsSetVersionPushInfoRequestData
- type WebsocketApiSettingsSetVisitorApplyValueQualityResponse
- type WebsocketApiSettingsSetVisitorApplyValueRequest
- type WebsocketApiSettingsSetVisitorApplyValueRequestData
- type WebsocketApiSettingsSetVisitorCallStatusRequest
- type WebsocketApiSettingsSetVisitorCallStatusRequestData
- type WebsocketApiSettingsSetVisitorCallStatusResponse
- type WebsocketApiSettingsSetVoiceRequest
- type WebsocketApiSettingsSetVoiceRequestData
- type WebsocketApiSettingsSetVoiceResponse
- type WebsocketApiSettingsSetVolumeRequest
- type WebsocketApiSettingsSetVolumeRequestData
- type WebsocketApiSettingsSetVolumeResponse
- type WebsocketApiUserAddRequest
- type WebsocketApiUserAddRequestData
- type WebsocketApiUserAddResponse
- type WebsocketApiUserAddValidCycle
- type WebsocketApiUserDelMultiDataResponse
- type WebsocketApiUserDelMultiFailedResponse
- type WebsocketApiUserDelMultiRequest
- type WebsocketApiUserDelMultiRequestData
- type WebsocketApiUserDelMultiResponse
- type WebsocketApiUserGetRequest
- type WebsocketApiUserGetRequestData
- type WebsocketApiUserGetResponse
- type WebsocketApiUserGetResponseData
- type WebsocketApiVisitAddRequest
- type WebsocketApiVisitAddRequestData
- type WebsocketApiVisitAddResponse
- type WebsocketApiVisitAddResponseData
- type WebsocketClient
- type WebsocketRequest
- type WebsocketRequestData
- type WebsocketRequestHeader
- type WebsocketResponse
- type WebsocketResponseData
- type WebsocketResponseHeader
Constants ¶
View Source
const ( WEBSOCKET_API_DECLARE = "declare" //declare WEBSOCKET_API_PING = "ping" //心跳 // WEBSOCKET_API_USER_ADD = "addUser" //新增用户 WEBSOCKET_API_USER_EDIT = "editUser" //编辑用户 WEBSOCKET_API_USER_DEL = "delUser" //删除用户 WEBSOCKET_API_USER_DEL_MULTI = "delMultiUser" //批量删除人员 WEBSOCKET_API_USER_DEL_ALL = "delAllUser" //删除全部人员 WEBSOCKET_API_USER_GET = "getUserInfo" //读取用户信息 // WEBSOCKET_API_VISIT_ADD = "addVisit" //下发人证比对基本信息 // WEBSOCKET_API_OnlineAuthorization = "onlineAuthorization" //抓拍现场照片 //设备设置接口 WEBSOCKET_API_SETTINGS_GET = "getDeviceSettings" //获取设备设置 WEBSOCKET_API_SETTINGS_SET_customHomeLogo = "customHomeLogo" //设置设备 logo WEBSOCKET_API_SETTINGS_SET_Ad = "setAd" //设置广告语 WEBSOCKET_API_SETTINGS_SET_ScreensaverStatus = "setScreensaverStatus" //设备节能屏保开关 WEBSOCKET_API_SETTINGS_SET_Time = "setTime" //设置设备时间 WEBSOCKET_API_SETTINGS_SET_Door = "setDoor" //控制设备开门/关门 WEBSOCKET_API_SETTINGS_SET_PassType = "setPassType" //设置可通行人员类型 WEBSOCKET_API_SETTINGS_SET_RecognitionLevel = "setRecognitionLevel" //设置设备识别置信度 WEBSOCKET_API_SETTINGS_SET_RecognitionInterval = "setRecognitionInterval" //设置设备识别间隔 WEBSOCKET_API_SETTINGS_SET_RecognitionDistance = "setRecognitionDistance" //设置设备识别距离 WEBSOCKET_API_SETTINGS_SET_MaskDetection = "setMaskDetection" //口罩检测开关 WEBSOCKET_API_SETTINGS_SET_LivenessDetection = "setLivenessDetection" //活体检测 WEBSOCKET_API_SETTINGS_SET_LivenessLevel = "setLivenessLevel" //活体检测等级 WEBSOCKET_API_SETTINGS_SET_StrangerRecognition = "setStrangerRecognition" //陌生人识别 WEBSOCKET_API_SETTINGS_SET_Volume = "setVolume" //设备音量 WEBSOCKET_API_SETTINGS_SET_PlayUserName = "setPlayUserName" //播放用户名 WEBSOCKET_API_SETTINGS_SET_Switch = "setSwitch" //开启/关闭设备识别 WEBSOCKET_API_SETTINGS_SET_Voice = "setVoice" //设置设备提示语音 WEBSOCKET_API_SETTINGS_SET_Password = "setPassword" //修改进入设置页面密码 WEBSOCKET_API_SETTINGS_SET_reboot = "reboot" //重启设备 WEBSOCKET_API_SETTINGS_SET_RelayState = "setRelayState" //设置继电器状态-常开/正常 WEBSOCKET_API_SETTINGS_SET_RecordPictureQuality = "setRecordPictureQuality" //设置设备识别照片抓拍的质量 WEBSOCKET_API_SETTINGS_SET_VisitorCallStatus = "setVisitorCallStatus" //访客呼叫开关 WEBSOCKET_API_SETTINGS_SET_PrinterStatus = "setPrinterStatus" //打印机开关 WEBSOCKET_API_SETTINGS_SET_OnlineRecognitionInterval = "setOnlineRecognitionInterval" //设置在线识别间隔 WEBSOCKET_API_SETTINGS_SET_VisitorApplyValue = "setVisitorApplyValue" //首页访客申请入口内容 WEBSOCKET_API_SETTINGS_SET_HttpToken = "setHttpToken" //设置 http 请求的 token WEBSOCKET_API_SETTINGS_SET_ScreensaverState = "setScreensaverState" //设置屏保开关 WEBSOCKET_API_SETTINGS_SET_setScreensaver = "setScreensaver" //设置设备屏保 WEBSOCKET_API_SETTINGS_SET_ScreensaverInterval = "setScreensaverInterval" //设置屏保显示时长 WEBSOCKET_API_SETTINGS_SET_TemperatureDetection = "setTemperatureDetection" //体温检测开关 WEBSOCKET_API_SETTINGS_SET_TemperatureMode = "setTemperatureMode" //体温检测模式 WEBSOCKET_API_SETTINGS_SET_PreliminaryScreeningStandard = "setPreliminaryScreeningStandard" //初筛模式标准 WEBSOCKET_API_SETTINGS_SET_TemperatureCalibrationMode = "setTemperatureCalibrationMode" //设置体温校准模式 WEBSOCKET_API_SETTINGS_SET_LowTemperaturePass = "setLowTemperaturePass" //低温可通行开关 WEBSOCKET_API_SETTINGS_SET_PlayTemperature = "setPlayTemperature" //播报体温开关 WEBSOCKET_API_SETTINGS_SET_Reflectivity = "setReflectivity" //设置体温反射率 WEBSOCKET_API_SETTINGS_SET_TemperatureCorrection = "setTemperatureCorrection" //设置体温校准值 WEBSOCKET_API_SETTINGS_SET_TemperatureDetectDistance = "setTemperatureDetectDistance" //设置设备体温检测距离 WEBSOCKET_API_SETTINGS_SET_AutoUpdate = "setAutoUpdate" //开机自动更新 WEBSOCKET_API_SETTINGS_SET_getVersionInfo = "getVersionInfo" //获取设备版本信息 WEBSOCKET_API_SETTINGS_SET_pushVersionInfo = "pushVersionInfo" //发送设备版本信息给服务端 WEBSOCKET_API_SETTINGS_SET_checkForUpdates = "checkForUpdates" //通知设备在线检查更新 WEBSOCKET_API_SETTINGS_SET_pushUpdateRet = "pushUpdateRet" //发送升级结果给服务端 WEBSOCKET_API_SETTINGS_SET_pushUpdateProgress = "pushUpdateProgress" //更新下载进度 // WEBSOCKET_API_SETTINGS_SET_HealthTreasureStatus = "setHealthTreasureStatus" //设置健康码开关 WEBSOCKET_API_SETTINGS_SET_HealthTreasureKey = "setHealthTreasureKey" //设置健康宝密钥 WEBSOCKET_API_SETTINGS_SET_HealthQrCodeValue = "setQrCodeValue" //设置设备首页二维码内容 //camera WEBSOCKET_API_SETTINGS_SET_PanoramicCamera = "setPanoramicCamera" //全景相机开关 WEBSOCKET_API_SETTINGS_SET_PanoramicCameraParams = "setPanoramicCameraParams " //设置全景相机的参数 )
View Source
const (
Base64ImageHeader = "data:image/jpeg;base64,"
)
Variables ¶
View Source
var ( ErrorNoSend = errors.New("err.10001") ErrorTimeout = errors.New("err.10002") )
View Source
var ( Version = "0.0.1" Debug = false TIMEOUT = 10 )
Functions ¶
func Base64ToImage ¶
func Base64Unescape ¶
func FileDownload ¶
func ImageToBase64 ¶
func NewRequestId ¶
func NewRequestId() string
func ParseRequest ¶
Types ¶
type Client ¶
func (*Client) GetAliveClient ¶
func (this *Client) GetAliveClient(sn string) *WebsocketClient
func (*Client) GetClientList ¶
func (this *Client) GetClientList() (result []*WebsocketClient)
func (*Client) SendWebsocketMessage ¶
func (*Client) ServeWebsocket ¶
type HttpHeader ¶
type HttpRecordFaceData ¶
type HttpRecordFaceData struct {
UserId string `json:"user_id"` //
RecogType string `json:"recog_type"` //
RecogTime string `json:"recog_time"` //
Photo string `json:"photo"` //
Gender int8 `json:"gender"` //
UserName string `json:"user_name,omitempty"`
BodyTemperature string `json:"body_temperature,omitempty"`
Confidence string `json:"confidence,omitempty"`
Reflectivity int `json:"reflectivity,omitempty"`
RoomTemperature float32 `json:"room_temperature,omitempty"`
HealthTreasureCode string `json:"health_treasure_code,omitempty"`
Extra string `json:"extra,omitempty"`
CardNumber string `json:"card_number,omitempty"`
PanoramicPicture string `json:"panoramic_picture,omitempty"`
HealthCodeColor string `json:"health_code_color,omitempty"`
HealthCodePicture string `json:"health_code_picture,omitempty"`
}
type HttpRecordFaceResponse ¶
type HttpRecordFaceResponse struct {
HttpHeader
Logs []HttpRecordFaceData `json:"logs"`
}
type HttpResponse ¶
type HttpStrangerData ¶
type HttpStrangerData struct {
UserId string `json:"user_id"` //
RecogType string `json:"recog_type"` //
RecogTime string `json:"recog_time"` //
Photo string `json:"photo"` //
Gender int8 `json:"gender"` //
UserName string `json:"user_name,omitempty"`
BodyTemperature string `json:"body_temperature,omitempty"`
Confidence string `json:"confidence,omitempty"`
Reflectivity int `json:"reflectivity,omitempty"`
RoomTemperature float32 `json:"room_temperature,omitempty"`
//HealthTreasureCode string `json:"health_treasure_code,omitempty"`
Extra string `json:"extra,omitempty"`
CardNumber string `json:"card_number,omitempty"`
PanoramicPicture string `json:"panoramic_picture,omitempty"`
HealthCodeColor string `json:"health_code_color,omitempty"`
HealthCodePicture string `json:"health_code_picture,omitempty"`
}
type HttpStrangerResponse ¶
type HttpStrangerResponse struct {
HttpHeader
Logs []HttpStrangerData `json:"logs"`
}
type HttpUpdateEnrollData ¶
type HttpUpdateEnrollResponse ¶
type HttpUpdateEnrollResponse struct {
HttpHeader
Logs []HttpStrangerData `json:"logs"`
}
type WebsocketApi ¶
type WebsocketApi struct {
Cmd string
FN func(message []byte) (err error) //注册数接口
Response func(message []byte) interface{} //响应接口
}
对接api的接口
type WebsocketApiDeclare ¶
type WebsocketApiDeclare struct {
}
func (*WebsocketApiDeclare) Response ¶
func (this *WebsocketApiDeclare) Response(r []byte) interface{}
type WebsocketApiOnlineAuthorizationRequest ¶
type WebsocketApiOnlineAuthorizationRequest struct {
WebsocketRequestHeader
Data WebsocketApiOnlineAuthorizationRequestData `json:"data"`
}
type WebsocketApiOnlineAuthorizationRequestData ¶
type WebsocketApiOnlineAuthorizationRequestData struct {
WebsocketRequestData
}
type WebsocketApiOnlineAuthorizationResponse ¶
type WebsocketApiOnlineAuthorizationResponse struct {
WebsocketResponseHeader
Data WebsocketApiOnlineAuthorizationResponseData `json:"data"`
}
type WebsocketApiOnlineAuthorizationResponseData ¶
type WebsocketApiOnlineAuthorizationResponseData struct {
WebsocketResponseData
IrFaceTemplate string `json:"ir_face_template"`
VlFaceTemplate string `json:"vl_face_template"`
}
type WebsocketApiPing ¶
type WebsocketApiPing struct {
}
func (*WebsocketApiPing) Response ¶
func (this *WebsocketApiPing) Response(r []byte) interface{}
type WebsocketApiPingRequest ¶
type WebsocketApiPingRequest struct {
}
type WebsocketApiPingResponse ¶
type WebsocketApiPingResponse struct {
Cmd string `json:"cmd"`
}
type WebsocketApiSettingsGetRequest ¶
type WebsocketApiSettingsGetRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsGetRequestData `json:"data"`
}
type WebsocketApiSettingsGetRequestData ¶
type WebsocketApiSettingsGetRequestData struct {
WebsocketRequestData
Settings []string `json:"settings"`
}
type WebsocketApiSettingsGetResponse ¶
type WebsocketApiSettingsGetResponse struct {
WebsocketResponseHeader
Data WebsocketApiSettingsGetResponseData `json:"data"`
}
type WebsocketApiSettingsGetResponseData ¶
type WebsocketApiSettingsGetResponseData struct {
WebsocketResponseData
Settings WebsocketApiSettingsGetResponseDataSettings `json:"settings"`
}
type WebsocketApiSettingsGetResponseDataSettings ¶
type WebsocketApiSettingsGetResponseDataSettings struct {
Advertising string `json:"advertising"`
CustomHomeLogo struct {
Image struct {
Content string `json:"content"`
Height int `json:"height"`
Type int `json:"type"`
Width int `json:"width"`
} `json:"image"`
Text string `json:"text"`
Type int64 `json:"type"`
} `json:"custom_home_logo"`
Disable struct {
Offtime string `json:"offtime"`
Value string `json:"value"`
} `json:"disable"`
HealthTreasureKey string `json:"health_treasure_key"`
HealthTreasureStatus int `json:"health_treasure_status"`
LivenessDetection string `json:"liveness_detection"`
LivenessLevel int `json:"liveness_level"`
LowTemperaturePass string `json:"low_temperature_pass"`
MaskDetection string `json:"mask_detection"`
NonLivingVoice struct {
VoiceCode int `json:"voice_code"`
VoiceText string `json:"voice_text"`
} `json:"non_living_voice"`
OnlineRecognitionInterval int `json:"online_recognition_interval"`
PassType int `json:"pass_type"`
Password string `json:"password"`
PlayTemperature string `json:"play_temperature"`
PlayUsername string `json:"play_username"`
PreliminaryScreeningMode int `json:"preliminary_screening_mode"`
RecognitionDistance int `json:"recognition_distance"`
RecognitionInterval int `json:"recognition_interval"`
RecognitionLevel int `json:"recognition_level"`
RecognizeVoice struct {
VoiceCode int64 `json:"voice_code"`
VoiceText string `json:"voice_text"`
} `json:"recognize_voice"`
RecordPictureQuality int `json:"record_picture_quality"`
Reflectivity int `json:"reflectivity"`
RelayState int `json:"relay_state"`
ScreensaverStatus int `json:"screensaver_status"`
StrangerRecognition string `json:"stranger_recognition"`
StrangerVoice struct {
VoiceCode int64 `json:"voice_code"`
VoiceText string `json:"voice_text"`
} `json:"stranger_voice"`
TemperatureCalibrationMode int `json:"temperature_calibration_mode"`
TemperatureCorrection float64 `json:"temperature_correction"`
TemperatureDetection int `json:"temperature_detection"`
TemperatureMode int `json:"temperature_mode"`
Time int64 `json:"time"`
Volume string `json:"volume"`
}
type WebsocketApiSettingsRebootRequest ¶
type WebsocketApiSettingsRebootRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsRebootRequestData `json:"data"`
}
type WebsocketApiSettingsRebootRequestData ¶
type WebsocketApiSettingsRebootRequestData struct {
WebsocketRequestData
}
type WebsocketApiSettingsRebootResponse ¶
type WebsocketApiSettingsRebootResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetAdImageRequest ¶
type WebsocketApiSettingsSetAdImageRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetAdImageRequestData `json:"data"`
}
type WebsocketApiSettingsSetAdImageRequestData ¶
type WebsocketApiSettingsSetAdImageRequestData struct {
WebsocketRequestData
Id string `json:"id"`
Duration int `json:"duration"`
Priority int `json:"priority"`
}
type WebsocketApiSettingsSetAdImageResponse ¶
type WebsocketApiSettingsSetAdImageResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetAdRequest ¶
type WebsocketApiSettingsSetAdRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetAdRequestData `json:"data"`
}
type WebsocketApiSettingsSetAdRequestData ¶
type WebsocketApiSettingsSetAdRequestData struct {
WebsocketRequestData
Advertising string `json:"advertising"`
}
type WebsocketApiSettingsSetAdResponse ¶
type WebsocketApiSettingsSetAdResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetCameraPanoramicParamsRequest ¶
type WebsocketApiSettingsSetCameraPanoramicParamsRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetCameraPanoramicParamsRequestData `json:"data"`
}
type WebsocketApiSettingsSetCameraPanoramicParamsResponse ¶
type WebsocketApiSettingsSetCameraPanoramicParamsResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetCameraPanoramicRequest ¶
type WebsocketApiSettingsSetCameraPanoramicRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetCameraPanoramicRequestData `json:"data"`
}
type WebsocketApiSettingsSetCameraPanoramicRequestData ¶
type WebsocketApiSettingsSetCameraPanoramicRequestData struct {
WebsocketRequestData
Value string `json:"value"`
}
type WebsocketApiSettingsSetCameraPanoramicResponse ¶
type WebsocketApiSettingsSetCameraPanoramicResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetCustomHomeLogoRequest ¶
type WebsocketApiSettingsSetCustomHomeLogoRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetCustomHomeLogoRequestData `json:"data"`
}
type WebsocketApiSettingsSetCustomHomeLogoResponse ¶
type WebsocketApiSettingsSetCustomHomeLogoResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetDelAdRequest ¶
type WebsocketApiSettingsSetDelAdRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetDelAdRequestData `json:"data"`
}
type WebsocketApiSettingsSetDelAdRequestData ¶
type WebsocketApiSettingsSetDelAdRequestData struct {
WebsocketRequestData
IsDelAll int `json:"isDelAll"`
Id []string `json:"id"`
}
type WebsocketApiSettingsSetDelAdResponse ¶
type WebsocketApiSettingsSetDelAdResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetDoorRequest ¶
type WebsocketApiSettingsSetDoorRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetDoorRequestData `json:"data"`
}
type WebsocketApiSettingsSetDoorRequestData ¶
type WebsocketApiSettingsSetDoorRequestData struct {
WebsocketRequestData
UserId string `json:"user_id"`
Value string `json:"value"`
}
type WebsocketApiSettingsSetDoorResponse ¶
type WebsocketApiSettingsSetDoorResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetHealthQrCodeValueRequest ¶
type WebsocketApiSettingsSetHealthQrCodeValueRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetHealthQrCodeValueRequestData `json:"data"`
}
type WebsocketApiSettingsSetHealthQrCodeValueRequestData ¶
type WebsocketApiSettingsSetHealthQrCodeValueRequestData struct {
WebsocketRequestData
Photo string `json:"photo"`
Url string `json:"url"`
}
type WebsocketApiSettingsSetHealthQrCodeValueResponse ¶
type WebsocketApiSettingsSetHealthQrCodeValueResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetHealthTreasureKeyRequest ¶
type WebsocketApiSettingsSetHealthTreasureKeyRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetHealthTreasureKeyRequestData `json:"data"`
}
type WebsocketApiSettingsSetHealthTreasureKeyRequestData ¶
type WebsocketApiSettingsSetHealthTreasureKeyRequestData struct {
WebsocketRequestData
Value string `json:"value"`
}
type WebsocketApiSettingsSetHealthTreasureKeyResponse ¶
type WebsocketApiSettingsSetHealthTreasureKeyResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetHealthTreasureStatusRequest ¶
type WebsocketApiSettingsSetHealthTreasureStatusRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetHealthTreasureStatusRequestData `json:"data"`
}
type WebsocketApiSettingsSetHealthTreasureStatusRequestData ¶
type WebsocketApiSettingsSetHealthTreasureStatusRequestData struct {
WebsocketRequestData
Value int `json:"value"`
}
type WebsocketApiSettingsSetHealthTreasureStatusResponse ¶
type WebsocketApiSettingsSetHealthTreasureStatusResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetHttpTokenQualityResponse ¶
type WebsocketApiSettingsSetHttpTokenQualityResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetHttpTokenRequest ¶
type WebsocketApiSettingsSetHttpTokenRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetHttpTokenRequestData `json:"data"`
}
type WebsocketApiSettingsSetHttpTokenRequestData ¶
type WebsocketApiSettingsSetHttpTokenRequestData struct {
WebsocketRequestData
TokenKey string `json:"token_key"`
TokenValue string `json:"token_value"`
}
type WebsocketApiSettingsSetLivenessDetectionRequest ¶
type WebsocketApiSettingsSetLivenessDetectionRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetLivenessDetectionRequestData `json:"data"`
}
type WebsocketApiSettingsSetLivenessDetectionRequestData ¶
type WebsocketApiSettingsSetLivenessDetectionRequestData struct {
WebsocketRequestData
Value string `json:"value"`
}
type WebsocketApiSettingsSetLivenessDetectionResponse ¶
type WebsocketApiSettingsSetLivenessDetectionResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetLivenessLevelRequest ¶
type WebsocketApiSettingsSetLivenessLevelRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetLivenessLevelRequestData `json:"data"`
}
type WebsocketApiSettingsSetLivenessLevelRequestData ¶
type WebsocketApiSettingsSetLivenessLevelRequestData struct {
WebsocketRequestData
Value int `json:"value"`
}
type WebsocketApiSettingsSetLivenessLevelResponse ¶
type WebsocketApiSettingsSetLivenessLevelResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetMaskDetectionRequest ¶
type WebsocketApiSettingsSetMaskDetectionRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetMaskDetectionRequestData `json:"data"`
}
type WebsocketApiSettingsSetMaskDetectionRequestData ¶
type WebsocketApiSettingsSetMaskDetectionRequestData struct {
WebsocketRequestData
Value string `json:"value"`
}
type WebsocketApiSettingsSetMaskDetectionResponse ¶
type WebsocketApiSettingsSetMaskDetectionResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetOnlineRecognitionIntervalRequest ¶
type WebsocketApiSettingsSetOnlineRecognitionIntervalRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetOnlineRecognitionIntervalRequestData `json:"data"`
}
type WebsocketApiSettingsSetOnlineRecognitionIntervalRequestData ¶
type WebsocketApiSettingsSetOnlineRecognitionIntervalRequestData struct {
WebsocketRequestData
Value int `json:"value"`
}
type WebsocketApiSettingsSetOnlineRecognitionIntervalResponse ¶
type WebsocketApiSettingsSetOnlineRecognitionIntervalResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetPassTypeRequest ¶
type WebsocketApiSettingsSetPassTypeRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetPassTypeRequestData `json:"data"`
}
type WebsocketApiSettingsSetPassTypeRequestData ¶
type WebsocketApiSettingsSetPassTypeRequestData struct {
WebsocketRequestData
Value int `json:"value"`
}
type WebsocketApiSettingsSetPassTypeResponse ¶
type WebsocketApiSettingsSetPassTypeResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetPasswordRequest ¶
type WebsocketApiSettingsSetPasswordRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetPasswordRequestData `json:"data"`
}
type WebsocketApiSettingsSetPasswordRequestData ¶
type WebsocketApiSettingsSetPasswordRequestData struct {
WebsocketRequestData
OldPasswordValue int `json:"old_password"`
NewPassword int `json:"new_password"`
}
type WebsocketApiSettingsSetPasswordResponse ¶
type WebsocketApiSettingsSetPasswordResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetPlayUserNameRequest ¶
type WebsocketApiSettingsSetPlayUserNameRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetPlayUserNameRequestData `json:"data"`
}
type WebsocketApiSettingsSetPlayUserNameRequestData ¶
type WebsocketApiSettingsSetPlayUserNameRequestData struct {
WebsocketRequestData
Value string `json:"value"`
}
type WebsocketApiSettingsSetPlayUserNameResponse ¶
type WebsocketApiSettingsSetPlayUserNameResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetPrinterStatusRequest ¶
type WebsocketApiSettingsSetPrinterStatusRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetPrinterStatusRequestData `json:"data"`
}
type WebsocketApiSettingsSetPrinterStatusRequestData ¶
type WebsocketApiSettingsSetPrinterStatusRequestData struct {
WebsocketRequestData
Value int `json:"value"`
}
type WebsocketApiSettingsSetPrinterStatusResponse ¶
type WebsocketApiSettingsSetPrinterStatusResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetRecognitionDistanceRequest ¶
type WebsocketApiSettingsSetRecognitionDistanceRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetRecognitionDistanceRequestData `json:"data"`
}
type WebsocketApiSettingsSetRecognitionDistanceRequestData ¶
type WebsocketApiSettingsSetRecognitionDistanceRequestData struct {
WebsocketRequestData
Value float32 `json:"value"`
}
type WebsocketApiSettingsSetRecognitionDistanceResponse ¶
type WebsocketApiSettingsSetRecognitionDistanceResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetRecognitionIntervalRequest ¶
type WebsocketApiSettingsSetRecognitionIntervalRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetRecognitionIntervalRequestData `json:"data"`
}
type WebsocketApiSettingsSetRecognitionIntervalRequestData ¶
type WebsocketApiSettingsSetRecognitionIntervalRequestData struct {
WebsocketRequestData
Value int `json:"value"`
}
type WebsocketApiSettingsSetRecognitionIntervalResponse ¶
type WebsocketApiSettingsSetRecognitionIntervalResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetRecognitionLevelRequest ¶
type WebsocketApiSettingsSetRecognitionLevelRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetRecognitionLevelRequestData `json:"data"`
}
type WebsocketApiSettingsSetRecognitionLevelRequestData ¶
type WebsocketApiSettingsSetRecognitionLevelRequestData struct {
WebsocketRequestData
Value float32 `json:"value"`
}
type WebsocketApiSettingsSetRecognitionLevelResponse ¶
type WebsocketApiSettingsSetRecognitionLevelResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetRecordPictureQualityRequest ¶
type WebsocketApiSettingsSetRecordPictureQualityRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetRecordPictureQualityRequestData `json:"data"`
}
type WebsocketApiSettingsSetRecordPictureQualityRequestData ¶
type WebsocketApiSettingsSetRecordPictureQualityRequestData struct {
WebsocketRequestData
Value int `json:"value"`
}
type WebsocketApiSettingsSetRecordPictureQualityResponse ¶
type WebsocketApiSettingsSetRecordPictureQualityResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetRelayStateRequest ¶
type WebsocketApiSettingsSetRelayStateRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetRelayStateRequestData `json:"data"`
}
type WebsocketApiSettingsSetRelayStateRequestData ¶
type WebsocketApiSettingsSetRelayStateRequestData struct {
WebsocketRequestData
Value int `json:"value"`
}
type WebsocketApiSettingsSetRelayStateResponse ¶
type WebsocketApiSettingsSetRelayStateResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetScreensaverIntervalRequest ¶
type WebsocketApiSettingsSetScreensaverIntervalRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetScreensaverIntervalRequestData `json:"data"`
}
设置屏保显示时长
type WebsocketApiSettingsSetScreensaverIntervalRequestData ¶
type WebsocketApiSettingsSetScreensaverIntervalRequestData struct {
WebsocketRequestData
Value int `json:"value"`
}
type WebsocketApiSettingsSetScreensaverIntervalResponse ¶
type WebsocketApiSettingsSetScreensaverIntervalResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetScreensaverRequest ¶
type WebsocketApiSettingsSetScreensaverRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetScreensaverRequestData `json:"data"`
}
设置设备屏保
type WebsocketApiSettingsSetScreensaverRequestData ¶
type WebsocketApiSettingsSetScreensaverRequestData struct {
WebsocketRequestData
Value string `json:"value"`
}
type WebsocketApiSettingsSetScreensaverResponse ¶
type WebsocketApiSettingsSetScreensaverResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetScreensaverStateRequest ¶
type WebsocketApiSettingsSetScreensaverStateRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetScreensaverStateRequestData `json:"data"`
}
设置屏保开关
type WebsocketApiSettingsSetScreensaverStateRequestData ¶
type WebsocketApiSettingsSetScreensaverStateRequestData struct {
WebsocketRequestData
Value string `json:"value"`
}
type WebsocketApiSettingsSetScreensaverStateResponse ¶
type WebsocketApiSettingsSetScreensaverStateResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetScreensaverStatusRequest ¶
type WebsocketApiSettingsSetScreensaverStatusRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetScreensaverStatusRequestData `json:"data"`
}
设备节能屏保开关
type WebsocketApiSettingsSetScreensaverStatusRequestData ¶
type WebsocketApiSettingsSetScreensaverStatusRequestData struct {
WebsocketRequestData
Value int `json:"value"`
}
type WebsocketApiSettingsSetScreensaverStatusResponse ¶
type WebsocketApiSettingsSetScreensaverStatusResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetStrangerRecognitionRequest ¶
type WebsocketApiSettingsSetStrangerRecognitionRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetStrangerRecognitionRequestData `json:"data"`
}
type WebsocketApiSettingsSetStrangerRecognitionRequestData ¶
type WebsocketApiSettingsSetStrangerRecognitionRequestData struct {
WebsocketRequestData
Value string `json:"value"`
}
type WebsocketApiSettingsSetStrangerRecognitionResponse ¶
type WebsocketApiSettingsSetStrangerRecognitionResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetSwitchRequest ¶
type WebsocketApiSettingsSetSwitchRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetSwitchRequestData `json:"data"`
}
type WebsocketApiSettingsSetSwitchRequestData ¶
type WebsocketApiSettingsSetSwitchRequestData struct {
WebsocketRequestData
Value string `json:"value"`
}
type WebsocketApiSettingsSetSwitchResponse ¶
type WebsocketApiSettingsSetSwitchResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetTemperatureCalibrationModeRequest ¶
type WebsocketApiSettingsSetTemperatureCalibrationModeRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetTemperatureCalibrationModeRequestData `json:"data"`
}
设置体温校准模式
type WebsocketApiSettingsSetTemperatureCalibrationModeRequestData ¶
type WebsocketApiSettingsSetTemperatureCalibrationModeRequestData struct {
WebsocketRequestData
Value int `json:"value"`
}
type WebsocketApiSettingsSetTemperatureCalibrationModeResponse ¶
type WebsocketApiSettingsSetTemperatureCalibrationModeResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetTemperatureCorrectionRequest ¶
type WebsocketApiSettingsSetTemperatureCorrectionRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetTemperatureCorrectionRequestData `json:"data"`
}
type WebsocketApiSettingsSetTemperatureCorrectionRequestData ¶
type WebsocketApiSettingsSetTemperatureCorrectionRequestData struct {
WebsocketRequestData
Value float32 `json:"value"`
}
type WebsocketApiSettingsSetTemperatureCorrectionResponse ¶
type WebsocketApiSettingsSetTemperatureCorrectionResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetTemperatureDetectDistanceRequest ¶
type WebsocketApiSettingsSetTemperatureDetectDistanceRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetTemperatureDetectDistanceRequestData `json:"data"`
}
type WebsocketApiSettingsSetTemperatureDetectDistanceRequestData ¶
type WebsocketApiSettingsSetTemperatureDetectDistanceRequestData struct {
WebsocketRequestData
Value int `json:"value"`
}
type WebsocketApiSettingsSetTemperatureDetectDistanceResponse ¶
type WebsocketApiSettingsSetTemperatureDetectDistanceResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetTemperatureDetectionRequest ¶
type WebsocketApiSettingsSetTemperatureDetectionRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetTemperatureDetectionRequestData `json:"data"`
}
type WebsocketApiSettingsSetTemperatureDetectionRequestData ¶
type WebsocketApiSettingsSetTemperatureDetectionRequestData struct {
WebsocketRequestData
Value int `json:"value"`
}
type WebsocketApiSettingsSetTemperatureDetectionResponse ¶
type WebsocketApiSettingsSetTemperatureDetectionResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetTemperatureLowPassRequest ¶
type WebsocketApiSettingsSetTemperatureLowPassRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetTemperatureLowPassRequestData `json:"data"`
}
type WebsocketApiSettingsSetTemperatureLowPassRequestData ¶
type WebsocketApiSettingsSetTemperatureLowPassRequestData struct {
WebsocketRequestData
Value string `json:"value"`
}
type WebsocketApiSettingsSetTemperatureLowPassResponse ¶
type WebsocketApiSettingsSetTemperatureLowPassResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetTemperatureModeRequest ¶
type WebsocketApiSettingsSetTemperatureModeRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetTemperatureModeRequestData `json:"data"`
}
体温检测开关
type WebsocketApiSettingsSetTemperatureModeRequestData ¶
type WebsocketApiSettingsSetTemperatureModeRequestData struct {
WebsocketRequestData
Value int `json:"value"`
}
type WebsocketApiSettingsSetTemperatureModeResponse ¶
type WebsocketApiSettingsSetTemperatureModeResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetTemperaturePlayRequest ¶
type WebsocketApiSettingsSetTemperaturePlayRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetTemperaturePlayRequestData `json:"data"`
}
type WebsocketApiSettingsSetTemperaturePlayRequestData ¶
type WebsocketApiSettingsSetTemperaturePlayRequestData struct {
WebsocketRequestData
Value string `json:"value"`
}
type WebsocketApiSettingsSetTemperaturePlayResponse ¶
type WebsocketApiSettingsSetTemperaturePlayResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetTemperaturePreliminaryScreeningStandardRequest ¶
type WebsocketApiSettingsSetTemperaturePreliminaryScreeningStandardRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetTemperaturePreliminaryScreeningStandardRequestData `json:"data"`
}
体温检测开关
type WebsocketApiSettingsSetTemperaturePreliminaryScreeningStandardRequestData ¶
type WebsocketApiSettingsSetTemperaturePreliminaryScreeningStandardRequestData struct {
WebsocketRequestData
Value int `json:"value"`
}
type WebsocketApiSettingsSetTemperaturePreliminaryScreeningStandardResponse ¶
type WebsocketApiSettingsSetTemperaturePreliminaryScreeningStandardResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetTemperatureReflectivityRequest ¶
type WebsocketApiSettingsSetTemperatureReflectivityRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetTemperatureReflectivityRequestData `json:"data"`
}
type WebsocketApiSettingsSetTemperatureReflectivityRequestData ¶
type WebsocketApiSettingsSetTemperatureReflectivityRequestData struct {
WebsocketRequestData
Value int `json:"value"`
}
type WebsocketApiSettingsSetTemperatureReflectivityResponse ¶
type WebsocketApiSettingsSetTemperatureReflectivityResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetTimeRequest ¶
type WebsocketApiSettingsSetTimeRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetTimeRequestData `json:"data"`
}
type WebsocketApiSettingsSetTimeRequestData ¶
type WebsocketApiSettingsSetTimeRequestData struct {
WebsocketRequestData
Value int `json:"value"`
}
type WebsocketApiSettingsSetTimeResponse ¶
type WebsocketApiSettingsSetTimeResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetVersionAutoUpdateRequest ¶
type WebsocketApiSettingsSetVersionAutoUpdateRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetVersionAutoUpdateRequestData `json:"data"`
}
type WebsocketApiSettingsSetVersionAutoUpdateRequestData ¶
type WebsocketApiSettingsSetVersionAutoUpdateRequestData struct {
WebsocketRequestData
Value string `json:"value"`
}
type WebsocketApiSettingsSetVersionAutoUpdateResponse ¶
type WebsocketApiSettingsSetVersionAutoUpdateResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetVersionCheckRequest ¶
type WebsocketApiSettingsSetVersionCheckRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetVersionCheckRequestData `json:"data"`
}
type WebsocketApiSettingsSetVersionCheckRequestData ¶
type WebsocketApiSettingsSetVersionCheckRequestData struct {
WebsocketRequestData
}
type WebsocketApiSettingsSetVersionCheckResponse ¶
type WebsocketApiSettingsSetVersionCheckResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetVersionGetInfoRequest ¶
type WebsocketApiSettingsSetVersionGetInfoRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetVersionGetInfoRequestData `json:"data"`
}
type WebsocketApiSettingsSetVersionGetInfoRequestData ¶
type WebsocketApiSettingsSetVersionGetInfoRequestData struct {
WebsocketRequestData
}
type WebsocketApiSettingsSetVersionGetInfoResponse ¶
type WebsocketApiSettingsSetVersionGetInfoResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetVersionPushInfoRequest ¶
type WebsocketApiSettingsSetVersionPushInfoRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetVersionPushInfoRequestData `json:"data"`
}
type WebsocketApiSettingsSetVersionPushInfoRequestData ¶
type WebsocketApiSettingsSetVersionPushInfoRequestData struct {
WebsocketRequestData
ServerVersion struct {
AppVersion string `json:"app_version"`
Declare string `json:"declare"`
RelationTime int64 `json:"relation_time"`
Title string `json:"title"`
} `json:"server_version"`
VersionCode string `json:"version_code"`
VersionName string `json:"version_name"`
VersionState int64 `json:"version_state"`
}
type WebsocketApiSettingsSetVisitorApplyValueQualityResponse ¶
type WebsocketApiSettingsSetVisitorApplyValueQualityResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetVisitorApplyValueRequest ¶
type WebsocketApiSettingsSetVisitorApplyValueRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetVisitorApplyValueRequestData `json:"data"`
}
type WebsocketApiSettingsSetVisitorApplyValueRequestData ¶
type WebsocketApiSettingsSetVisitorApplyValueRequestData struct {
WebsocketRequestData
Url string `json:"url"`
Photo string `json:"photo"`
}
type WebsocketApiSettingsSetVisitorCallStatusRequest ¶
type WebsocketApiSettingsSetVisitorCallStatusRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetVisitorCallStatusRequestData `json:"data"`
}
type WebsocketApiSettingsSetVisitorCallStatusRequestData ¶
type WebsocketApiSettingsSetVisitorCallStatusRequestData struct {
WebsocketRequestData
Value string `json:"value"`
}
type WebsocketApiSettingsSetVisitorCallStatusResponse ¶
type WebsocketApiSettingsSetVisitorCallStatusResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetVoiceRequest ¶
type WebsocketApiSettingsSetVoiceRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetVoiceRequestData `json:"data"`
}
type WebsocketApiSettingsSetVoiceRequestData ¶
type WebsocketApiSettingsSetVoiceRequestData struct {
WebsocketRequestData
Type int `json:"type"`
VoiceCode int `json:"voice_code"`
VoiceText int `json:"voice_text"`
}
type WebsocketApiSettingsSetVoiceResponse ¶
type WebsocketApiSettingsSetVoiceResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiSettingsSetVolumeRequest ¶
type WebsocketApiSettingsSetVolumeRequest struct {
WebsocketRequestHeader
Data WebsocketApiSettingsSetVolumeRequestData `json:"data"`
}
type WebsocketApiSettingsSetVolumeRequestData ¶
type WebsocketApiSettingsSetVolumeRequestData struct {
WebsocketRequestData
Value int `json:"value"`
}
type WebsocketApiSettingsSetVolumeResponse ¶
type WebsocketApiSettingsSetVolumeResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
type WebsocketApiUserAddRequest ¶
type WebsocketApiUserAddRequest struct {
WebsocketRequestHeader
Data WebsocketApiUserAddRequestData `json:"data"`
}
type WebsocketApiUserAddRequestData ¶
type WebsocketApiUserAddRequestData struct {
WebsocketRequestData
UserId string `json:"user_id"`
Name string `json:"name"` //
IdCard string `json:"id_card"` //
FaceTemplate string `json:"face_template"` //
VlFaceTemplate string `json:"vlface_template"` //
Ic string `json:"Ic"` //
Password string `json:"password"` //
UserType int `json:"user_type"` //
ConfidenceLevel int `json:"confidence_level"` //
Phone string `json:"phone"` //
EffectTime string `json:"effect_time"` //
IdValid string `json:"id_valid"` //
ValidCycle []WebsocketApiUserAddValidCycle `json:"valid_cycle"` //
StartTime string `json:"start_time"` //
EndTime string `json:"end_time"` //
PassRuleId string `json:"pass_rule_id"` //
Mode int `json:"mode"` //
}
type WebsocketApiUserAddResponse ¶
type WebsocketApiUserAddResponse struct {
WebsocketResponse
}
type WebsocketApiUserDelMultiDataResponse ¶
type WebsocketApiUserDelMultiDataResponse struct {
WebsocketResponseData
Failed []WebsocketApiUserDelMultiFailedResponse `json:"delFailed"`
}
type WebsocketApiUserDelMultiRequest ¶
type WebsocketApiUserDelMultiRequest struct {
WebsocketRequestHeader
Data WebsocketApiUserDelMultiRequestData `json:"data"`
}
type WebsocketApiUserDelMultiRequestData ¶
type WebsocketApiUserDelMultiRequestData struct {
WebsocketRequestData
UserIds []string `json:"user_ids"` //
UserType int `json:"user_type"` //
}
type WebsocketApiUserDelMultiResponse ¶
type WebsocketApiUserDelMultiResponse struct {
WebsocketResponseHeader
Data WebsocketApiUserDelMultiDataResponse `json:"data"`
}
type WebsocketApiUserGetRequest ¶
type WebsocketApiUserGetRequest struct {
WebsocketRequestHeader
Data WebsocketApiUserGetRequestData `json:"data"`
}
type WebsocketApiUserGetRequestData ¶
type WebsocketApiUserGetRequestData struct {
WebsocketRequestData
Value int `json:"value"` //0: 读取人脸总数,1:读取所有人员用户的 user id,2 读取人证总数 ,3 读取所有人证用户的 user id
}
type WebsocketApiUserGetResponse ¶
type WebsocketApiUserGetResponse struct {
WebsocketResponse
Data WebsocketApiUserGetResponseData `json:"data"`
}
type WebsocketApiUserGetResponseData ¶
type WebsocketApiUserGetResponseData struct {
WebsocketResponseData
UserIds []string `json:"userIds"`
Total int `json:"total"`
}
type WebsocketApiVisitAddRequest ¶
type WebsocketApiVisitAddRequest struct {
WebsocketRequestHeader
Data WebsocketApiVisitAddRequestData `json:"data"`
}
type WebsocketApiVisitAddResponse ¶
type WebsocketApiVisitAddResponse struct {
WebsocketResponseHeader
Data WebsocketApiVisitAddResponseData `json:"data"`
}
type WebsocketApiVisitAddResponseData ¶
type WebsocketApiVisitAddResponseData struct {
WebsocketResponseData
UserId string `json:"user_id"`
}
type WebsocketClient ¶
type WebsocketClient struct {
// contains filtered or unexported fields
}
func (*WebsocketClient) GetConnTime ¶
func (c *WebsocketClient) GetConnTime() time.Time
func (*WebsocketClient) GetSN ¶
func (c *WebsocketClient) GetSN() string
func (*WebsocketClient) SendMessage ¶
func (c *WebsocketClient) SendMessage(message interface{}) (err error)
type WebsocketRequest ¶
type WebsocketRequest struct {
WebsocketRequestHeader
Data interface{} `json:"data"`
}
数据包
type WebsocketRequestData ¶
type WebsocketRequestData struct {
Cmd string `json:"cmd"`
}
type WebsocketRequestHeader ¶
type WebsocketResponse ¶
type WebsocketResponse struct {
WebsocketResponseHeader
Data WebsocketResponseData `json:"data"`
}
公共信息
type WebsocketResponseData ¶
type WebsocketResponseData struct {
Cmd string `json:"cmd"` //操作命令,如:addUser
Code int `json:"code"` //0成功,其它失败
Msg string `json:"msg"` //提示信息
}
数据里的信息
type WebsocketResponseHeader ¶
Source Files
¶
- config.go
- errors.go
- faceeasco.go
- http.go
- http_api_record_face.go
- http_api_stranger.go
- http_api_update_enroll_result.go
- request.go
- util.go
- websocket.go
- websocket_api.go
- websocket_api_declare.go
- websocket_api_online_authorization.go
- websocket_api_ping.go
- websocket_api_settings_get.go
- websocket_api_settings_reboot.go
- websocket_api_settings_set_ad.go
- websocket_api_settings_set_ad_del.go
- websocket_api_settings_set_ad_image.go
- websocket_api_settings_set_camera_panoramic.go
- websocket_api_settings_set_camera_panoramic_params.go
- websocket_api_settings_set_custom_home_logo.go
- websocket_api_settings_set_door.go
- websocket_api_settings_set_health_qrcode_value.go
- websocket_api_settings_set_health_treasure_key.go
- websocket_api_settings_set_health_treasure_status.go
- websocket_api_settings_set_http_token.go
- websocket_api_settings_set_liveness_detection.go
- websocket_api_settings_set_liveness_level.go
- websocket_api_settings_set_mask_detection.go
- websocket_api_settings_set_online_recognition_interval.go
- websocket_api_settings_set_pass_type.go
- websocket_api_settings_set_password.go
- websocket_api_settings_set_play_user_name.go
- websocket_api_settings_set_printer_status.go
- websocket_api_settings_set_recognition_distince.go
- websocket_api_settings_set_recognition_interval.go
- websocket_api_settings_set_recognition_level.go
- websocket_api_settings_set_record_picture_quality.go
- websocket_api_settings_set_relay_state.go
- websocket_api_settings_set_screensaver.go
- websocket_api_settings_set_screensaver_interval.go
- websocket_api_settings_set_screensaver_state.go
- websocket_api_settings_set_screensaver_status.go
- websocket_api_settings_set_stranger_recognition.go
- websocket_api_settings_set_switch.go
- websocket_api_settings_set_temperature_calibration_mode.go
- websocket_api_settings_set_temperature_correction.go
- websocket_api_settings_set_temperature_detect_distance.go
- websocket_api_settings_set_temperature_detection.go
- websocket_api_settings_set_temperature_low_pass.go
- websocket_api_settings_set_temperature_mode.go
- websocket_api_settings_set_temperature_play.go
- websocket_api_settings_set_temperature_preliminary_screening_standard.go
- websocket_api_settings_set_temperature_reflectivity.go
- websocket_api_settings_set_time.go
- websocket_api_settings_set_version_auto_update.go
- websocket_api_settings_set_version_check.go
- websocket_api_settings_set_version_get_info.go
- websocket_api_settings_set_version_push_info.go
- websocket_api_settings_set_version_push_update_progress.go
- websocket_api_settings_set_version_push_update_ret.go
- websocket_api_settings_set_visitor_apply_value.go
- websocket_api_settings_set_visitor_call_status.go
- websocket_api_settings_set_voice.go
- websocket_api_settings_set_volume.go
- websocket_api_user_add.go
- websocket_api_user_del.go
- websocket_api_user_del_all.go
- websocket_api_user_del_multi.go
- websocket_api_user_edit.go
- websocket_api_user_get.go
- websocket_api_visit_add.go
- websocket_client.go
- websocket_const.go
- websocket_hub.go
Click to show internal directories.
Click to hide internal directories.