增加几个大类

This commit is contained in:
suguo.yao 2023-11-21 08:41:52 +08:00
parent 7c2375cff6
commit c93370eacd
11 changed files with 24 additions and 14 deletions

5
ai/readme.md Normal file
View File

@ -0,0 +1,5 @@
海康威视AI开放平台
===
https://ai.hikvision.com/

1
cloud/readme.md Normal file
View File

@ -0,0 +1 @@
海康云眸平台

2
go.mod
View File

@ -1,3 +1,3 @@
module myschools.me/suguo/hikvision
go 1.17
go 1.20

View File

View File

@ -1,5 +1,5 @@
// Package 海康
package hikvision
package isc
import (
"crypto/hmac"
@ -9,7 +9,7 @@ import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"io"
"net/http"
"strings"
"time"
@ -56,7 +56,7 @@ func artemisPOST(uri string, body interface{}) (*[]byte, error) {
}
defer resp.Body.Close()
respBody, err := ioutil.ReadAll(resp.Body)
respBody, err := io.ReadAll(resp.Body)
if err != nil {
return nil, err
}

View File

@ -1,4 +1,4 @@
package hikvision
package isc
// 海康配置
type Config struct {

View File

@ -1,4 +1,4 @@
package hikvision
package isc
import (
"encoding/json"

View File

@ -1,4 +1,4 @@
package hikvision
package isc
import (
"encoding/json"

4
isc/readme.md Normal file
View File

@ -0,0 +1,4 @@
ISC(ISecure Center)综合安防管理平台
======================================
https://open.hikvision.com/osp#%E7%BB%BC%E5%90%88%E5%AE%89%E9%98%B2%E7%AE%A1%E7%90%86%E5%B9%B3%E5%8F%B0

View File

@ -1,4 +1,4 @@
package hikvision
package isc
import (
"encoding/json"