From e57e32fc43da31917912eebb4e47d4e50df1a9e9 Mon Sep 17 00:00:00 2001
From: shiyj1101 <1098226878@qq.com>
Date: 星期四, 05 八月 2021 22:56:15 +0800
Subject: [PATCH] 完善格式化功能
---
java110-bean/src/main/java/com/java110/vo/ResultVo.java | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/java110-bean/src/main/java/com/java110/vo/ResultVo.java b/java110-bean/src/main/java/com/java110/vo/ResultVo.java
old mode 100644
new mode 100755
index bf12ff5..ee7ea09
--- a/java110-bean/src/main/java/com/java110/vo/ResultVo.java
+++ b/java110-bean/src/main/java/com/java110/vo/ResultVo.java
@@ -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) {
@@ -173,6 +187,14 @@
this.sumTotal = sumTotal;
}
+ public Object getRep() {
+ return rep;
+ }
+
+ public void setRep(Object rep) {
+ this.rep = rep;
+ }
+
@Override
public String toString() {
return JSONObject.toJSONString(this, SerializerFeature.DisableCircularReferenceDetect, SerializerFeature.WriteDateUseDateFormat);
--
Gitblit v1.8.0