fix: 响应code=0时不返回
This commit is contained in:
@@ -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