Skip to content

前置说明

默认地址

http://localhost:3000

返回体说明

{
"data": {},
"code": 200,
"success": true,
"message": "SUCCESS"
}

接口说明

以下接口不需要验证token
/mangement/blog/auth/*
/oauth/*
/common/*
/track/*
/h5/blog/post/*
/h5/blog/auth/*

错误码说明

codezhen
W1000查询异常Query exception
W2000操作异常Operation exception
W1001sortBy 只支持 id,createTime,view,comment 排序sortBy only supports id, createTime, view, comment sorting
W1002缺少必传参数 idMissing required parameter id
W1003缺少关键字Missing keywords
W1004缺少用户名或密码Missing username or password
W1005用户不存在User does not exist
W1006账号和密码不匹配Account and password do not match
W1007用户已存在User already exists
W1008重置密码链接失效Reset password link invalid
W1009验证码无效Verification code is invalid
W1010验证码错误Verification code error
500服务器内部错误Internal server error
401Token 失效Token invalid
402查询异常Query exception
404不能为空cannot be empty
405操作异常Operation exception
100用户名,密码,验证码不能为空User name or password cannot be empty
101用户名或密码错误User name or password error
102用户不存在User does not exist
103Token 过期Token expired
104用户名,密码,新密码不能为空Username, password, new password cannot be empty
105旧密码错误Old password error
106查询用户数据异常Query user data exception
107用户 ID 不合法User ID is not valid
108用户名不存在Email does not exist
109邮箱发送失败Email send failed
110查询用户数据异常或邮箱发送失败Query user data exception or email send failed
111Token 无效Token is invalid
112查询 Token 有效期异常Query Token validity period exception
113新密码和 Token 不能为空New password and Token cannot be empty
114修改密码异常Modify password exception
115验证码无效Verification code is invalid
116用户已锁,请联系管理员解锁User is locked, please contact the administrator
117用户已停用,请联系管理员启用User is disabled, please contact the administrator
118用户设置密码链接过期,请联系管理员User status exception, please contact the administrator
119初始化用户,请设置密码Initialize user, please set password
120GitHub 授权登录失败GitHub authorization login failed
121Google 授权登录失败Google authorization login failed
122用户未登录User not logged in
123Google 登录时候,用户不存在When Google logs in, the user does not exist
124sessionId 无效sessionId is invalid
301用户已存在User already exists
302邮箱已存在Email already exists
303邮箱或用户已存在Email already exists
304角色已存在Role already exists
305手机号已存在Phone number already exists
606图片上传异常Image upload exception
607名称重复Name already exists
608该企业已提交认证The enterprise has been verified
701用户名已存在Username already exists
801该分类下有数据,不允许删除There is data under this category, deletion is not allowed