shiyj1101
2021-08-05 e57e32fc43da31917912eebb4e47d4e50df1a9e9
java110-bean/src/main/java/com/java110/vo/ResultVo.java
old mode 100644 new mode 100755
@@ -28,6 +28,7 @@
    public static final int CODE_UNAUTHORIZED = 401; //认证失败
    public static final int CODE_WECHAT_UNAUTHORIZED = 1401; //认证失败
    public static final int CODE_BUSINESS_VERIFICATION = 5010; //业务校验未通过
    public static final int ORDER_ERROR = 500; //订单调度异常
@@ -64,6 +65,9 @@
    //用来存放大计、小计金额
    private Object sumTotal;
    //所需数据
    private Object rep;
    public ResultVo() {
    }
@@ -93,6 +97,16 @@
        this.total = total;
        this.data = data;
        this.sumTotal = sumTotal;
    }
    public ResultVo(int records, int total, Object data, Object sumTotal, Object rep) {
        this.code = CODE_OK;
        this.msg = MSG_OK;
        this.records = records;
        this.total = total;
        this.data = data;
        this.sumTotal = sumTotal;
        this.rep = rep;
    }
    public ResultVo(int code, String msg, Object data) {
@@ -171,6 +185,14 @@
    public void setSumTotal(Object sumTotal) {
        this.sumTotal = sumTotal;
    }
    public Object getRep() {
        return rep;
    }
    public void setRep(Object rep) {
        this.rep = rep;
    }
    @Override
@@ -308,4 +330,6 @@
        ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK);
        return responseEntity;
    }
}