public class BooleanWithMsg extends Object implements Serializable
| 构造器和说明 |
|---|
BooleanWithMsg() |
| 限定符和类型 | 方法和说明 |
|---|---|
static BooleanWithMsg |
fail(String message) |
static BooleanWithMsg |
fail(String message,
int msgCode) |
String |
getMessage() |
int |
getMsgCode() |
boolean |
isSuccess() |
BooleanWithMsg |
setMessage(String message) |
BooleanWithMsg |
setMsgCode(int msgCode) |
BooleanWithMsg |
setSuccess(boolean success) |
static BooleanWithMsg |
success() |
static BooleanWithMsg |
success(String message) |
String |
toString() |
public static BooleanWithMsg success()
public static BooleanWithMsg success(String message)
public static BooleanWithMsg fail(String message)
public static BooleanWithMsg fail(String message, int msgCode)
public boolean isSuccess()
public BooleanWithMsg setSuccess(boolean success)
public String getMessage()
public BooleanWithMsg setMessage(String message)
public int getMsgCode()
public BooleanWithMsg setMsgCode(int msgCode)
Copyright © 2022. All rights reserved.