func (s *SagaGrpc) Add(action string, compensate string, busiData []byte) *SagaGrpc {
	s.Steps = append(s.Steps, dtmcli.SagaStep{
		Action:     action,
		Compensate: compensate,
		Data:       string(busiData),
	})
	return s
}
Add add a saga step
package dtmgrpc
import (
	context "context"
	"github.com/yedf/dtm/dtmcli"
)
type SagaGrpc struct {
	dtmcli.TransBase
	Steps []dtmcli.SagaStep `json:"steps"`
}
func NewSaga(server string, gid string) *SagaGrpc {
	return &SagaGrpc{TransBase: *dtmcli.NewTransBase(gid, "saga", server, "")}
}