From 912abb2b5281c3bc0cd8ae565cd7432bb00d12e0 Mon Sep 17 00:00:00 2001 From: yedongfu Date: Sat, 10 Jul 2021 23:31:00 +0800 Subject: [PATCH] gid generated from dtmsvr --- dtmcli/utils.go | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 dtmcli/utils.go diff --git a/dtmcli/utils.go b/dtmcli/utils.go new file mode 100644 index 0000000..a1470d7 --- /dev/null +++ b/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"] +}