实现基本的区域监控终端管理功能

This commit is contained in:
刘祥超
2021-09-05 11:10:18 +08:00
parent 8308e2e83d
commit dbc97bc8de
14 changed files with 430 additions and 151 deletions

View File

@@ -0,0 +1,12 @@
package models
import "encoding/json"
func (this *ReportNode) DecodeAllowIPs() []string {
var result = []string{}
if len(this.AllowIPs) > 0 {
// 忽略错误
_ = json.Unmarshal([]byte(this.AllowIPs), &result)
}
return result
}