This commit is contained in:
parent
6ebfeda319
commit
05a1e8d698
|
|
@ -210,7 +210,7 @@ func DeviceOnline(deviceserial string) (*model.Hikvision, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 该接口用于获取设备当前校时配置
|
// 该接口用于获取设备当前校时配置
|
||||||
func DeviceGetTimeMode(deviceserial string) (*string, error) {
|
func DeviceTimeGeMode(deviceserial string) (*string, error) {
|
||||||
resp, err := hikvisionRequest("GET", fmt.Sprintf("%s?deviceSerial=%s", time_base, deviceserial), nil)
|
resp, err := hikvisionRequest("GET", fmt.Sprintf("%s?deviceSerial=%s", time_base, deviceserial), nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
@ -229,7 +229,7 @@ func DeviceGetTimeMode(deviceserial string) (*string, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 该接口用于配置设备校时模式
|
// 该接口用于配置设备校时模式
|
||||||
func DeviceSetTimeMode(deviceSerial, timeMode string) (*model.Hikvision, error) {
|
func DeviceTimeSetMode(deviceSerial, timeMode string) (*model.Hikvision, error) {
|
||||||
|
|
||||||
req := &struct {
|
req := &struct {
|
||||||
DeviceSerial string `json:"deviceSerial"`
|
DeviceSerial string `json:"deviceSerial"`
|
||||||
|
|
@ -252,7 +252,7 @@ func DeviceSetTimeMode(deviceSerial, timeMode string) (*model.Hikvision, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 该接口用于获取设备当前NTP服务器配置
|
// 该接口用于获取设备当前NTP服务器配置
|
||||||
func DeviceGetNTPCfg(deviceserial string) (*model.DeviceSetNTPCfgServerRes, error) {
|
func DeviceTimeGetNTPCfg(deviceserial string) (*model.DeviceSetNTPCfgServerRes, error) {
|
||||||
resp, err := hikvisionRequest("GET", fmt.Sprintf("%s?deviceSerial=%s", time_ntpcfg, deviceserial), nil)
|
resp, err := hikvisionRequest("GET", fmt.Sprintf("%s?deviceSerial=%s", time_ntpcfg, deviceserial), nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
@ -266,7 +266,7 @@ func DeviceGetNTPCfg(deviceserial string) (*model.DeviceSetNTPCfgServerRes, erro
|
||||||
}
|
}
|
||||||
|
|
||||||
// 该接口用于配置设备NTP服务器参数
|
// 该接口用于配置设备NTP服务器参数
|
||||||
func DeviceSetNTPCfg(deviceSerial string, ntpserver *model.DeviceSetNTPCfgServerChild) (*model.Hikvision, error) {
|
func DeviceTimeSetNTPCfg(deviceSerial string, ntpserver *model.DeviceSetNTPCfgServerChild) (*model.Hikvision, error) {
|
||||||
|
|
||||||
req := &struct {
|
req := &struct {
|
||||||
DeviceSerial string `json:"deviceSerial"`
|
DeviceSerial string `json:"deviceSerial"`
|
||||||
|
|
@ -289,7 +289,7 @@ func DeviceSetNTPCfg(deviceSerial string, ntpserver *model.DeviceSetNTPCfgServer
|
||||||
}
|
}
|
||||||
|
|
||||||
// 该接口用于获取设备指定NTP服务器配置
|
// 该接口用于获取设备指定NTP服务器配置
|
||||||
func DeviceGetNTPServerCfg(deviceserial string, ntpserverid int) (*model.DeviceSetNTPCfgServerRes, error) {
|
func DeviceTimeGetNTPServerCfg(deviceserial string, ntpserverid int) (*model.DeviceSetNTPCfgServerRes, error) {
|
||||||
resp, err := hikvisionRequest("GET", fmt.Sprintf("%s?deviceSerial=%s&ntpServerId=%d", time_ntpserver_cfg, deviceserial, ntpserverid), nil)
|
resp, err := hikvisionRequest("GET", fmt.Sprintf("%s?deviceSerial=%s&ntpServerId=%d", time_ntpserver_cfg, deviceserial, ntpserverid), nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
@ -303,7 +303,7 @@ func DeviceGetNTPServerCfg(deviceserial string, ntpserverid int) (*model.DeviceS
|
||||||
}
|
}
|
||||||
|
|
||||||
// 该接口用于配置设备指定NTP服务器参数
|
// 该接口用于配置设备指定NTP服务器参数
|
||||||
func DeviceSetNTPServerCfg(req *model.DeviceSetNTPServerCfgReq) (*model.Hikvision, error) {
|
func DeviceTimeSetNTPServerCfg(req *model.DeviceSetNTPServerCfgReq) (*model.Hikvision, error) {
|
||||||
resp, err := hikvisionRequest("POST", time_ntpserver_cfg, req)
|
resp, err := hikvisionRequest("POST", time_ntpserver_cfg, req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
|
||||||
|
|
@ -24,20 +24,20 @@ environment:
|
||||||
|
|
||||||
|
|
||||||
##### 基础服务能力
|
##### 基础服务能力
|
||||||
- 分组管理
|
- 分组管理 group
|
||||||
- 接入管理
|
- 接入管理 device
|
||||||
- 校时配置
|
- 校时配置 device_time
|
||||||
- 人员管理
|
- 人员管理 person
|
||||||
##### 基础服务能力
|
##### 门禁服务能力
|
||||||
- 卡片操作
|
- 卡片操作 card
|
||||||
- 门禁计划
|
- 门禁计划 plan
|
||||||
- 权限分组
|
- 权限分组 permission_group
|
||||||
- 权限下发
|
- 权限下发 permission_allots
|
||||||
- 访客二维码
|
- 访客二维码 qrcode
|
||||||
- 本地事件查询
|
- 本地事件查询 event
|
||||||
- 可视对讲
|
- 可视对讲 voiceTalk
|
||||||
- 人员信息采集
|
- 人员信息采集 capture
|
||||||
##### 消息通道
|
##### 消息通道 mq
|
||||||
- 通用事件
|
- 通用事件
|
||||||
- open_device_onoffline 设备上下线消息
|
- open_device_onoffline 设备上下线消息
|
||||||
---
|
---
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue