incubator-seata-go
incubator-seata-go copied to clipboard
optimize: support instance BusinessActionContext outside the TCC try method
What would you like to be added:
- TCC 的prepare方法时,支持用户手动传入 BusinessActionContext 参数,方便用户自定义参数
- TwoPhaseAction 接口的prepare参数由
Prepare(ctx context.Context, params ...interface{}) (bool, error)改为了Prepare(ctx context.Context, params interface{}) (bool, error),方便解析参数 ====en - During the prepare method of TCC, users can manually pass in BusinessActionContext parameters to facilitate user-defined parameters
- TwoPhaseAction interface’s prepare function parameters change from
Prepare(ctx context.Context, params ...interface{}) (bool, error)toPrepare(ctx context.Context, params interface{}) (bool, error), for easy to parse parameters
Why is this needed: