public class Resp<T> extends Object implements Serializable
Resp()
Resp<T>
code(int code)
data(T data)
static Resp<Object>
error(HttpError error)
error(HttpError error, String alias)
boolean
ifok()
msg(String msg)
ok()
static <A> Resp<A>
ok(A data)
String
toString()
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public Resp()
public Resp<T> data(T data)
public Resp<T> code(int code)
public Resp<T> msg(String msg)
public boolean ifok()
public String toString()
toString
Object
public static Resp<Object> ok()
public static <A> Resp<A> ok(A data)
public static Resp<Object> error(HttpError error)
public static Resp<Object> error(HttpError error, String alias)
Copyright © 2021. All rights reserved.