fix: 响应code=0时不返回
This commit is contained in:
@@ -19,8 +19,8 @@ const (
|
|||||||
|
|
||||||
// Resp 响应结构体
|
// Resp 响应结构体
|
||||||
type Resp struct {
|
type Resp struct {
|
||||||
Code int `json:"code,omitempty"` // 响应状态码
|
Code int `json:"code"` // 响应状态码
|
||||||
Msg string `json:"msg,omitempty"` // 响应信息
|
Msg string `json:"msg"` // 响应信息
|
||||||
Data any `json:"data,omitempty"` // 响应数据
|
Data any `json:"data,omitempty"` // 响应数据
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user