public class Result extends Object implements Serializable
| 限定符和类型 | 方法和说明 |
|---|---|
Result |
addCode(int code) |
Result |
addData(Object data) |
Result |
addMsg(String msg) |
static Result |
error() |
static Result |
error(int code,
String content) |
static Result |
error(String content) |
int |
getCode() |
Object |
getData() |
String |
getMsg() |
static Result |
NEW() |
static Result |
success() |
static Result |
success(Object data) |
static Result |
success(String content) |
static Result |
success(String content,
Object data) |
String |
toJsonString() |
Copyright © 2019. All rights reserved.