xyz.proteanbear.capricorn.infrastructure.ResponseDefault Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pb-capricorn-base Show documentation
Show all versions of pb-capricorn-base Show documentation
Capricorn综合应用技术服务平台:基础通用模块项目,包括项目使用的基础库等内容。
The newest version!
package xyz.proteanbear.capricorn.infrastructure;
/**
* 基础层:返回数据结构默认
*
* @author 马强
*/
public class ResponseDefault {
/**
* Status code
*/
private String status;
/**
* return message
*/
private String message;
/**
* data content
*/
private Object data;
/**
* Constructor
*
* @param status status code
* @param message return message
* @param data data content
*/
public ResponseDefault(String status,String message,Object data)
{
this.status=status;
this.message=message;
this.data=data;
}
/**
* constructor
*/
public ResponseDefault()
{
}
/**
* @return status code
*/
public String getStatus()
{
return status;
}
/**
* @param status status code
*/
public void setStatus(String status)
{
this.status=status;
}
/**
* @return return message
*/
public String getMessage()
{
return message;
}
/**
* @param message return message
*/
public void setMessage(String message)
{
this.message=message;
}
/**
* @return data content
*/
public Object getData()
{
return data;
}
/**
* @param data data content
*/
public void setData(Object data)
{
this.data=data;
}
}