zhou-hao 7 vuotta sitten
vanhempi
commit
cd7c70542b

+ 0 - 4
hsweb-authorization/hsweb-authorization-oauth2/hsweb-authorization-oauth2-client/src/main/java/org/hswebframework/web/authorization/oauth2/client/simple/provider/HswebResponseConvertSupport.java

@@ -54,10 +54,6 @@ public class HswebResponseConvertSupport implements ResponseConvertForProviderDe
         this.authenticationBuilderFactory = authenticationBuilderFactory;
     }
 
-    public static void main(String[] args) {
-        System.out.println(ResponseMessage.class.isAssignableFrom(new ResponseMessage().getClass()));
-    }
-
     public Object tryConvertToObject(String json, Class type) {
         if (json.startsWith("{")) {
             if(ResponseMessage.class.isAssignableFrom(type)){

+ 16 - 0
hsweb-commons/hsweb-commons-controller/src/main/java/org/hswebframework/web/controller/message/ResponseMessage.java

@@ -230,4 +230,20 @@ public class ResponseMessage<T> implements Serializable {
         return includes;
     }
 
+    public void setMessage(String message) {
+        this.message = message;
+    }
+
+    public void setResult(T result) {
+        this.result = result;
+    }
+
+    public void setStatus(int status) {
+        this.status = status;
+    }
+
+    public void setTimestamp(Long timestamp) {
+        this.timestamp = timestamp;
+    }
+
 }