|
@@ -32,18 +32,18 @@ public class AdmCreateResponse extends AdmResponse {
|
|
|
this.errorType = errorType;
|
|
|
}
|
|
|
public static AdmCreateResponse failure(String message) {
|
|
|
- return new AdmCreateResponse(FAILURE, message, null, null, null, null, new ArrayList<>(1), null, null, null, null);
|
|
|
+ return new AdmCreateResponse(FAILURE, message, null, null, null, null, null, null, null, null, null);
|
|
|
}
|
|
|
public static AdmCreateResponse failure(String message,String errorType) {
|
|
|
- return new AdmCreateResponse(FAILURE, message,null, null, null, null, new ArrayList<>(1), null, null, new ArrayList<>(), errorType);
|
|
|
+ return new AdmCreateResponse(FAILURE, message,null, null, null, null, null, null, null, new ArrayList<>(), errorType);
|
|
|
}
|
|
|
public static AdmCreateResponse success() {
|
|
|
- return new AdmCreateResponse(SUCCESS, "", 0L,null, 1, 500, new ArrayList<>(1),null,null,null,null);
|
|
|
+ return new AdmCreateResponse(SUCCESS, "", 0L,null, 1, 500, null,null,null,null,null);
|
|
|
}
|
|
|
public static AdmCreateResponse success(String message) {
|
|
|
- return new AdmCreateResponse(SUCCESS, message, 0L,null, 1, 500, new ArrayList<>(1),null,null,null,null);
|
|
|
+ return new AdmCreateResponse(SUCCESS, message, 0L,null, 1, 500, null,null,null,null,null);
|
|
|
}
|
|
|
public static AdmCreateResponse success(List<?> content) {
|
|
|
- return new AdmCreateResponse(SUCCESS, "", CollUtil.isEmpty(content) ? 0L :content.size()*1L,null, 1, 50, CollUtil.isEmpty(content) ? new ArrayList(1): content,null,null,content,null);
|
|
|
+ return new AdmCreateResponse(SUCCESS, "", CollUtil.isEmpty(content) ? 0L :content.size()*1L,null, 1, 50,null ,null,null,CollUtil.isEmpty(content) ? new ArrayList(1): content,null);
|
|
|
}
|
|
|
}
|