update readme
This commit is contained in:
parent
6721d078d8
commit
5a1e20abe9
@ -30,6 +30,8 @@ DTM 是一款跨语言的分布式事务管理方案,在各类微服务架构
|
|||||||
|
|
||||||
### 使用
|
### 使用
|
||||||
``` go
|
``` go
|
||||||
|
const DtmServer = "http://localhost:8080/api/dtmsvr"
|
||||||
|
const startBusi = "http://localhost:8081/api/busi_saga"
|
||||||
gid := common.GenGid() // 生成事务id
|
gid := common.GenGid() // 生成事务id
|
||||||
req := &gin.H{"amount": 30} // 微服务的负荷
|
req := &gin.H{"amount": 30} // 微服务的负荷
|
||||||
// 生成dtm的saga对象
|
// 生成dtm的saga对象
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user