cookieLM

Updated 打电话接口 (markdown)

### 1. 通话接口
### 1. 通话请求接口
接口地址:/v1/app/call/{targetId}?access_token=token
接口地址:/callcenter/app/call/{targetId}/{fishcardId}?access_token=token
Request Method:GET
... ... @@ -9,6 +9,7 @@ Request params:
|参数名 |是否必须 |说明 |参数类型 |
|--------------|----------|--------|----------|
|targetId |是 |被叫的用户id |Long |
|fishcardId |是 |鱼卡id |Long |
|access_token |是 |系统当前登录用户的token |String |
Response Body:
... ... @@ -18,7 +19,8 @@ Response Body:
```
{
"data": {
"callSid": "16090510160925480001030600243044"
"callSid": "16090510160925480001030600243044",
"telephoneNum":"010-xxxxx"
}
},
"returnCode": 200,
... ... @@ -35,21 +37,39 @@ Response Body:
}
```
用户未绑定手机号
用户信息有误
```
{
"returnCode": 400,
"returnMsg": "用户未绑定手机号,请手动拨打010-56469588!"
"returnMsg": "用户信息有误!"
}
```
客服电话不存在
非上课时间,无法使用通话功能
```
{
"returnCode": 400,
"returnMsg": "客服电话不存在,请联系管理员!"
"returnMsg": "非上课时间,无法使用通话功能!"
}
```
老师未绑定手机号:
```
{
"returnCode": 400,
"returnMsg": "您还未绑定手机号,无法电话联系学生,请继续视频呼叫!"
}
```
学生未绑定手机号:
```
{
"returnCode": 400,
"returnMsg": "学生未绑定手机号,无法电话联系学生,请继续视频呼叫!"
}
```
... ... @@ -72,7 +92,7 @@ Response Body:
```
### 2. 客服呼叫
接口地址:/v1/app/callService?access_token=token
接口地址:/callcenter/app/callService?access_token=token
Request Method:GET
... ... @@ -89,7 +109,8 @@ Response Body:
```
{
"data": {
"callSid": "16090510160925480001030600243044"
"callSid": "16090510160925480001030600243044"
"telephoneNum":"010-xxxxx"
}
},
"returnCode": 200,
... ... @@ -106,21 +127,30 @@ Response Body:
}
```
用户信息有误:
```
{
"returnCode": 400,
"returnMsg": "用户信息有误!"
}
```
用户未绑定手机号:
```
{
"returnCode": 400,
"returnMsg": "用户未绑定手机号,请手动拨打010-56469588!"
"returnMsg": "您还未绑定手机号,请用手机拨打客服电话!"
}
```
客服电话不存在
获取不到客服电话
```
{
"returnCode": 400,
"returnMsg": "客服电话不存在,请联系管理员!"
"returnMsg": "无法获取电话号码,请用手机拨打客服电话!"
}
```
... ... @@ -141,8 +171,9 @@ Response Body:
"returnMsg": "呼叫请求的参数有误,请联系管理员!"
}
```
### 3. 取消呼叫
接口地址:/v1/app/callCancel/{callSid}?access_token=token
接口地址:/callcenter/app/callCancel/{callSid}?access_token=token
Request Method:GET
... ... @@ -168,6 +199,15 @@ Response Body:
}
```
系统异常:
```
{
"returnCode": 500,
"returnMsg": "系统内部异常!"
}
```
用户信息有误:
```
... ... @@ -187,7 +227,7 @@ Response Body:
```
### 4. 获取通话状态
接口地址:/v1/app/callState/{callSid}?access_token=token
接口地址:/callcenter/app/callState/{callSid}?access_token=token
Request Method:GET
... ... @@ -259,4 +299,57 @@ Response Body:
"returnCode": 500,
"returnMsg": "系统内部异常!"
}
```
### 5. 获取客服电话
接口地址:/callcenter/app/calledPhoneNum?access_token=token
Request Method:GET
Request params:
|参数名 |是否必须 |说明 |参数类型 |
|--------------|----------|--------|----------|
|access_token |是 |系统当前登录用户的token |String |
Response Body:
获取到客服电话号码:
```
{
"data": {
"calledPhoneNum": "010-xxxx"
}
},
"returnCode": 200,
"returnMsg": "success"
}
```
用户信息有误:
```
{
"returnCode": 400,
"returnMsg": "用户信息有误!"
}
```
无法获取电话号码:
```
{
"returnCode": 400,
"returnMsg": "无法获取电话号码,请用手机拨打客服电话!"
}
```
系统异常:
```
{
"returnCode": 500,
"returnMsg": "系统内部异常!"
}
```
\ No newline at end of file
... ...