refactor: 迁移 service 代码逻辑
This commit is contained in:
@ -9,6 +9,8 @@ type Session struct {
|
||||
Device *onvif.Device `json:"device"`
|
||||
}
|
||||
|
||||
var Sessions = make(map[string]*Session)
|
||||
|
||||
func NewSession(xaddr string, username string, password string) (*Session, error) {
|
||||
// 规范化连接地址
|
||||
if !strings.Contains(xaddr, ":") {
|
Reference in New Issue
Block a user