faceeasco

package module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2022 License: MIT Imports: 18 Imported by: 0

README

faceeasco

深圳市易思科智能设备有限公司,猫瞳人脸识别设备,接口开发sdk

功能说明

https://docs.qq.com/doc/DTmpOeHV1TEZVR2Zk

云平台手册

https://docs.qq.com/doc/DTmdQSmtmc0pFeWhT

对接指南

https://docs.qq.com/doc/DSXRtcWNSUXhQaXZE

Documentation

Index

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_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
)
View Source
var DefaultUserAgent = fmt.Sprintf("Faceeasco (%s; %s) Golang/%s Core/%s", runtime.GOOS, runtime.GOARCH, strings.Trim(runtime.Version(), "go"), Version)

Functions

func Base64ToImage

func Base64ToImage(base string) (result []byte, err error)

func Base64Unescape

func Base64Unescape(base string) (result string, err error)

func FileDownload

func FileDownload(url string, targetPath string) (err error)

func FileRead

func FileRead(file string) (bytes []byte, err error)

func ImageToBase64

func ImageToBase64(img []byte) (result string, err error)

func NewRequestId

func NewRequestId() string

func ParseRequest

func ParseRequest(r *http.Request, resp interface{}) (err error)

Types

type Client

type Client struct {
	Queue *queue.Queue
	Hub   *Hub
}

func New

func New() *Client

func (*Client) GetAliveClient

func (this *Client) GetAliveClient(sn string) *WebsocketClient

func (*Client) GetClientList

func (this *Client) GetClientList() (result []*WebsocketClient)

func (*Client) GetMessageData

func (this *Client) GetMessageData() map[string]*queue.Message

func (*Client) SendWebsocketMessage

func (this *Client) SendWebsocketMessage(requestId, sn string, data interface{}) (result []byte, err error)

func (*Client) ServeWebsocket

func (this *Client) ServeWebsocket(w http.ResponseWriter, r *http.Request, responseHeader http.Header) (err error)

type Config

type Config struct {
	Token string
}

type HttpHeader

type HttpHeader struct {
	SN    string `json:"sn"`    //
	Count int    `json:"Count"` //
}

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 HttpResponse struct {
	Result  int    `json:"Result"`
	Content string `json:"Content"`
	Msg     string `json:"Msg"`
}

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 HttpUpdateEnrollData struct {
	UserId string `json:"user_id"` //
	Code   int    `json:"code"`    //
	Msg    string `json:"msg"`     //
}

type HttpUpdateEnrollResponse

type HttpUpdateEnrollResponse struct {
	HttpHeader
	Logs []HttpStrangerData `json:"logs"`
}

type Hub

type Hub struct {
	sync.Mutex
	// contains filtered or unexported fields
}

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 WebsocketApiDeclareRequest

type WebsocketApiDeclareRequest struct {
	Cmd         string `json:"cmd"`          //
	Type        string `json:"type"`         //
	SN          string `json:"sn"`           //
	VersionCode string `json:"version_code"` //
	VersionName string `json:"version_name"` //
}

type WebsocketApiDeclareResponse

type WebsocketApiDeclareResponse struct {
	Cmd      string `json:"cmd"`
	ClientId string `json:"client_id"`
}

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"`
		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 WebsocketApiSettingsSetCameraPanoramicParamsRequestData

type WebsocketApiSettingsSetCameraPanoramicParamsRequestData struct {
	WebsocketRequestData
	IP       string `json:"ip"`
	Port     int    `json:"port"`
	Username string `json:"username"`
	Password string `json:"password"`
	Channel  int    `json:"channel"`
}

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 WebsocketApiSettingsSetCustomHomeLogoRequestData

type WebsocketApiSettingsSetCustomHomeLogoRequestData struct {
	WebsocketRequestData
	Type  int    `json:"type"`
	Text  string `json:"text"`
	Image struct {
		Type    int    `json:"type"`
		Width   int    `json:"width"`
		Height  int    `json:"height"`
		Content string `json:"content"`
	} `json:"image"`
}

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 WebsocketApiUserAddValidCycle

type WebsocketApiUserAddValidCycle struct {
	StartTime string `json:"start_time"` //
	EndTime   string `json:"end_time"`   //
}

type WebsocketApiUserDelMultiDataResponse

type WebsocketApiUserDelMultiDataResponse struct {
	WebsocketResponseData
	Failed []WebsocketApiUserDelMultiFailedResponse `json:"delFailed"`
}

type WebsocketApiUserDelMultiFailedResponse

type WebsocketApiUserDelMultiFailedResponse struct {
	UserId string `json:"user_id"` //
	Code   int    `json:"code"`    //0成功,其它失败
	Msg    string `json:"msg"`     //提示信息
}

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 WebsocketApiVisitAddRequestData

type WebsocketApiVisitAddRequestData struct {
	WebsocketRequestData
	UserId     string `json:"user_id"`     //
	IdName     string `json:"id_name"`     //
	IdNumber   string `json:"id_number"`   //
	EffectTime string `json:"effect_time"` //
	Valid      string `json:"valid"`       //
}

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 WebsocketRequestHeader struct {
	Cmd  string `json:"cmd"`          //to_device
	From string `json:"from"`         //deviceId
	To   string `json:"to"`           //requestId
	SN   string `json:"sn,omitempty"` //ping或declare时使用
}

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

type WebsocketResponseHeader struct {
	Cmd  string `json:"cmd"`  //ping、declare、to_client
	From string `json:"from"` //区别程序,自定义值
	To   string `json:"to"`   //设备编号
}

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL