diff --git a/doc/Auction.py b/doc/Auction.py new file mode 100644 index 00000000..a842e513 --- /dev/null +++ b/doc/Auction.py @@ -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(), + ] + }, + ] diff --git a/doc/BcShop.py b/doc/BcShop.py index c2418934..fe645a2a 100644 --- a/doc/BcShop.py +++ b/doc/BcShop.py @@ -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(), - ] - }, + } ]