// Code generated by generator. DO NOT EDIT. package errcode import ( "fmt" ) func GetErrCodeContent(code int) string { switch code { case Ok: return "ok" case ServerError: return "服务器错误" case DBError: return "数据库错误" case NotLogin: return "没有登录,重定向到登录页面" case HeaderParamsInvalid: return "http请求头参数不合法" case TokenInvalid: return "http请求token不合法" case UserOrPassInValid: return "用户名或密码错误" case NoPermission: return "没有权限" case ParamsInvalid: return "参数不合法" case DBInsertDuplicate: return "数据重复" case CDKey_: return "cdkey系统占用100" case CDKeyInvalid: return "cdkey无效" case CDKeyAlreadyUsed: return "cdkey已经使用过" case CDKeyAlreadyExpired: return "cdkey过期" default: return fmt.Sprintf("错误码%v没有找到文本内容", code) } }