@zongwu
2017-04-21T02:10:00.000000Z
字数 8186
阅读 358
海老大
/v1/{ ... }
。 /basic/login
在真实环境下应调用 /v1/basic/login
String
。本接口推荐,客户端、服务端接口传递数据时均使用String
类型。"success": true
,请忽略这个字段,使用 msgCode = 10000
表示成功。
接口名:/basic/login
参数:
1. phone(选填)
2. email(选填)
3. password
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"sessionId":"1234567890"// 登录凭据,前台凭sessionId调用需鉴权的服务
}
}
接口名:/basic/register
参数:
1. phone(选填)
2. email(选填)
3. password
4. verifyCode -- 验证码
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"bool":true
}
}
接口名:/basic/sendVerifyCode
参数:
1. phone(选填)
2. email(选填)
3. type -- 业务场景
---------------------------------
type = register,用于注册时身份验证;
type = forget ,用于找回密码时身份验证;
type = withdraw ,用于申请提现身份验证;
type = transactionPwd,用于设置或修改交易密码;
// TODO 更多待补充
---------------------------------
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"bool":true
}
}
接口名:/user/password/update
参数:
1. sessionId
2. oldPassword
3. newPassword
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"bool":true
}
}
接口名:/user/profile/update
参数:
1. sessionId
2. nickName -- 昵称
3. avatar -- 头像
4. gender -- 性别
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"bool":true
}
}
接口名:/user/profile/fetch
参数:
1. sessionId
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"nickName": "陈俊棋",
"avatar": "www.baidu.com/avatar.png",
"gender": "男",
"isAuthenticate":true // -- 是否实名认证
}
}
接口名:/user/profile/authenticate
参数:
1. sessionId
2. idCard -- 身份证号码
3. realName -- 真实姓名
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"bool":true
}
}
接口名:/user/bank/fetch
参数:
1. sessionId
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"gold": {
"total": 1000.4, // -- 总数量
"active": 500, // -- 激活数量
"freeze": 600.4 // -- 冻结数量
},
"silver": {
"total": 1000.4,
"active": 500,
"freeze": 600.4
},
"rmb": {
"total": 1000.4
}
}
}
接口名:/user/bankCard/update
参数:
1. sessionId
2. bankNum // -- 银行卡号
3. bankCreateVendor // -- 银行卡开户行(如:杭州支行)
4. bankRealName // -- 银行卡开户名
5. bank // -- 银行卡机构(如:中国建设银行)
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"bool":true
}
}
接口名:/user/bank/withdraw
参数:
1. sessionId
2. number // -- 提现金额
3. verifyCode // -- 验证码
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"bool":true
}
}
接口名:/user/bank/withdrawContext
参数:
1. sessionId
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"list": [
{
"date": "2016-09-12 18:09:34",
"money": "304.5",
"status": "审批中"
},
{
"date": "2016-09-19 18:09:34",
"money": "404.5",
"status": "已通过"
}
]
}
}
接口名:/user/bank/recharge
参数:
1. sessionId
2. number // -- 充值金额
3. type // -- 充值类型
----------------------------------
type = money , 充值到余额
type = fx , 分销系统保证金
----------------------------------
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"bool":true
}
}
接口名:/user/transactionPassword/status
参数:
1. sessionId
2. isUsePassword // -- 是否启用交易密码
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"bool":true
}
}
接口名:/user/transactionPassword/update
参数:
1. sessionId
2. password // -- 交易密码
3. verifyCode // -- 验证码
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"bool":true
}
}
接口名:/user/log/recharge
参数:
1. sessionId
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"list": [
{
"date": "2016-09-12 18:09:34",
"money": "304.5",
"status": "已到账"
},
{
"date": "2016-09-19 18:09:34",
"money": "404.5",
"status": "进行中"
}
]
}
}
接口名:/user/log/withdraw
参数:
1. sessionId
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"list": [
{
"date": "2016-09-12 18:09:34",
"money": "304.5",
"status": "已提现"
},
{
"date": "2016-09-19 18:09:34",
"money": "404.5",
"status": "进行中"
}
]
}
}
接口名:/user/log/preRelation/recommend
参数:
1. sessionId
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"list": [
{
"date": "2016-09-19 18:09:34",
"phone": "18668247775",
"level": "高级业务经理"
},
{
"date": "2016-09-19 18:09:34",
"phone": "18668246666",
"level": "中级业务经理"
}
]
}
}
接口名:/user/log/preRelation/develop
参数:
1. sessionId
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"list": [
{
"date": "2016-09-19 18:09:34",
"phone": "18668247775",
"level": "高级业务经理"
},
{
"date": "2016-09-19 18:09:34",
"phone": "18668246666",
"level": "中级业务经理"
}
]
}
}
接口名:/user/vendor/update
参数:
1. sessionId
2. vendorName
3. vendorLogo
4. vendorAddress
5. vendorPhone
6. vendorAuthenticate // -- 营业执照
7. vendorType // -- 商铺类型
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"bool":true
}
}
接口名:/user/vendor/fetch
参数:
1. sessionId
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"vendorName":"海老大",
"vendorLogo":"www.baidu.com/logo.png",
"vendorAddress":"浙江省杭州市周山区群岛",
"vendorPhone":"0571-12345678",
"vendorAuthenticate":"www.baidu.com/authenticate.png",
"vendorType":"餐饮类",
"status":"已审批通过" // 商户认证状态
}
}
接口名:/user/vendor/beanSetting/update
参数:
1. sessionId
2. number // -- 返豆比例
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"bool":true
}
}
接口名:/user/fx/update
参数:
1. sessionId
2. level // -- 业务员等级
3. reason // -- 申请理由
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"bool":true
}
}
接口名:/user/fx/status
参数:
1. sessionId
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"total": 1, // -- 工单完整状态
"list": {
"info": 1, // -- 基本信息认证状态
"vendor": -1, // -- 合作商信息认证状态
"rmb": 1 // -- 保证金信息认证状态
}
}
}
接口名:/user/fx/recommend/fetch
参数:
1. sessionId
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"title": "您有一条推荐信息",
"detail": "陈俊棋推荐您成为中级业务经理!",
}
}
// 呈现对话框即可,确认就跳转到业务员申请表。
接口名:/user/fx/preRelation/recommend
参数:
1. sessionId
2. email or phone
3. userType // 用户类型:1是普通用户,2是业务员,3是商户
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"url":"http://www.baidu.com?rc=123"// 推荐地址,扫这个地址可以快速注册
}
}
// rc = 推荐人的用户 id
接口名:/user/fx/preRelation/develop
参数:
1. sessionId
2. email or phone
3. userType // 用户类型:1是普通用户,2是业务员,3是商户
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"url":"http://www.baidu.com?rc=123"// 发展地址,扫这个地址可以快速注册
}
}
// rc = 推荐人的用户 id
接口名:/user/fx/fetch
参数:
1. sessionId
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"recommend": {
"total": 100,// 共计推荐人数
"business": 24,// 业务员
"vendor": 2,// 商户
"user": 64// 普通用户
},
"develop": {
"total": 100,
"business": 24,
"vendor": 2,
"user": 64
}
}
}
接口名:/manager/approval/business/list
参数:
1. sessionId
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"list": [
{
"uid": 123, // 用户 id
"realname": "张三",
"origin": "用户", // 现在的身份
"approve": "中级业务经理",// 申请的身份
"margin": "保证金已缴纳", // 是否缴纳保证金
"recommend": 67, // 推荐人,若没有传-1
"develop": 34 // 直接上线,若没有传-1
}
]
}
}
接口名:/manager/approval/vendor/list
参数:
1. sessionId
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"list": [
{
"uid": 124,
"vendorName": "海老大",
"vendorLogo": "www.baidu.com/logo.png",
"vendorAddress": "浙江省杭州市周山区群岛",
"vendorPhone": "0571-12345678",
"vendorAuthenticate": "www.baidu.com/authenticate.png",
"vendorType": "餐饮类"
}
]
}
}
接口名:/manager/approval/verified/list
参数:
1. sessionId
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"list": [
{
"uid": 123,
"idCard": "321xxxxxxxxxxxxxxxx",
"realName": " 张三"
}
]
}
}
接口名:/manager/approval/withdraw/list
参数:
1. sessionId
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"list": [
{
"uid": 123,
"gold": {
"total": 1000.4,
"active": 500,
"freeze": 600.4
},
"silver": {
"total": 1000.4,
"active": 500,
"freeze": 600.4
},
"rmb": {
"total": 1000.4
},
"withdraw": 1000,
"date": "2017-09-12 18:00:00"
}
]
}
}
接口名:/manager/approval/recharge/list
参数:
1. sessionId
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": [
{
"uid": 123,
"type": "fx",
"number": 1000,
"date": "2017-09-12 18:00:00"
}
]
}
接口名:/manager/fx/develop/percent
参数:
1. sessionId
2. uid (选填),不填即对全局的修改
3. level_max // 高级
4. level_mid // 中
5. level_min // 低
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"bool":true
}
}
接口名:/manager/fx/recommend/percent
参数:
1. sessionId
2. uid (选填),不填即对全局的修改
3. percent
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"bool":true
}
}
接口名:/manager/fx/develop/levelUp
参数:
1. sessionId
2. uid
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"bool":true
}
}
接口名:/manager/fx/reward
参数:
1. sessionId
2. uid
3. type // 金豆、银豆
4. freeze // 冻结截止日期,距离1970年的时间戳
5. number
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"bool":true
}
}
接口名:/manager/fetch
参数:
1. sessionId
返回:
{
"success": true,
"msgCode": null,
"msgInfo": null,
"model": {
"gold": {
"total": 1000.4,
"active": 500,
"freeze": 600.4
},
"silver": {
"total": 1000.4,
"active": 500,
"freeze": 600.4
},
"rmb": {
"total": 1000.4
},
"total": 100,
"business": 24,
"vendor": 2,
"user": 64
}
}