This commit is contained in:
@@ -24,6 +24,11 @@ public class R<T> implements Serializable {
|
||||
*/
|
||||
public static final int SUCCESS = 200;
|
||||
|
||||
/**
|
||||
* 跳转
|
||||
*/
|
||||
public static final int FORBIDDEN = 403;
|
||||
|
||||
/**
|
||||
* 失败
|
||||
*/
|
||||
@@ -43,6 +48,9 @@ public class R<T> implements Serializable {
|
||||
* 数据对象
|
||||
*/
|
||||
private T data;
|
||||
public static <T> R<T> f(String url) {
|
||||
return restResult(null, FORBIDDEN, url);
|
||||
}
|
||||
|
||||
public static <T> R<T> ok() {
|
||||
return restResult(null, SUCCESS, "操作成功");
|
||||
|
@@ -40,4 +40,9 @@ public class LoginBody {
|
||||
*/
|
||||
private String uuid;
|
||||
|
||||
/**
|
||||
* 回调地址
|
||||
*/
|
||||
private String retUrl;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user