{"openapi":"3.0.0","info":{"version":"1.0.0","title":"AccessControl - 门禁管理系统 API","description":"基于 OpenHarmony5 的门禁设备管理后台 API 文档。\n认证方式：登录后获取 Token，后续请求需在 Header 中携带 `Authorization: Bearer <token>`。\n服务端口：8090\n"},"servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/peake/test/1.0.0"},{"url":"http://{deviceIp}:8090","description":"门禁设备 HTTP 服务","variables":{"deviceIp":{"default":"192.168.1.100","description":"设备 IP 地址"}}}],"security":[{"bearerAuth":[]}],"paths":{"/api/login":{"post":{"tags":["认证"],"summary":"用户登录","description":"使用密码登录，获取访问 Token（24小时有效）","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["password"],"properties":{"password":{"type":"string","description":"登录密码"}}},"example":{"password":"admin123"}}}},"responses":{"200":{"description":"登录成功","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"},"example":{"result":1,"success":true,"msg":"success","code":"200","data":{"token":"AbCdEf1234567890AbCdEf1234567890","expireTime":1716307200000}}}}}}}},"/api/token/refresh":{"post":{"tags":["认证"],"summary":"刷新 Token","description":"使用旧 Token 换取新 Token（旧 Token 立即失效）","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["token"],"properties":{"token":{"type":"string","description":"当前有效的 Token"}}},"example":{"token":"AbCdEf1234567890AbCdEf1234567890"}}}},"responses":{"200":{"description":"刷新成功","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}}}}},"/":{"get":{"tags":["系统"],"summary":"管理后台页面","description":"返回设备管理后台 HTML 页面","security":[],"responses":{"200":{"description":"HTML 页面","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/api/health":{"get":{"tags":["系统"],"summary":"健康检查","description":"服务心跳检测","security":[],"responses":{"200":{"description":"服务正常","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"},"example":{"result":1,"success":true,"msg":"ok","code":"200","data":""}}}}}}},"/api/device/info":{"get":{"tags":["设备管理"],"summary":"获取设备信息","description":"返回设备 IP、端口、平台、版本、序列号等基本信息","responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"},"example":{"result":1,"success":true,"msg":"success","code":"200","data":{"ip":"192.168.1.100","port":8090,"platform":"OpenHarmony","sdkVersion":12,"deviceName":"门禁设备","softwareVersion":"1.0.0","deviceId":"xxxxxx"}}}}}}}},"/api/config/device":{"get":{"tags":["设备管理"],"summary":"获取设备配置","description":"返回设备名称、音量、亮度、TTS 语音播报、推送地址等配置","responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"},"example":{"result":1,"success":true,"msg":"success","code":"200","data":{"deviceName":"门禁设备","volume":80,"brightness":100,"ttsEnable":true,"ttsContent":"识别成功，请通行","callbackUrl":"http://server:8080/push","fingerprint":"E851979C983A..."}}}}}}},"post":{"tags":["设备管理"],"summary":"设置设备配置","description":"修改设备名称、音量、亮度、TTS 语音播报、推送地址等（支持部分字段更新）","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"deviceName":{"type":"string","description":"设备名称"},"volume":{"type":"integer","description":"音量 (0-100)"},"brightness":{"type":"integer","description":"亮度 (0-100)"},"ttsEnable":{"type":"boolean","description":"是否启用 TTS 语音播报"},"ttsContent":{"type":"string","description":"TTS 播报内容"},"callbackUrl":{"type":"string","description":"推送回调地址"}}},"example":{"deviceName":"门禁设备","volume":80,"ttsEnable":true}}}},"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}}}}},"/api/config/push-status":{"get":{"tags":["设备管理"],"summary":"获取推送连接状态","description":"返回推送地址配置状态及连接情况","responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}}}}},"/api/config/pushTest":{"post":{"tags":["设备管理"],"summary":"推送连接测试","description":"向已配置的推送地址发送测试请求","responses":{"200":{"description":"测试结果","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}}}}},"/api/config/seturlToServer":{"post":{"tags":["设备管理"],"summary":"设置推送地址","description":"配置识别记录推送的目标服务器地址及设备指纹（持久化保存）","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"推送服务器 URL"},"fingerprint":{"type":"string","description":"设备指纹标识（可选）"}}},"example":{"url":"http://192.168.1.200:8080/api/push/recognition","fingerprint":"E851979C983A9660E09DFA32750D5CD372DCEC864FA82672C55B58853D572640"}}}},"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}}}}},"/api/system/status":{"get":{"tags":["系统维护"],"summary":"获取系统运行状态","description":"返回设备运行时长、内存、存储、CPU 使用率","responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"},"example":{"result":1,"success":true,"msg":"success","code":"200","data":{"uptime":86400,"memoryUsage":0,"storageUsage":0,"cpuUsage":0}}}}}}}},"/api/system/reboot":{"post":{"tags":["系统维护"],"summary":"重启设备","description":"下发系统重启指令","responses":{"200":{"description":"指令已下发","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}}}}},"/api/system/reset":{"post":{"tags":["系统维护"],"summary":"恢复出厂设置","description":"将设备恢复至出厂状态","responses":{"200":{"description":"指令已下发","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}}}}},"/api/system/clearData":{"post":{"tags":["系统维护"],"summary":"清除数据","description":"按类型清除设备数据","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["target"],"properties":{"target":{"type":"string","enum":["records","persons","all"],"description":"清除目标（records=识别记录, persons=人员数据, all=全部数据）"}}},"example":{"target":"records"}}}},"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}}}}},"/api/system/openDoor":{"post":{"tags":["系统维护"],"summary":"远程开门","description":"通过继电器远程控制开门（4秒后自动闭合）","responses":{"200":{"description":"指令已下发","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}}}}},"/api/system/adjustTime":{"post":{"tags":["系统维护"],"summary":"校时","description":"上位机传入毫秒时间戳，同步设备系统时间","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["timestamp"],"properties":{"timestamp":{"type":"integer","format":"int64","description":"毫秒级 Unix 时间戳"}}},"example":{"timestamp":1716307200000}}}},"responses":{"200":{"description":"校时结果","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}}}}},"/api/system/deviceVersion":{"get":{"tags":["系统维护"],"summary":"查询设备版本信息","description":"返回应用版本、CP号、平台、SDK版本","responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"},"example":{"result":1,"success":true,"msg":"success","code":"200","data":{"appVersion":"PEAKEOS-V1.0.0","cpNumber":"CP10001","platform":"OpenHarmony5.0.1","sdkVersion":"1.0.0"}}}}}}}},"/api/system/cpNumber":{"get":{"tags":["系统维护"],"summary":"查询 CP 号","description":"返回设备 CP 编号","responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"},"example":{"result":1,"success":true,"msg":"success","code":"200","data":{"cpNumber":"CP10001"}}}}}}}},"/api/config/recognition":{"get":{"tags":["系统维护"],"summary":"获取识别配置","description":"返回人脸识别阈值、活体检测、识别间隔等参数","responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"},"example":{"result":1,"success":true,"msg":"success","code":"200","data":{"threshold":75,"livenessEnable":true,"livenessThreshold":50,"maxFaceCount":5,"recognizeInterval":2000}}}}}}}},"/api/system/version":{"get":{"tags":["软件升级"],"summary":"获取软件版本信息","description":"返回当前版本号、构建时间、平台信息","responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"},"example":{"result":1,"success":true,"msg":"success","code":"200","data":{"currentVersion":"1.0.0","buildTime":"2025-05-01","platform":"OpenHarmony"}}}}}}}},"/api/system/checkUpdate":{"post":{"tags":["软件升级"],"summary":"检查软件更新","description":"检查是否有新版本可用","responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"},"example":{"result":1,"success":true,"msg":"success","code":"200","data":{"hasUpdate":false,"latestVersion":"1.0.0","description":"当前已是最新版本"}}}}}}}},"/api/config/network":{"get":{"tags":["网络配置"],"summary":"获取网络配置","description":"返回当前以太网配置（IP类型、地址、掩码、网关、DNS）","responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"},"example":{"result":1,"success":true,"msg":"success","code":"200","data":{"ipType":"static","ip":"192.168.1.100","mask":"255.255.255.0","gateway":"192.168.1.1","dns1":"114.114.114.114","dns2":"8.8.8.8","mac":"AA:BB:CC:DD:EE:FF","ethType":"eth0"}}}}}}},"post":{"tags":["网络配置"],"summary":"设置网络配置","description":"配置以太网静态IP或切换为DHCP模式。\n**注意**：静态IP模式下所有字段必填；DHCP模式下仅需 ipType。\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["ipType"],"properties":{"ipType":{"type":"string","enum":["static","dhcp"],"description":"IP分配方式"},"ip":{"type":"string","description":"IP地址（static模式必填）"},"mask":{"type":"string","description":"子网掩码（static模式必填）"},"gateway":{"type":"string","description":"网关（static模式必填）"},"dns1":{"type":"string","description":"首选DNS（static模式必填）"}}},"example":{"ipType":"static","ip":"192.168.1.100","mask":"255.255.255.0","gateway":"192.168.1.1","dns1":"114.114.114.114"}}}},"responses":{"200":{"description":"配置已保存","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}}}}},"/api/config/getMacSn":{"get":{"tags":["网络配置"],"summary":"获取 MAC 和序列号","description":"返回设备 MAC 地址和序列号","responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"},"example":{"result":1,"success":true,"msg":"success","code":"200","data":{"mac":"AA:BB:CC:DD:EE:FF","sn":"SN123456789"}}}}}}}},"/api/persons/query":{"post":{"tags":["人员管理"],"summary":"查询人员列表","description":"分页查询人员信息，支持关键字搜索","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"page":{"type":"integer","default":1,"description":"页码"},"pageSize":{"type":"integer","default":20,"description":"每页条数"},"keyword":{"type":"string","description":"按姓名搜索关键字"}}},"example":{"page":1,"pageSize":20,"keyword":""}}}},"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageResponse"},"example":{"result":1,"success":true,"msg":"success","code":"200","data":{"total":100,"list":[{"sysId":1,"personId":"P001","name":"张三","password":"","picBase64":"data:image/jpeg;base64,...","picPath":"data:image/jpeg;base64,...","createTime":1716307200000,"cardNo":"CARD001","rotation":0,"featureHex":"a1b2c3d4...","imgSource":0}]}}}}}}}},"/api/persons/get":{"post":{"tags":["人员管理"],"summary":"获取单个人员","description":"根据人员ID获取详细信息（含人脸照片 base64）","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"人员ID（personId）"}}},"example":{"id":"P001"}}}},"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}}}}},"/api/persons/add":{"post":{"tags":["人员管理"],"summary":"添加人员","description":"添加新人员，自动提取人脸特征。\n**注意**：picBase64 支持 jpg/png/webp 等格式，服务端会自动转换为 JPEG 格式。\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","name","picBase64"],"properties":{"id":{"type":"string","description":"人员编号（唯一）"},"name":{"type":"string","description":"姓名"},"cardNo":{"type":"string","description":"卡号（可选）"},"password":{"type":"string","description":"密码（可选）"},"picBase64":{"type":"string","description":"人脸照片 Base64（支持 data:image/xxx;base64, 前缀）"}}},"example":{"id":"P001","name":"张三","cardNo":"CARD001","password":"123456","picBase64":"data:image/jpeg;base64,/9j/4AAQ..."}}}},"responses":{"200":{"description":"添加结果","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}}}}},"/api/persons/update":{"post":{"tags":["人员管理"],"summary":"更新人员信息","description":"修改人员姓名、卡号、密码、照片。\n支持修改人员编号（传 newId 字段，不同于原 id 时执行删除旧记录+新增）。\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string","description":"当前人员编号"},"newId":{"type":"string","description":"新人员编号（可选，用于修改编号）"},"name":{"type":"string","description":"姓名"},"cardNo":{"type":"string","description":"卡号"},"password":{"type":"string","description":"密码"},"picBase64":{"type":"string","description":"人脸照片 Base64（不传则保留原照片）"}}},"example":{"id":"P001","name":"张三丰","cardNo":"CARD002"}}}},"responses":{"200":{"description":"修改结果","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}}}}},"/api/persons/delete":{"post":{"tags":["人员管理"],"summary":"删除人员","description":"根据人员编号删除单个人员","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"人员编号"}}},"example":{"id":"P001"}}}},"responses":{"200":{"description":"删除结果","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}}}}},"/api/persons/batchDelete":{"post":{"tags":["人员管理"],"summary":"批量删除人员","description":"根据人员编号数组批量删除","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["ids"],"properties":{"ids":{"type":"array","items":{"type":"string"},"description":"人员编号列表"}}},"example":{"ids":["P001","P002","P003"]}}}},"responses":{"200":{"description":"删除结果","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}}}}},"/api/blacklist/query":{"post":{"tags":["黑名单"],"summary":"查询黑名单","description":"分页查询黑名单列表","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"page":{"type":"integer","default":1,"description":"页码"},"pageSize":{"type":"integer","default":20,"description":"每页条数"}}},"example":{"page":1,"pageSize":20}}}},"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageResponse"},"example":{"result":1,"success":true,"msg":"success","code":"200","data":{"total":5,"list":[{"sysId":1,"personId":"P001","name":"张三","reason":"违规进入","createTime":1716307200000}]}}}}}}}},"/api/blacklist/add":{"post":{"tags":["黑名单"],"summary":"添加黑名单","description":"将人员加入黑名单","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["personId","name"],"properties":{"personId":{"type":"string","description":"人员编号"},"name":{"type":"string","description":"姓名"},"reason":{"type":"string","description":"加入原因"}}},"example":{"personId":"P001","name":"张三","reason":"违规进入"}}}},"responses":{"200":{"description":"添加结果","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}}}}},"/api/blacklist/delete":{"post":{"tags":["黑名单"],"summary":"删除黑名单","description":"根据系统ID移除黑名单记录","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["sysId"],"properties":{"sysId":{"type":"integer","description":"黑名单记录系统ID"}}},"example":{"sysId":1}}}},"responses":{"200":{"description":"删除结果","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}}}}},"/api/records/recognition":{"post":{"tags":["识别记录"],"summary":"查询识别记录","description":"分页查询人脸/刷卡/密码识别记录，支持多条件筛选。\n识别类型 type: face(刷脸) / card(刷卡) / password(密码) / all(全部)\n识别结果 result: 1(成功) / 0(失败陌生人) / all(全部)\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"page":{"type":"integer","default":1,"description":"页码"},"pageSize":{"type":"integer","default":20,"description":"每页条数"},"startTime":{"type":"integer","format":"int64","description":"开始时间戳（毫秒），0 表示不限"},"endTime":{"type":"integer","format":"int64","description":"结束时间戳（毫秒），0 表示不限"},"type":{"type":"string","default":"all","enum":["face","card","password","all"],"description":"识别类型"},"result":{"type":"string","default":"all","enum":["1","0","all"],"description":"识别结果"},"keyword":{"type":"string","description":"按姓名搜索"}}},"example":{"page":1,"pageSize":20,"startTime":0,"endTime":0,"type":"all","result":"all","keyword":""}}}},"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageResponse"},"example":{"result":1,"success":true,"msg":"success","code":"200","data":{"total":50,"list":[{"sysId":1,"personId":"P001","name":"张三","similarity":95,"createTime":1716307200000,"picPath":"/data/cache/xxx.jpg","type":"face","captureImage":"data:image/jpeg;base64,...","rotation":-90}]}}}}}}}},"/api/records/stranger":{"post":{"tags":["识别记录"],"summary":"查询陌生人记录","description":"分页查询陌生人抓拍记录","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"page":{"type":"integer","default":1,"description":"页码"},"pageSize":{"type":"integer","default":20,"description":"每页条数"}}},"example":{"page":1,"pageSize":20}}}},"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageResponse"},"example":{"result":1,"success":true,"msg":"success","code":"200","data":{"total":10,"list":[{"sysId":1,"createTime":1716307200000,"picPath":"/data/cache/stranger_xxx.jpg","captureImage":"data:image/jpeg;base64,...","rotation":-90}]}}}}}}}},"/api/records/card":{"post":{"tags":["识别记录"],"summary":"查询刷卡记录","description":"分页查询刷卡通行记录","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"page":{"type":"integer","default":1,"description":"页码"},"pageSize":{"type":"integer","default":20,"description":"每页条数"}}},"example":{"page":1,"pageSize":20}}}},"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageResponse"},"example":{"result":1,"success":true,"msg":"success","code":"200","data":{"total":30,"list":[{"sysId":1,"cardNo":"CARD001","personId":"P001","name":"张三","createTime":1716307200000}]}}}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"custom token","description":"登录接口返回的 Token，在请求 Header 中携带：\n`Authorization: Bearer <token>`\n\nToken 有效期 24 小时，过期后需重新登录或调用刷新接口。\n"}},"schemas":{"ApiResponse":{"type":"object","description":"统一响应格式","properties":{"result":{"type":"integer","description":"1=成功, 0=失败"},"success":{"type":"boolean","description":"是否成功"},"msg":{"type":"string","description":"响应消息"},"code":{"type":"string","description":"业务状态码（200/400/401/500）"},"data":{"description":"响应数据（可能是对象、字符串、数组等）"}},"example":{"result":1,"success":true,"msg":"success","code":"200","data":""}},"PageResponse":{"allOf":[{"$ref":"#/components/schemas/ApiResponse"},{"type":"object","properties":{"data":{"type":"object","properties":{"total":{"type":"integer","description":"总记录数"},"list":{"type":"array","description":"数据列表","items":{"type":"object"}}}}}}]},"TokenInfo":{"type":"object","properties":{"token":{"type":"string","description":"访问令牌"},"expireTime":{"type":"integer","format":"int64","description":"过期时间戳（毫秒）"}}},"PersonListItem":{"type":"object","description":"人员列表项","properties":{"sysId":{"type":"integer","description":"系统ID"},"personId":{"type":"string","description":"人员编号"},"name":{"type":"string","description":"姓名"},"password":{"type":"string","description":"密码"},"picBase64":{"type":"string","description":"Base64 编码的人脸照片"},"picPath":{"type":"string","description":"照片路径（兼容字段，值与 picBase64 相同）"},"createTime":{"type":"integer","format":"int64","description":"创建时间戳"},"cardNo":{"type":"string","description":"卡号"},"rotation":{"type":"integer","description":"图片旋转角度（设备拍摄为 -90，上位机上传为 0）"},"featureHex":{"type":"string","description":"人脸特征十六进制（前32字节）"},"imgSource":{"type":"integer","description":"图片来源"}}},"DeviceInfo":{"type":"object","description":"设备信息","properties":{"ip":{"type":"string"},"port":{"type":"integer"},"platform":{"type":"string"},"sdkVersion":{"type":"integer"},"deviceName":{"type":"string"},"softwareVersion":{"type":"string"},"deviceId":{"type":"string"}}},"DeviceConfig":{"type":"object","description":"设备配置","properties":{"deviceName":{"type":"string"},"volume":{"type":"integer"},"brightness":{"type":"integer"},"ttsEnable":{"type":"boolean"},"ttsContent":{"type":"string"},"callbackUrl":{"type":"string"},"fingerprint":{"type":"string"}}},"RecognitionRecord":{"type":"object","description":"识别记录展示项","properties":{"sysId":{"type":"integer"},"personId":{"type":"string"},"name":{"type":"string"},"similarity":{"type":"number"},"createTime":{"type":"integer","format":"int64"},"picPath":{"type":"string"},"type":{"type":"string","enum":["face","card","password"]},"captureImage":{"type":"string","description":"Base64 编码的抓拍照片"},"rotation":{"type":"integer"}}},"StrangerRecord":{"type":"object","description":"陌生人记录展示项","properties":{"sysId":{"type":"integer"},"createTime":{"type":"integer","format":"int64"},"picPath":{"type":"string"},"captureImage":{"type":"string","description":"Base64 编码的抓拍照片"},"rotation":{"type":"integer"}}},"CardRecord":{"type":"object","description":"刷卡记录","properties":{"sysId":{"type":"integer"},"cardNo":{"type":"string"},"personId":{"type":"string"},"name":{"type":"string"},"createTime":{"type":"integer","format":"int64"}}},"NetworkConfig":{"type":"object","description":"网络配置","properties":{"ipType":{"type":"string","enum":["static","dhcp"]},"ip":{"type":"string"},"mask":{"type":"string"},"gateway":{"type":"string"},"dns1":{"type":"string"},"dns2":{"type":"string"},"mac":{"type":"string"},"ethType":{"type":"string"}}},"SystemStatus":{"type":"object","description":"系统运行状态","properties":{"uptime":{"type":"integer","description":"运行时长（秒）"},"memoryUsage":{"type":"number"},"storageUsage":{"type":"number"},"cpuUsage":{"type":"number"}}},"RecognitionConfig":{"type":"object","description":"人脸识别配置","properties":{"threshold":{"type":"integer","description":"识别阈值"},"livenessEnable":{"type":"boolean","description":"是否启用活体检测"},"livenessThreshold":{"type":"integer","description":"活体检测阈值"},"maxFaceCount":{"type":"integer","description":"最大人脸数"},"recognizeInterval":{"type":"integer","description":"识别间隔（毫秒）"}}},"VersionInfo":{"type":"object","properties":{"currentVersion":{"type":"string"},"buildTime":{"type":"string"},"platform":{"type":"string"}}},"UpdateCheckResult":{"type":"object","properties":{"hasUpdate":{"type":"boolean"},"latestVersion":{"type":"string"},"description":{"type":"string"}}}}}}