线下交易业务接口文档
1 添加线下交易记录
URL:IP:8080/offline/addoffline
参数列表:
参数 |
类型 |
说明 |
测试用例 |
buyinSellout |
int |
买入/卖出(买入填1,卖出填0) |
1 |
goodid |
int |
商品编号(数字编码表示) |
2 |
goodnumber |
int |
商品数量 |
20 |
storeid |
int |
店铺编号 |
15 |
ordertime |
timestamp |
下订单时间 |
2017-08-20 10:39:57 |
brokeragename |
string |
经手人 |
店小二 |
recorderid |
int |
记录人编号(通常是店主) |
1 |
sign_in |
int |
是否签收(签收填1,未签收填0) |
1 |
paystate |
int |
是否付款(是填1,否填0) |
1 |
paytime |
timestamp |
付款时间 |
2017-08-20 10:39:57 |
remarks |
string |
备注 |
无 |
返回结果示例:
{
"status": 400,
"desc": "参数不完整",
"content": null,
"timestamp": 1501485579384
}
{
"status": 401,
"desc": "参数格式错误",
"content": null,
"timestamp": 1501485579384
}
{
"status": 0,
"desc": "OK",
"content": null,
"timestamp": 1501485608994
}
2 删除线下交易记录
URL:IP:8080/offline/deleteofflinebyid
参数列表:
参数 |
类型 |
说明 |
测试用例 |
id |
int |
编号 |
1 |
返回结果示例
{
"status": 400,
"desc": "参数不完整",
"content": null,
"timestamp": 1501485889120
}
{
"status": 401,
"desc": "参数格式错误",
"content": null,
"timestamp": 1501485764802
}
{
"status": 0,
"desc": "OK",
"content": null,
"timestamp": 1501485764802
}
3 修改线下交易记录
URL:IP:8080/offline/modifyofflinebyid
参数列表:
参数 |
类型 |
说明 |
测试用例 |
id |
int |
编号 |
1 |
buyinSellout |
int |
买入/卖出(买入填1,卖出填0) |
1 |
goodid |
int |
商品编号 |
2 |
goodnumber |
int |
商品数量 |
20 |
storeid |
int |
店铺编号 |
2 |
ordertime |
timestamp |
下订单时间 |
2017-08-20 10:39:57 |
brokeragename |
string |
经手人 |
店小二 |
recorderid |
int |
记录人编号(通常是店主) |
1 |
sign_in |
int |
是否签收(签收填1,未签收填0) |
1 |
paystate |
int |
是否付款(是填1,否填0) |
1 |
paytime |
timestamp |
付款时间 |
2017-08-20 10:39:57 |
remarks |
string |
备注 |
无 |
返回结果示例
{
"status": 400,
"desc": "参数不完整",
"content": null,
"timestamp": 1501485889120
}
{
"status": 401,
"desc": "参数格式错误",
"content": null,
"timestamp": 1501484057059
}
4 用id编号查找线下交易记录
URL:IP:8080/offline/getofflinebyid
参数列表:
参数 |
类型 |
说明 |
测试用例 |
id |
int |
编码 |
1 |
{
"status": 400,
"desc": "参数不完整",
"content": null,
"timestamp": 1501485889120
}
{
"status": 0,
"desc": "OK",
"content": null,
"timestamp": 1501485608994
}
5 用记录人的id编号查找线下交易记录
URL:IP:8080/offline/getofflinebyrecorderid
参数列表:
参数 |
类型 |
说明 |
测试用例 |
recorderid |
int |
记录人编码 |
2 |
{
"status": 400,
"desc": "参数不完整",
"content": null,
"timestamp": 1501485889120
}
{
"status": 0,
"desc": "OK",
"content": null,
"timestamp": 1501485608994
}
6 用店铺id编号查找线下交易记录
URL:IP:8080/offline/getofflinebystoreid
参数列表:
参数 |
类型 |
说明 |
测试用例 |
storeid |
int |
店铺编码 |
2 |
{
"status": 400,
"desc": "参数不完整",
"content": null,
"timestamp": 1501485889120
}
{
"status": 0,
"desc": "OK",
"content": null,
"timestamp": 1501485608994
}