1
This commit is contained in:
parent
041d224471
commit
65f104f3d0
@ -7,10 +7,10 @@ class Auction(object):
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.apis = [
|
self.apis = [
|
||||||
{
|
{
|
||||||
'name': 'searchProduct',
|
'name': 'search',
|
||||||
'desc': '获取出售的商品列表',
|
'desc': '获取出售的商品列表',
|
||||||
'group': 'Auction',
|
'group': 'Auction',
|
||||||
'url': 'webapp/index.php?c=Auction&a=searchProduct',
|
'url': 'webapp/index.php?c=Auction&a=search',
|
||||||
'params': [
|
'params': [
|
||||||
['account', 0, '钱包账号'],
|
['account', 0, '钱包账号'],
|
||||||
['page', 0, '获取第几页数据'],
|
['page', 0, '获取第几页数据'],
|
||||||
@ -53,10 +53,10 @@ class Auction(object):
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'name': 'buyProduct',
|
'name': 'buy',
|
||||||
'desc': '购买商品',
|
'desc': '购买商品',
|
||||||
'group': 'Auction',
|
'group': 'Auction',
|
||||||
'url': 'webapp/index.php?c=Auction&a=productBuy',
|
'url': 'webapp/index.php?c=Auction&a=buy',
|
||||||
'params': [
|
'params': [
|
||||||
['account', '', '钱包账号'],
|
['account', '', '钱包账号'],
|
||||||
['token', '', 'token'],
|
['token', '', 'token'],
|
||||||
@ -65,6 +65,22 @@ class Auction(object):
|
|||||||
],
|
],
|
||||||
'response': [
|
'response': [
|
||||||
_common.RspHead(),
|
_common.RspHead(),
|
||||||
|
['order_id', '', '订单号(errcode = 0的时候,根据订单号客户端定时调用queryOrder接口)查询状态'],
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name': 'queryOrder',
|
||||||
|
'desc': '查询订单状态',
|
||||||
|
'group': 'Auction',
|
||||||
|
'url': 'webapp/index.php?c=Auction&a=queryOrder',
|
||||||
|
'params': [
|
||||||
|
['account', 0, '钱包账号'],
|
||||||
|
['token', '', 'token'],
|
||||||
|
['order_id', 0, '订单id'],
|
||||||
|
],
|
||||||
|
'response': [
|
||||||
|
_common.RspHead(errcode='当errcode!=0的时候客户端不需要再调用(停止定时器)'),
|
||||||
|
['state', 0, '0:订单不存在 1:购买成功 2:交易处理中 3:交易失败'],
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user