You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by "healchow (via GitHub)" <gi...@apache.org> on 2023/06/01 09:47:07 UTC

[GitHub] [inlong] healchow commented on a diff in pull request #8137: [INLONG-8136][Manager] Support obtaining resource information used by the current group

healchow commented on code in PR #8137:
URL: https://github.com/apache/inlong/pull/8137#discussion_r1212890577


##########
inlong-manager/manager-web/src/main/java/org/apache/inlong/manager/web/controller/InlongGroupController.java:
##########
@@ -195,4 +196,12 @@ public Response<Boolean> reset(@RequestBody @Validated InlongGroupResetRequest r
         String operator = LoginUserUtils.getLoginUser().getName();
         return Response.success(groupProcessOperation.resetGroupStatus(request, operator));
     }
+
+    @RequestMapping(value = "/group/detail/{groupId}", method = RequestMethod.GET)
+    @ApiOperation(value = "get group detail")
+    @ApiImplicitParam(name = "groupId", value = "Inlong group id", dataTypeClass = String.class, required = true)
+    public Response<Map<String, Object>> detail(@PathVariable String groupId) {

Review Comment:
   It is very strongly recommended not to return a Map in the REST interface because the data in the Map is not intuitive, it is equivalent to a black box, and it is very unfriendly to positioning problems.
   
   The returned data should be abstracted as a POJO, please refer to other interfaces for modification, thank you.



-- 
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: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org