package com.fgkj.dto;
|
|
import java.io.Serializable;
|
|
public class ServiceModelOnce implements Serializable{
|
public Integer code=0; //用于判断请求是否成功 0:不成功 1:成功
|
private Integer sum;
|
private Integer newsum;
|
public String msg; //返回的简单信息
|
public Object data; //用于返回复杂数据
|
|
public Integer getSum() {
|
return sum;
|
}
|
|
public void setSum(Integer sum) {
|
this.sum = sum;
|
}
|
|
public Integer getNewsum() {
|
return newsum;
|
}
|
|
public void setNewsum(Integer newsum) {
|
this.newsum = newsum;
|
}
|
|
public ServiceModelOnce set(Integer code, Object data){
|
this.code =code;
|
this.data = data;
|
return this;
|
}
|
|
public Integer getCode() {
|
return code;
|
}
|
public void setCode(Integer code) {
|
this.code = code;
|
}
|
public String getMsg() {
|
return msg;
|
}
|
public void setMsg(String msg) {
|
this.msg = msg;
|
}
|
public Object getData() {
|
return data;
|
}
|
public void setData(Object data) {
|
this.data = data;
|
}
|
|
}
|