优化功能,通知功能,任务功能

This commit is contained in:
PandaGoAdmin
2021-12-24 16:50:06 +08:00
parent d71b0154f6
commit 816791f148
31 changed files with 521 additions and 72 deletions

View File

@@ -1,6 +1,10 @@
package utils
import "testing"
import (
"log"
"strings"
"testing"
)
func TestIdsStrToIdsIntGroup(t *testing.T) {
group := IdsStrToIdsIntGroup("aaa")
@@ -11,3 +15,12 @@ func TestGetRealAddressByIP(t *testing.T) {
ip := GetRealAddressByIP("10.42.0.1")
t.Log(ip)
}
func TestDeptPCIds(t *testing.T) {
ss := strings.Trim("/0/2/6/4", "/")
split := strings.Split(ss, "/")
log.Println("split", split)
ids := DeptPCIds(split, 4, false)
t.Log(ids)
}