1 错误
2 警告
3 信息
4 成功
[
/* 通用错误 */
{
"code": "400",
"content": "无效的请求。",
"type": 2
},
{
"code": "401",
"content": "未验证,登录失败。",
"type": 1
}, {
"code": "403",
"content": "未授权,禁止访问。",
"type": 1
}, {
"code": "404",
"content": "{}未找到。",
"type": 2
}, {
"code": "500",
"content": "服务器暂时不可用,请稍后再试。",
"type": 2
}, {
"code": "600",
"content": "会话超时, 请再次登录。",
"type": 2
},
/* 操作信息 */
{
"code": "402001",
"content": "创建成功。",
"type": 4
}, {
"code": "402002",
"content": "更新成功。",
"type": 4
}, {
"code": "402003",
"content": "{}删除成功。",
"type": 4
}, {
"code": "402004",
"content": "导入成功。",
"type": 4
}, {
"code": "402005",
"content": "{}发送成功。",
"type": 4
}, {
"code": "402006",
"content": "确实要删除{}吗?",
"type": 2
}, {
"code": "402007",
"content": "确实要付费给{}吗?",
"type": 2
},
/* 用户信息:101001-101010 */
{
"code": "101001",
"content": "该用户已存在。",
"type": 1
}, {
"code": "101002",
"content": "{}已被锁死。",
"type": 4
}, {
"code": "101003",
"content": "{}已被激活。",
"type": 4
},
/* 密码错误:102001-102010 */
{
"code": "102001",
"content": "密码错误。",
"type": 1
}, {
"code": "102002",
"content": "新密码不能与原始密码相同。",
"type": 1
}, {
"code": "102003",
"content": "新密码与确认密码不一致。",
"type": 1
},
/* 令牌错误:103001-103010 */
{
"code": "103001",
"content": "无效的{}令牌。",
"type": 1
},
{
"code": "103002",
"content": "过期的{}令牌。",
"type": 1
}
]