Documentation
¶
Index ¶
Constants ¶
View Source
const ( CodeSuccess = 0 CodeBusiness = 1 CodeUnexpected = -1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Response ¶
type Response struct {
Code int `json:"code"`
Msg string `json:"msg"`
Data any `json:"data,omitempty"`
}
func BusinessError ¶
func UnexpectedError ¶
Click to show internal directories.
Click to hide internal directories.