com.quhaodian.data.rest.domain.AbstractVo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of discover-hibernate-common Show documentation
Show all versions of discover-hibernate-common Show documentation
discover-hibernate_common is a lib for hibernate
package com.quhaodian.data.rest.domain;
import java.io.Serializable;
/**
* 返回对象基础类 包括code和msg内容
* code默认为0
* msg默认为success
*
* @author ada
*/
public class AbstractVo implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
/**
* 状态码
*/
private int code = 0;
/**
* 状态信息 默认为 success
*/
private String msg = "成功";
/**
* 返回状态码
*
* @return 状态码
*/
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
/**
* 返回状态信息
*
* @return 状态信息
*/
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
@Override
public String toString() {
return "BaseVo [code=" + code + ", msg=" + msg + "]";
}
}