Browse Source

增加返回结果默认的值:分页信息,条数

lvxianyun 3 years ago
parent
commit
8393c47e01
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/java/com/persagy/proxy/adm/request/AdmResponse.java

+ 2 - 2
src/main/java/com/persagy/proxy/adm/request/AdmResponse.java

@@ -35,7 +35,7 @@ public class AdmResponse {
     private List<?> content;
 
     public static AdmResponse success() {
-        return new AdmResponse(SUCCESS, null, 0L, 1, 500, null);
+        return new AdmResponse(SUCCESS, "", 0L, 1, 500, null);
     }
 
     public static AdmResponse failure(String message) {
@@ -43,7 +43,7 @@ public class AdmResponse {
     }
 
     public static AdmResponse success(List<?> content) {
-        return new AdmResponse(SUCCESS, null, CollUtil.isEmpty(content) ? 0L :content.size()*1L, 1, 500, content);
+        return new AdmResponse(SUCCESS, "", CollUtil.isEmpty(content) ? 0L :content.size()*1L, 1, 500, content);
     }
 
     /**