game2006api/doc/Auction.py
aozhiwei 0f2f5452c6 1
2022-03-11 14:31:41 +08:00

85 lines
2.8 KiB
Python

# -*- 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.NftDetail()], '商品信息'],
['page', _common.Page(), '分页信息'],
]
},
{
'name': 'productOnline',
'desc': '上架商品',
'group': 'Auction',
'url': 'webapp/index.php?c=Auction&a=productOnline',
'params': [
['account', '', '钱包账号'],
['token', '', 'token'],
['net_id', '', '网络id'],
['token_id', '', 'token_id'],
],
'response': [
_common.RspHead(),
]
},
{
'name': 'productOffline',
'desc': '上架商品',
'group': 'Auction',
'url': 'webapp/index.php?c=Auction&a=productOffline',
'params': [
['account', '', '钱包账号'],
['token', '', 'token'],
['net_id', '', '网络id'],
['token_id', '', 'token_id'],
],
'response': [
_common.RspHead(),
]
},
{
'name': 'buyProduct',
'desc': '购买商品',
'group': 'Auction',
'url': 'webapp/index.php?c=Auction&a=productBuy',
'params': [
['account', '', '钱包账号'],
['token', '', 'token'],
['net_id', '', '网络id'],
['token_id', '', 'token_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(),
]
},
]