Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNotFound ¶
Types ¶
type ApiException ¶
type ApiException struct { // 业务异常 BizCode int `json:"code"` Message string `json:"message"` Data any `json:"data"` HttpCode int `json:"http_code"` }
业务自定义异常
func NewAuthFailed ¶
func NewAuthFailed(format string, a ...any) *ApiException
func NewNotFound ¶
func NewNotFound(format string, a ...any) *ApiException
func NewPermissionDeny ¶
func NewPermissionDeny(format string, a ...any) *ApiException
func NewTokenExpired ¶
func NewTokenExpired(format string, a ...any) *ApiException
Click to show internal directories.
Click to hide internal directories.