Copilot commented on code in PR #6147:
URL: https://github.com/apache/shenyu/pull/6147#discussion_r2342796564


##########
shenyu-admin/src/main/java/org/apache/shenyu/admin/model/vo/RuleVO.java:
##########
@@ -380,7 +380,7 @@ public static RuleVO buildRuleVO(final RuleDO ruleDO) {
      */
     public static RuleVO buildRuleVO(final RuleDO ruleDO, final 
List<RuleConditionVO> ruleConditions) {
         return new RuleVO(ruleDO.getId(), ruleDO.getSelectorId(), 
ruleDO.getMatchMode(), MatchModeEnum.getMatchModeByCode(ruleDO.getMatchMode()),
-                ruleDO.getName(), ruleDO.getEnabled(), ruleDO.getLoged(), 
ruleDO.getSort(), ruleDO.getHandle(),
+                ruleDO.getRuleName(), ruleDO.getEnabled(), ruleDO.getLoged(), 
ruleDO.getSortCode(), ruleDO.getHandle(),

Review Comment:
   The buildRuleVO method is missing a method overload that accepts only RuleDO 
parameter. The existing buildRuleVO(RuleDO, List<RuleConditionVO>) method 
should have a corresponding single-parameter version for cases where conditions 
are not available.



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

Reply via email to