数据同步服务-语音
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

140 lines
3.5 KiB

package com.threecloud.dataserviceyy.entity;
import java.io.Serializable;
/**
* 接口请求返回实体类
*
* @author Jonny
* @version 1.0.0
*/
public class ResultEntity implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
/**状态(1:成功,0:失败)*/
private Integer code;
/**返回信息码*/
private String msgno;
/**返回信息*/
private String msg;
/**总数*/
private Long totalcount;
/**当前记录数*/
private Integer datacount;
/**是否存在下一页*/
private Integer pagestate;
/**每页记录数*/
private Integer pagesize;
/**返回内容*/
private Object content;
public ResultEntity() {}
public ResultEntity(Integer code, Object content) {
super();
this.code = code;
this.content = content;
}
public ResultEntity(Integer code, String msg, Object content) {
super();
this.code = code;
this.msg = msg;
this.content = content;
}
public ResultEntity(Integer code, String msgno, String msg, Object content) {
super();
this.code = code;
this.msgno = msgno;
this.msg = msg;
this.content = content;
}
public ResultEntity(Integer code, String msg, Object content, Long totalcount, Integer pagesize) {
super();
this.code = code;
this.msg = msg;
this.content = content;
this.totalcount = totalcount;
this.pagesize = pagesize;
}
public ResultEntity(Integer code, String msgno, String msg, Long totalcount, Integer datacount, Integer pagestate,
Integer pagesize, Object content) {
super();
this.code = code;
this.msgno = msgno;
this.msg = msg;
this.totalcount = totalcount;
this.datacount = datacount;
this.pagestate = pagestate;
this.pagesize = pagesize;
this.content = content;
}
public Integer getCode() {
return code;
}
public void setCode(Integer code) {
this.code = code;
}
public String getMsgno() {
return msgno;
}
public void setMsgno(String msgno) {
this.msgno = msgno;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
public Long getTotalcount() {
return totalcount;
}
public void setTotalcount(Long totalcount) {
this.totalcount = totalcount;
}
public Integer getDatacount() {
return datacount;
}
public void setDatacount(Integer datacount) {
this.datacount = datacount;
}
public Integer getPagestate() {
return pagestate;
}
public void setPagestate(Integer pagestate) {
this.pagestate = pagestate;
}
public Integer getPagesize() {
return pagesize;
}
public void setPagesize(Integer pagesize) {
this.pagesize = pagesize;
}
public Object getContent() {
return content;
}
public void setContent(Object content) {
this.content = content;
}
public enum StatusCode{
/**失败*/
FAILURE(0),
/**成功*/
SUCCESS(1);
private Integer code;
private StatusCode(Integer code) {
this.code = code;
}
public Integer getCode() {
return code;
}
public void setCode(Integer code) {
this.code = code;
}
}
}