gid generated from dtmsvr
This commit is contained in:
parent
b34701f851
commit
912abb2b52
10
dtmcli/utils.go
Normal file
10
dtmcli/utils.go
Normal file
@ -0,0 +1,10 @@
|
||||
package dtmcli
|
||||
|
||||
import "github.com/yedf/dtm/common"
|
||||
|
||||
func GenGid(server string) string {
|
||||
res := common.MS{}
|
||||
_, err := common.RestyClient.R().SetResult(&res).Get(server + "/newGid")
|
||||
e2p(err)
|
||||
return res["gid"]
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user