From e14fe61da80402c1d39f4f47738e8bab81d61c94 Mon Sep 17 00:00:00 2001 From: Lemon Date: Mon, 8 Jan 2024 15:07:23 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E7=AC=AC=E4=B8=89=E6=96=B9=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0=20CommonResult=20=E5=8F=82=E6=95=B0=E5=8F=98=E5=A4=A7?= =?UTF-8?q?=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jsowell/thirdparty/lianlian/common/CommonResult.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/lianlian/common/CommonResult.java b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/lianlian/common/CommonResult.java index 53822d0e2..71785754e 100644 --- a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/lianlian/common/CommonResult.java +++ b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/lianlian/common/CommonResult.java @@ -1,6 +1,7 @@ package com.jsowell.thirdparty.lianlian.common; +import com.fasterxml.jackson.annotation.JsonProperty; import com.jsowell.thirdparty.lianlian.common.enums.ResultCode; /** @@ -13,22 +14,25 @@ public class CommonResult { /** * 状态码 */ + @JsonProperty(value = "Ret") private long ret; /** * 响应信息 */ + @JsonProperty(value = "Msg") private String msg; /** * 返回数据 */ + @JsonProperty(value = "Data") private T data; + @JsonProperty(value = "Sig") private String sig; protected CommonResult() { - } protected CommonResult(long ret, String msg, T data, String sig) {