incubator-seata-go icon indicating copy to clipboard operation
incubator-seata-go copied to clipboard

optimize: support instance BusinessActionContext outside the TCC try method

Open luky116 opened this issue 3 years ago • 0 comments

What would you like to be added:

  1. TCC 的prepare方法时,支持用户手动传入 BusinessActionContext 参数,方便用户自定义参数
  2. TwoPhaseAction 接口的prepare参数由Prepare(ctx context.Context, params ...interface{}) (bool, error)改为了Prepare(ctx context.Context, params interface{}) (bool, error),方便解析参数 ====en
  3. During the prepare method of TCC, users can manually pass in BusinessActionContext parameters to facilitate user-defined parameters
  4. TwoPhaseAction interface’s prepare function parameters change from Prepare(ctx context.Context, params ...interface{}) (bool, error) to Prepare(ctx context.Context, params interface{}) (bool, error), for easy to parse parameters

Why is this needed:

luky116 avatar Aug 03 '22 16:08 luky116