This commit is contained in:
ls
2025-02-22 13:35:09 +08:00
parent 5664ff3161
commit 9294cdbc3f
5 changed files with 57 additions and 17 deletions

View File

@@ -44,11 +44,16 @@ public class Result<T> implements Serializable {
@Schema(description = "返回数据对象")
private T result;
private Object xhyCount;
private Object lhsCount;
/**
* 不返回数据
*
* @return /**
* 时间戳
*/
@Schema(description = "时间戳")
private long timestamp = System.currentTimeMillis();
private long timestamp = System.currentTimeMillis();
public Result() {
}
@@ -128,6 +133,7 @@ public class Result<T> implements Serializable {
return r;
}
public static <T> Result<T> OK(String msg, T data) {
Result<T> r = new Result<T>();
r.setSuccess(true);