mirror of https://github.com/dtm-labs/dtm.git
csharpjavadistributed-transactionsdtmgogolangmicroservicenodejsphpdatabasesagaseatatcctransactiontransactionsxapythondistributed
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
214 B
10 lines
214 B
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"]
|
|
}
|
|
|