whycrzg
2021-02-23 351b9a53cb9ecebdf8f79db0117f540d9c42c2a4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package com.fgkj.dto;
 
import java.io.Serializable;
public class ServiceModel implements Serializable{
    public Integer code=0;        //用于判断请求是否成功        0:不成功        1:成功
    public String msg;            //返回的简单信息
    // public Integer sum=0;       //用于放查询记录的条数
    // public Integer newsum=0;     //用于记录条数
    public Object data;            //用于返回复杂数据    
    // public  String msgN;       //返回单体编号
    // public String msgV;        //返回单体电压
    // public  String msgO;
    // public String msgT;
    // public Float lowCA;        //返回告警阈值
    // public Float lowCH;        //返回更换阈值
    // public Float lowRA;        //返回电导的告警阈值
    // public Float lowRH;        //返回电导的更换阈值
 
    public ServiceModel 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;
    }
 
}