Browse Source

multi(records,total)方法改成公有的

lixing 3 years ago
parent
commit
f4f1f48bee

+ 1 - 1
apm-common/src/main/java/com/persagy/apm/common/utils/ResultHelper.java

@@ -90,7 +90,7 @@ public class ResultHelper {
      * @param <T>
      * @return
      */
-    private static <T> CommonResult<PageList<T>> multi(List<T> records, long total) {
+    public static <T> CommonResult<PageList<T>> multi(List<T> records, long total) {
         PageList<T> pageList = new PageList<>(records, total);
         return new CommonResult(ResponseCode.A00000.getCode(), ResponseCode.A00000.getDesc(), pageList);
     }