mirror of
https://gitee.com/jzsw-it/yexuejc-base.git
synced 2025-09-28 08:23:20 +08:00
1.1.5
This commit is contained in:
@@ -21,12 +21,40 @@ public class ApiVO implements Serializable {
|
||||
public ApiVO(STATUS status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
/**
|
||||
* 使用默认返回code
|
||||
*
|
||||
* @param status
|
||||
* @param msg
|
||||
*/
|
||||
public ApiVO(STATUS status, String msg) {
|
||||
this.status = status;
|
||||
this.msgs = StrUtil.isNotEmpty(msg) ? new String[]{msg} : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 使用默认返回code
|
||||
* @param status
|
||||
* @param msg
|
||||
*/
|
||||
public ApiVO(STATUS status, String[] msg) {
|
||||
this.status = status;
|
||||
this.msgs = msg;
|
||||
}
|
||||
|
||||
public ApiVO(STATUS status, String code, String msg) {
|
||||
this.status = status;
|
||||
this.code = code;
|
||||
this.msgs = StrUtil.isNotEmpty(msg) ? new String[]{msg} : null;
|
||||
}
|
||||
|
||||
public ApiVO(STATUS status, String code, String[] msg) {
|
||||
this.status = status;
|
||||
this.code = code;
|
||||
this.msgs = msg;
|
||||
}
|
||||
|
||||
public enum STATUS {
|
||||
/**
|
||||
* 成功
|
||||
|
Reference in New Issue
Block a user