加入 pjlink 控制

This commit is contained in:
2025-02-28 20:34:50 +08:00
parent 3a2fc431ac
commit 81f31f15a5
11 changed files with 253 additions and 16 deletions

View File

@@ -13,4 +13,4 @@ func NewConfig(point int) Config {
}
}
var G Config
var C Config

8
config/wait/pjlink.go Normal file
View File

@@ -0,0 +1,8 @@
package wait
type PJLink struct {
Ip string
Port string
Password string
Id string
}

14
config/wait/wait.go Normal file
View File

@@ -0,0 +1,14 @@
package wait
type Config any
func NewConfig(point int) Config {
switch point {
case 2:
return PJLink{}
default:
return nil
}
}
var C Config