fix: 响应code=0时不返回
This commit is contained in:
1 parent
df4bf82a6b
commit
62cb97ed1c
1 file changed
+2
-2
@@ -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"` // 响应数据
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user