public class Result {
private 0bject data;
private Integer code;
private String msg;
}
在controller包下新建一个Rsult类和code类
package com.controller;
public class Code {
public static final Integer SAVE_OK =20011;
public static final Integer DELETE_OK =20021;
public static final Integer UPDATE_OK =20031;
public static final Integer GET_OK =20041;
public static final Integer SAVE_ERR =20010;
public static final Integer DELETE_ERR =20020;
public static final Integer UPDATE_ERR =20030;
public static final Integer GET_ERR=20040;
}
package com.controller;
public class Result {
private Object data;
private Integer code;
private String msg;
public Result(Object data, Integer code, String msg) {
this.data = data;
设置统─数据返回结果类public class Result {private 0bject data;private Integer code;private String msg;}在controller包下新建一个Rsult类和code类package com.controller;public class Code { public static final Integer SAVE_OK =20011; public static final In.