game2006api/doc/BcShop.py
aozhiwei 83e0be01c9 1
2022-03-11 11:37:07 +08:00

95 lines
3.2 KiB
Python

# -*- coding: utf-8 -*-
import _common
class BcShop(object):
def __init__(self):
self.apis = [
{
'name': 'searchProduct',
'desc': '获取出售的商品列表',
'group': 'BcShop',
'url': 'webapp/index.php?c=BcShop&a=searchProduct',
'params': [
['account', '', '钱包账号'],
['tips', '', 'tips'],
['nonce', '', 'nonce'],
['signature', '', '签名'],
['net_id', '', '网络id'],
],
'response': [
_common.RspHead(),
['token', '', 'token'],
]
},
{
'name': 'productOnline',
'desc': '上架商品',
'group': 'BcShop',
'url': 'webapp/index.php?c=BcShop&a=productOnline',
'params': [
['account', '', '钱包账号'],
['tips', '', 'tips'],
['nonce', '', 'nonce'],
['signature', '', '签名'],
['net_id', '', '网络id'],
],
'response': [
_common.RspHead(),
['token', '', 'token'],
]
},
{
'name': 'productOffline',
'desc': '上架商品',
'group': 'BcShop',
'url': 'webapp/index.php?c=BcShop&a=productOffline',
'params': [
['account', '', '钱包账号'],
['tips', '', 'tips'],
['nonce', '', 'nonce'],
['signature', '', '签名'],
['net_id', '', '网络id'],
],
'response': [
_common.RspHead(),
['token', '', 'token'],
]
},
{
'name': 'buyProduct',
'desc': '购买商品',
'group': 'BcShop',
'url': 'webapp/index.php?c=BcShop&a=productBuy',
'params': [
['account', '', '钱包账号'],
['tips', '', 'tips'],
['nonce', '', 'nonce'],
['signature', '', '签名'],
['net_id', '', '网络id'],
],
'response': [
_common.RspHead(),
['token', '', 'token'],
]
},
{
'name': 'getProductList',
'desc': '获取出售的商品列表',
'group': 'BcShop',
'url': 'webapp/index.php?c=BcShop&a=productOffline',
'params': [
['account', '', '钱包账号'],
['tips', '', 'tips'],
['nonce', '', 'nonce'],
['signature', '', '签名'],
['net_id', '', '网络id'],
],
'response': [
_common.RspHead(),
['token', '', 'token'],
]
},
]