Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ResponseErrorBean ¶
func Error ¶
func Error(errCode int64, errMsg string) *ResponseErrorBean
type ResponseSuccessBean ¶
type ResponseSuccessBean struct {
Code uint32 `json:"code"`
Msg string `json:"msg"`
Data any `json:"data,omitempty"`
}
func Success ¶
func Success(data any) *ResponseSuccessBean
Click to show internal directories.
Click to hide internal directories.