1
This commit is contained in:
parent
02351e053d
commit
0668e9e6b1
81
doc/Auction.py
Normal file
81
doc/Auction.py
Normal file
@ -0,0 +1,81 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class Auction(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'searchProduct',
|
||||
'desc': '获取出售的商品列表',
|
||||
'group': 'Auction',
|
||||
'url': 'webapp/index.php?c=Auction&a=searchProduct',
|
||||
'params': [
|
||||
['account', 0, '钱包账号'],
|
||||
['page', 0, '获取第几页数据'],
|
||||
['sort', '', '排序字段'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!rows', [_common.PreSaleBox()], '商品信息'],
|
||||
['page', _common.Page(), '分页信息'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'productOnline',
|
||||
'desc': '上架商品',
|
||||
'group': 'Auction',
|
||||
'url': 'webapp/index.php?c=Auction&a=productOnline',
|
||||
'params': [
|
||||
['account', '', '钱包账号'],
|
||||
['token', '', 'token'],
|
||||
['net_id', '', '网络id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'productOffline',
|
||||
'desc': '上架商品',
|
||||
'group': 'Auction',
|
||||
'url': 'webapp/index.php?c=Auction&a=productOffline',
|
||||
'params': [
|
||||
['account', '', '钱包账号'],
|
||||
['token', '', 'token'],
|
||||
['net_id', '', '网络id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'buyProduct',
|
||||
'desc': '购买商品',
|
||||
'group': 'Auction',
|
||||
'url': 'webapp/index.php?c=Auction&a=productBuy',
|
||||
'params': [
|
||||
['account', '', '钱包账号'],
|
||||
['token', '', 'token'],
|
||||
['net_id', '', '网络id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'getProductList',
|
||||
'desc': '获取出售的商品列表',
|
||||
'group': 'Auction',
|
||||
'url': 'webapp/index.php?c=Auction&a=productOffline',
|
||||
'params': [
|
||||
['account', '', '钱包账号'],
|
||||
['token', '', 'token'],
|
||||
['net_id', '', '网络id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
]
|
@ -21,61 +21,5 @@ class BcShop(object):
|
||||
['!rows', [_common.PreSaleBox()], '商品信息'],
|
||||
['page', _common.Page(), '分页信息'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'productOnline',
|
||||
'desc': '上架商品',
|
||||
'group': 'BcShop',
|
||||
'url': 'webapp/index.php?c=BcShop&a=productOnline',
|
||||
'params': [
|
||||
['account', '', '钱包账号'],
|
||||
['token', '', 'token'],
|
||||
['net_id', '', '网络id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'productOffline',
|
||||
'desc': '上架商品',
|
||||
'group': 'BcShop',
|
||||
'url': 'webapp/index.php?c=BcShop&a=productOffline',
|
||||
'params': [
|
||||
['account', '', '钱包账号'],
|
||||
['token', '', 'token'],
|
||||
['net_id', '', '网络id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'buyProduct',
|
||||
'desc': '购买商品',
|
||||
'group': 'BcShop',
|
||||
'url': 'webapp/index.php?c=BcShop&a=productBuy',
|
||||
'params': [
|
||||
['account', '', '钱包账号'],
|
||||
['token', '', 'token'],
|
||||
['net_id', '', '网络id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'getProductList',
|
||||
'desc': '获取出售的商品列表',
|
||||
'group': 'BcShop',
|
||||
'url': 'webapp/index.php?c=BcShop&a=productOffline',
|
||||
'params': [
|
||||
['account', '', '钱包账号'],
|
||||
['token', '', 'token'],
|
||||
['net_id', '', '网络id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
}
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user