mxsm opened a new issue, #4406: URL: https://github.com/apache/eventmesh/issues/4406
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/eventmesh/issues?q=is%3Aissue) and found no similar issues. ### Enhancement Request Optimize Body#buildBody method ### Describe the solution you'd like We've introduced a RequestCode enumeration that associates all request codes with their corresponding enum values, avoiding a significant amount of redundant conditional logic. Then, within the `buildBody` method, we use the enum values to select the appropriate processing approach, making the code more concise and readable. ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) * -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
