All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.quhaodian.data.rest.domain.AbstractVo Maven / Gradle / Ivy

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 + "]";
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy