Documentation ¶
Overview ¶
@Author: Ciusyan 2023/2/14
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeMsg ¶
type CodeMsg struct { // 状态码 StatusCode int32 `json:"status_code"` // 消息 StatusMsg string `json:"status_msg"` }
func NewWithCode ¶
func NewWithCode(code constant.StatusCode) *CodeMsg
func NewWithMsg ¶
func (*CodeMsg) Err ¶
Err returns an immutable error representing s; returns nil if s.StatusCode() is OK.
Click to show internal directories.
Click to hide internal directories.