Documentation ¶
Index ¶
Constants ¶
View Source
const ( Crash_Error = -1 //代码错误 SUCCESS_CODE = 0 //成功的状态码 Token_Error = 4 //Token错误 BAD_LOGIN = 10000 //登录失败 BUSINESS_ERR = 10001 //业务错误 BAD_REQUEST = 10002 //参数错误 PERMISSION_ERR = 10003 //权限校验错误 NULL_ERR = 10004 //无数据错误 CACHE_ERR = 10005 //缓存异常 NoMethod_ERR = 10006 DATABASE_ERR = 10007 //数据库异常 ServerError = 10101 TooManyRequests = 10102 ParamBindError = 10103 AuthorizationError = 10104 UrlSignError = 10105 CacheSetError = 10106 CacheGetError = 10107 CacheDelError = 10108 CacheNotExist = 10109 ResubmitError = 10110 HashIdsEncodeError = 10111 HashIdsDecodeError = 10112 RBACError = 10113 RedisConnectError = 10114 MySQLConnectError = 10115 WriteConfigError = 10116 SendEmailError = 10117 MySQLExecError = 10118 GoVersionError = 10119 AuthorizedCreateError = 20101 AuthorizedListError = 20102 AuthorizedDeleteError = 20103 AuthorizedUpdateError = 20104 AuthorizedDetailError = 20105 AuthorizedCreateAPIError = 20106 AuthorizedListAPIError = 20107 AuthorizedDeleteAPIError = 20108 AdminCreateError = 20201 AdminListError = 20202 AdminDeleteError = 20203 AdminUpdateError = 20204 AdminResetPasswordError = 20205 AdminLoginError = 20206 AdminLogOutError = 20207 AdminModifyPasswordError = 20208 AdminModifyPersonalInfoError = 20209 AdminMenuListError = 20210 AdminMenuCreateError = 20211 AdminOfflineError = 20212 AdminDetailError = 20213 MenuCreateError = 20301 MenuUpdateError = 20302 MenuListError = 20303 MenuDeleteError = 20304 MenuDetailError = 20305 MenuCreateActionError = 20306 MenuListActionError = 20307 MenuDeleteActionError = 20308 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.