OneBase API文档
此文档为OneBase官方网站提供数据接口,仅供参考,开发者可参考开发手册进行API接口开发。
错误码规范
code 第1位(错误提示级别),第2-3位(错误模块),第4-7位(错误代码)| class | property | code | msg |
|---|---|---|---|
| Banner | Api | 1990000 | api管理(占个坑) |
| Banner | NameRepeat | 1990001 | 土地名称重复 |
| Cart | Api | 1990000 | api管理(占个坑) |
| Cart | NameRepeat | 1990001 | 名称重复 |
| Cashback | Api | 1990000 | api管理(占个坑) |
| Cashback | NameRepeat | 1990001 | 名称重复 |
| CodeBase | success | 1 | 操作成功 |
| CodeBase | accessTokenError | 1000001 | 访问Toekn错误 |
| CodeBase | userTokenNull | 1000002 | 用户Toekn不能为空 |
| CodeBase | apiUrlError | 1000003 | 接口路径错误 |
| CodeBase | dataSignError | 1000004 | 数据签名错误 |
| CodeBase | userTokenError | 1000005 | 用户Toekn解析错误 |
| CodeBase | actionError | 1000006 | action为空 |
| CodeBase | userAccessError | 1020000 | 用户未授权,请联系客服~! |
| CodeBase | userNodeError | 1020013 | 用户入口权限获取失败,请联系客服~! |
| CodeBase | ParamEmpty | 1020014 | 参数丢失 |
| CodeBase | companyEmpty | 1020015 | 公司组织未设置! |
| CodeBase | empty | 1020216 | 数据为空! |
| CodeBase | dataEmpty | 1020217 | 暂无数据! |
| CodeBase | idEmpty | 1020218 | ID为空! |
| CodeBase | idFail | 1020219 | ID非法! |
| CodeBase | storeIdEmpty | 1020220 | storeId缺失! |
| CodeBase | merchantIdEmpty | 1020221 | merchantId缺失! |
| Common | passwordError | 1010001 | 登录密码错误 |
| Common | usernameOrPasswordEmpty | 1010002 | 用户名或密码不能为空 |
| Common | registerFail | 1010003 | 注册失败 |
| Common | oldOrNewPassword | 1010004 | 旧密码或新密码不能为空 |
| Common | changePasswordFail | 1010005 | 密码修改失败 |
| Common | ParamEmpty | 1010006 | 参数不能为空! |
| Common | sendSmsCodeFail | 1010007 | 发送验证码失败! |
| Common | SmsCodeError | 1010008 | 验证码错误! |
| Common | appAuthFail | 1010009 | openid获取失败! |
| Common | addFail | 1010010 | 新增失败 |
| Common | editFail | 1010011 | 编辑失败 |
| Common | delFail | 1010012 | 删除失败 |
| Common | idError | 1010013 | id获取失败 |
| Common | merchantIdError | 1010013 | merchant_id获取失败 |
| Common | infoFail | 1010014 | 信息获取失败 |
| Config | Api | 1990000 | api管理(占个坑) |
| Config | NameRepeat | 1990001 | 土地名称重复 |
| Discount | Api | 1990000 | api管理(占个坑) |
| Discount | NameRepeat | 1990001 | 土地名称重复 |
| Extmemberaddress | Api | 1990000 | api管理(占个坑) |
| Extmemberaddress | NameRepeat | 1990001 | 名称重复 |
| Extsell | Api | 1990000 | api管理(占个坑) |
| Extsell | NameRepeat | 1990001 | 名称重复 |
| Foodcode | bindRepeat | 3000001 | 点餐码已被绑定! |
| Foodcode | bindError | 3000001 | 没有查询到相关订单! |
| Foodcodeorder | codeError | 2000001 | 点餐码获取失败 |
| Foodcodeorder | priceError | 2000002 | 点餐码价格获取失败 |
| Goods | Api | 1990000 | api管理(占个坑) |
| Goods | NameRepeat | 1990001 | 名称重复 |
| Merchant | Api | 1990000 | api管理(占个坑) |
| Merchant | NameRepeat | 1990001 | 土地名称重复 |
| Notice | Api | 1990000 | api管理(占个坑) |
| Notice | NameRepeat | 1990001 | 土地名称重复 |
| Order | Api | 1990000 | api管理(占个坑) |
| Order | NameRepeat | 1990001 | 名称重复 |
| Page | Api | 1990000 | api管理(占个坑) |
| Page | NameRepeat | 1990001 | 土地名称重复 |
| Pageset | Api | 1990000 | api管理(占个坑) |
| Pageset | NameRepeat | 1990001 | 名称重复 |
| Pay | actionError | 1990000 | action不能为空 |
| Pay | parameter | 1990001 | 参数不能为空 |
| Pay | infoFail | 1990002 | 订单列表获取失败 |
| Pay | ExtractSign | 1990003 | 提货码不能为空 |
| Queue | Api | 1990000 | api管理(占个坑) |
| Queue | NameRepeat | 1990001 | 土地名称重复 |
| Refund | OrderError | 4010001 | 该订单无法退款 |
| Store | Api | 1990000 | api管理 |
| Store | NameRepeat | 1990001 | 名称重复 |
| Store | infoFail | 1990002 | 信息获取失败 |
| Store | addFail | 1990003 | 开通失败 |
| Table | Api | 1990000 | api管理(占个坑) |
| Table | NameRepeat | 1990001 | 土地名称重复 |
| Visitor | Api | 1990000 | api管理(占个坑) |
| Visitor | NameRepeat | 1990001 | 土地名称重复 |
| WxError | OK | 0 | 成功! |
| WxError | IllegalAesKey | -41001 | encodingAesKey 非法 |
| WxError | IllegalIv | -41002 | encodingIv 非法 |
| WxError | IllegalBuffer | -41003 | aes 解密失败 |
| WxError | DecodeBase64Error | -41004 | 解密后得到的buffer非法 |