sso
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
2025-07-20 18:50:36 +08:00
parent f45442e954
commit 0e5e73be26
6 changed files with 38 additions and 5 deletions

View File

@@ -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, "操作成功");

View File

@@ -40,4 +40,9 @@ public class LoginBody {
*/
private String uuid;
/**
* 回调地址
*/
private String retUrl;
}