fix: 响应code=0时不返回

This commit is contained in:
TsMask committed 2025-02-27 19:30:47 +08:00
1 parent df4bf82a6b
commit 62cb97ed1c
1 file changed
+2 -2
+2 -2
View File
@@ -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"` // 响应数据
}