yyqdbngt opened a new pull request, #3915: URL: https://github.com/apache/rocketmq-dashboard/pull/3915
### Motivation The common `Result<T>` envelope backs every controller response but had no unit coverage at all. This PR adds the first four cases. ### Changes - `Result.ok(data)` carries the payload with the 200/success contract. - `Result.ok()` leaves `data` null. - `Result.error(code, message)` keeps the code and message with null data. - Non-2xx business codes (409, 503) are preserved verbatim. ### Verification - `mvn -B test -Dtest=ResultTest`: 4/4 passed, BUILD SUCCESS -- 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]
