gid generated from dtmsvr

This commit is contained in:
yedongfu 2021-07-10 23:31:00 +08:00
parent b34701f851
commit 912abb2b52

10
dtmcli/utils.go Normal file
View 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"]
}