Documentation ¶
Index ¶
Constants ¶
View Source
const ( BadRequestReason = "非法输入" NoAccessReason = "没有权限" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ResponseError ¶
ResponseError 返回的错误
func SetResponseError ¶
func SetResponseError(err error) (r ResponseError)
SetResponseError 通过错误获取返回的json结构
func SetResponseReason ¶
func SetResponseReason(err string) (r ResponseError)
SetResponseReason 直接设置返回错误的信息
Click to show internal directories.
Click to hide internal directories.