diff --git a/apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/enums/ChangeType.java b/apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/enums/ChangeType.java index f063fc1dfb66f4cde3937063910f553fc2c7b2a6..e005bc5f4c85ded182fb6e4e329c27ecf0f17c9b 100644 --- a/apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/enums/ChangeType.java +++ b/apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/enums/ChangeType.java @@ -1,5 +1,5 @@ package com.ctrip.framework.apollo.portal.enums; public enum ChangeType { - ADD, MODIFY, DELETE + ADDED, MODIFIED, DELETED } diff --git a/apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/ReleaseService.java b/apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/ReleaseService.java index 154b8080ea4bec1c4c9187047258fd420494a8bc..0b77eee620fb40bd04234e1b1133db4fb9657e29 100644 --- a/apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/ReleaseService.java +++ b/apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/ReleaseService.java @@ -101,10 +101,10 @@ public class ReleaseService { String secondValue = secondItems.get(key); //added if (secondValue == null) { - compareResult.addEntityPair(ChangeType.DELETE, new KVEntity(key, firstValue), + compareResult.addEntityPair(ChangeType.DELETED, new KVEntity(key, firstValue), new KVEntity(key, secondValue)); } else if (!Objects.equal(firstValue, secondValue)) { - compareResult.addEntityPair(ChangeType.MODIFY, new KVEntity(key, firstValue), + compareResult.addEntityPair(ChangeType.MODIFIED, new KVEntity(key, firstValue), new KVEntity(key, secondValue)); } @@ -116,7 +116,7 @@ public class ReleaseService { String value = entry.getValue(); if (firstItems.get(key) == null) { compareResult - .addEntityPair(ChangeType.ADD, new KVEntity(key, ""), new KVEntity(key, value)); + .addEntityPair(ChangeType.ADDED, new KVEntity(key, ""), new KVEntity(key, value)); } } diff --git a/apollo-portal/src/main/resources/static/config.html b/apollo-portal/src/main/resources/static/config.html index 5166c98396974ca023740812fb41aaebaf576312..2990f65b01024cfbe623f74c241d3630b54c9d52 100644 --- a/apollo-portal/src/main/resources/static/config.html +++ b/apollo-portal/src/main/resources/static/config.html @@ -370,9 +370,9 @@ - 新增 - 更新 - 删除 + 新增 + 更新 + 删除