代码拉取完成,页面将自动刷新
package errorx
var msg map[int32]string
func init() {
msg = make(map[int32]string)
msg[ERRNO_OK] = "OK"
msg[ERRNO_PERM] = "无权限"
msg[ERRNO_INVAL] = "参数错误"
msg[ERRNO_BUSY] = "系统繁忙"
msg[ERRNO_NOTEXIST] = "结果不存在"
msg[ERRNO_INTERNAL] = "系统内部错误"
msg[ERRNO_TIMEOUT] = "请求超时"
msg[ERRNO_UNKNOWN] = "未知错误"
}
func MapErrMsg(code int32) string {
if msg, ok := msg[code]; ok {
return msg
} else {
return "服务器开小差啦,稍后再来试一试"
}
}
func IsCodeErr(code int32) bool {
if _, ok := msg[code]; ok {
return true
} else {
return false
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。