@Deprecated public class Resp<T> extends Object implements Serializable
| 构造器和说明 |
|---|
Resp()
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
Resp<T> |
code(int code)
已过时。
|
Resp<T> |
data(T data)
已过时。
|
static Resp<Object> |
error(HttpError error)
已过时。
|
static Resp<Object> |
error(HttpError error,
String alias)
已过时。
|
int |
getCode()
已过时。
|
T |
getData()
已过时。
|
String |
getMsg()
已过时。
|
boolean |
ifok()
已过时。
|
Resp<T> |
msg(String msg)
已过时。
|
static Resp<Object> |
ok()
已过时。
|
static <A> Resp<A> |
ok(A data)
已过时。
|
void |
setCode(int code)
已过时。
|
void |
setData(T data)
已过时。
|
void |
setMsg(String msg)
已过时。
|
String |
toString()
已过时。
|
public int getCode()
public void setCode(int code)
public String getMsg()
public void setMsg(String msg)
public T getData()
public void setData(T data)
public boolean ifok()
public static <A> Resp<A> ok(A data)
Copyright © 2023. All rights reserved.