API文档
开发者可参考开发手册进行API接口开发。
错误码规范
code 第1位(错误提示级别),第2-3位(错误模块),第4-7位(错误代码)| class | property | code | msg |
|---|---|---|---|
| CodeBase | success | 0 | 操作成功 |
| CodeBase | accessTokenError | 1000001 | 访问Toekn错误 |
| CodeBase | userTokenNull | 1000002 | 用户Toekn不能为空 |
| CodeBase | apiUrlError | 1000003 | 接口路径错误 |
| CodeBase | dataSignError | 1000004 | 数据签名错误 |
| CodeBase | userTokenError | 1000005 | 用户Toekn解析错误 |
| Common | passwordError | 1010001 | 登录密码错误 |
| Common | usernameOrPasswordEmpty | 1010002 | 用户名或密码不能为空 |
| Common | registerFail | 1010003 | 注册失败 |
| Common | oldOrNewPassword | 1010004 | 旧密码或新密码不能为空 |
| Common | changePasswordFail | 1010005 | 密码修改失败 |