Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteResponse ¶
WriteResponse 将错误或响应数据写入 HTTP 响应主体。 WriteResponse 使用 errno.Decode 方法,根据错误类型,尝试从 err 中提取业务错误码和错误信息.
Types ¶
type ErrResponse ¶
Click to show internal directories.
Click to hide internal directories.