parent
5cfc2c1a49
commit
2b3475f537
@ -0,0 +1,8 @@
|
||||
package com.dsideal.base.Const;
|
||||
|
||||
public class ResConst {
|
||||
public static final Integer SUCCESS = 200;
|
||||
public static final Integer ERROR = 500;
|
||||
public static final Integer OVERDUE = 401;
|
||||
public static final Integer TIMEOUT = 30000;
|
||||
}
|
@ -1,32 +0,0 @@
|
||||
package com.dsideal.base.Const;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Setter
|
||||
@Getter
|
||||
public class RetBean {
|
||||
/**
|
||||
* {
|
||||
* "code": 200,
|
||||
* "data": { },
|
||||
* "msg": "成功"
|
||||
* }
|
||||
*/
|
||||
private int code;
|
||||
private String msg;
|
||||
private JSONObject data;
|
||||
|
||||
public static final Integer SUCCESS = 200;
|
||||
public static final Integer ERROR = 500;
|
||||
public static final Integer OVERDUE = 401;
|
||||
public static final Integer TIMEOUT = 30000;
|
||||
|
||||
public RetBean(int code, String msg, JSONObject data) {
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package com.dsideal.base.Const;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Setter
|
||||
@Getter
|
||||
public class RetJsonArray {
|
||||
private int code;
|
||||
private String msg;
|
||||
private List<Record> data;
|
||||
|
||||
public RetJsonArray(int code, String msg, List<Record> list) {
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
this.data = list;
|
||||
}
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package com.dsideal.base.Const;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Setter
|
||||
@Getter
|
||||
public class RetJsonObject {
|
||||
|
||||
private int code;
|
||||
private String msg;
|
||||
private JSONObject data;
|
||||
|
||||
public RetJsonObject(int code, String msg, JSONObject data) {
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
this.data = data;
|
||||
}
|
||||
}
|
Loading…
Reference in new issue