public class DefaultSoulEntity extends Object implements Serializable
| 构造器和说明 |
|---|
DefaultSoulEntity(Integer code,
String message,
Object data)
Instantiates a new Soul result.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static DefaultSoulEntity |
error(int code,
String msg)
return error .
|
static DefaultSoulEntity |
error(int code,
String msg,
Object data)
return error .
|
static DefaultSoulEntity |
error(String msg)
return error .
|
static DefaultSoulEntity |
success()
return success.
|
static DefaultSoulEntity |
success(int code,
String msg,
Object data)
Success soul web result.
|
static DefaultSoulEntity |
success(Object data)
return success.
|
static DefaultSoulEntity |
success(String msg)
return success.
|
static DefaultSoulEntity |
success(String msg,
Object data)
return success.
|
static DefaultSoulEntity |
timeout(String msg)
return timeout .
|
public static DefaultSoulEntity success()
public static DefaultSoulEntity success(String msg)
msg - msgpublic static DefaultSoulEntity success(Object data)
data - this is result data.public static DefaultSoulEntity success(String msg, Object data)
msg - this ext msg.data - this is result data.public static DefaultSoulEntity success(int code, String msg, Object data)
code - the codemsg - the msgdata - the datapublic static DefaultSoulEntity error(String msg)
msg - error msgpublic static DefaultSoulEntity error(int code, String msg)
code - error codemsg - error msgpublic static DefaultSoulEntity error(int code, String msg, Object data)
code - error codemsg - error msgdata - the datapublic static DefaultSoulEntity timeout(String msg)
msg - error msgCopyright © 2021 dromara. All rights reserved.