From 62cb97ed1ce2207484d8f29eb678842788a99e83 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Thu, 27 Feb 2025 19:30:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=93=8D=E5=BA=94code=3D0=E6=97=B6?= =?UTF-8?q?=E4=B8=8D=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/framework/resp/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/framework/resp/api.go b/src/framework/resp/api.go index 2b21a861..c4c220cf 100644 --- a/src/framework/resp/api.go +++ b/src/framework/resp/api.go @@ -19,8 +19,8 @@ const ( // Resp 响应结构体 type Resp struct { - Code int `json:"code,omitempty"` // 响应状态码 - Msg string `json:"msg,omitempty"` // 响应信息 + Code int `json:"code"` // 响应状态码 + Msg string `json:"msg"` // 响应信息 Data any `json:"data,omitempty"` // 响应数据 }