flypiggyyoyoyo commented on code in PR #805: URL: https://github.com/apache/incubator-seata-go/pull/805#discussion_r2105682072
########## pkg/saga/statemachine/engine/invoker/invoker.go: ########## @@ -19,11 +19,29 @@ package invoker import ( "context" - "github.com/seata/seata-go/pkg/saga/statemachine/statelang/state" + "encoding/json" + "fmt" "reflect" "sync" + + "github.com/seata/seata-go/pkg/saga/statemachine/statelang/state" ) +type JsonParser interface { Review Comment: Parameters need to be serialized and deserialized, so a parser was introduced. Method invocation is decoupled from its concrete implementation by defining an interface and a struct, ensuring maintainable and extensible code. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org For additional commands, e-mail: notifications-h...@seata.apache.org