From af5176682e0a84fc2f4f0bf39032771657e687a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=B8=9C=E4=BD=B3?= <14614659+dongjia-li@user.noreply.gitee.com> Date: Fri, 9 Aug 2024 19:49:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=A4=BA=E4=BE=8B=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/muyu/common/core/domain/Result.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/muyu/common/core/domain/Result.java b/src/main/java/com/muyu/common/core/domain/Result.java index afc754b..106369a 100644 --- a/src/main/java/com/muyu/common/core/domain/Result.java +++ b/src/main/java/com/muyu/common/core/domain/Result.java @@ -37,10 +37,10 @@ public class Result implements Serializable { private static final long serialVersionUID = 1L; - @Schema(name = "code", description = "整体返回相应状态码200表示成功, 其余表示请求有异常, 详情请见每个接口") + @Schema(defaultValue = "200", type = "Integer", description = "整体返回相应状态码200表示成功, 其余表示请求有异常, 详情请见每个接口") private int code; - @Schema(description = "返回状态码的描述") + @Schema(description = "返回状态码的描述", defaultValue = "操作成功", type = "String") private String msg; @Schema(description = "返回数据")