YongGoose commented on code in PR #7157:
URL: https://github.com/apache/incubator-seata/pull/7157#discussion_r1950413174


##########
namingserver/src/main/java/org/apache/seata/namingserver/controller/NamingController.java:
##########
@@ -113,14 +115,18 @@ public Result<String> changeGroup(@RequestParam String 
namespace,
                                       @RequestParam String clusterName,
                                       @RequestParam String unitName,
                                       @RequestParam String vGroup) {
-
         Result<String> addGroupResult = namingManager.changeGroup(namespace, 
vGroup, clusterName, unitName);
         if (!addGroupResult.isSuccess()) {
             return addGroupResult;
         }
         return new Result<>("200", "change vGroup " + vGroup + "to cluster " + 
clusterName + " successfully!");
     }
 
+    @GetMapping("/namespace")
+    public SingleResult<Map<String, NamespaceVO>> namespaces() {

Review Comment:
   My intention was not to replace `NamespaceVO` with a `DTO` but rather to 
replace `Map<String, NamespaceVO>` with a `DTO`.
   
   As you mentioned, `DTO` is meant for transferring data between layers, so I 
thought it would be appropriate.



-- 
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

Reply via email to