From c8cd72fa2820080c45fd2c513d72d1a9a4eb03c4 Mon Sep 17 00:00:00 2001 From: Number7 <1845377266@qq.com> Date: Sun, 4 Aug 2024 14:13:38 +0800 Subject: [PATCH] =?UTF-8?q?fix():=E5=A2=9E=E5=8A=A0=E5=AE=9E=E4=BE=8B?= =?UTF-8?q?=E6=8F=8F=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 b6a73e5..5fb7937 100644 --- a/src/main/java/com/muyu/common/core/domain/Result.java +++ b/src/main/java/com/muyu/common/core/domain/Result.java @@ -36,10 +36,10 @@ public class Result implements Serializable { public static final int WARN = HttpStatus.WARN; private static final long serialVersionUID = 1L; - @Schema(name = "code",description = "整体返回相应状态码,其余表示请求有异常,详情请见每个接口") + @Schema(defaultValue = "200",type = "Integer",description = "整体返回相应状态码,其余表示请求有异常,详情请见每个接口") private int code; - @Schema(description = "返回状态码的描述") + @Schema(description = "返回状态码的描述",defaultValue = "操作成功",type = "String") private String msg; @Schema(description = "返回数据")