Documentation ¶
Index ¶
Constants ¶
View Source
const ( Err = "9999" // 业务失败 Ok = "0000" // 业务成功 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Msg ¶
type Msg struct { Code string `json:"code"` // 状态码 Message string `json:"resp"` // 附加消息 Data any `json:"data"` // 响应数据 Err string `json:"err"` // 错误信息 }
Msg 请求处理统一返回结果
func (*Msg) SetMessage ¶
Click to show internal directories.
Click to hide internal directories.