Browse Source

gid generated from dtmsvr

pull/6/head
yedongfu 5 years ago
parent
commit
912abb2b52
  1. 10
      dtmcli/utils.go

10
dtmcli/utils.go

@ -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…
Cancel
Save