game2006api/doc/Market.py
aozhiwei eea4fdfe2c 1
2023-08-07 10:44:08 +08:00

57 lines
2.6 KiB
Python

# -*- coding: utf-8 -*-
import _common
class Market(object):
def __init__(self):
self.apis = [
{
'name': 'productList',
'desc': '获取上架出售的NFTs',
'group': 'Market',
'url': 'webapp/index.php?c=Market&a=productList',
'params': [
['page', 0, '第几页数据'],
['order_method', 0, '排序方式 0:默认排序(当前指向1) 1:上架时间 2:价格 3:星级质量 4:等级 5:能量值 6:生命值 7:攻击力 8:防御力'],
['order_asc', 0, '排序方向, 0:从小到大 1:从大到小'],
['type', 0, '物品类型 1:英雄 2:武器 3:芯片 5:碎片'],
['job_filters', '', '职业过滤(用|分割)'],
['search_filters', '', '搜索过滤(用|分割)'],
['lv_filter', 0, '等级过滤'],
['quality_filter', 0, '品阶顾虑'],
['durability_filter', 0, '能量过滤'],
['price_filter', '', '价格过滤(用|分割)'],
['amount_filter', '', '数量过滤(低|高)']
],
'response': [
_common.RspHead(),
_common.Pagination(),
['!rows', [_common.MarketGoods()], '商品列表'],
]
},
{
'name': 'listMyNfts',
'desc': '获取自己的NFTs',
'group': 'Market',
'url': 'webapp/index.php?c=Market&a=listMyNfts',
'params': [
['start', 0, '分页开始偏移'],
['page_size', 0, '分页大小'],
['order_method', 0, '排序方式 0:默认排序(当前指向1) 1:等级 2:能量值 3:星级 4:tokenid'],
['order_asc', 0, '排序方向, 0:从小到大 1:从大到小'],
['type', 0, '物品类型 1:英雄 2:武器 3:芯片 5:碎片'],
['job_filters', '', '职业过滤(用|分割)'],
['search_filters', '', '搜索过滤(用|分割)'],
['lv_filter', 0, '等级过滤'],
['quality_filter', 0, '品阶顾虑'],
['durability_filter', 0, '能量过滤'],
],
'response': [
_common.RspHead(),
_common.Pagination(),
['!rows', [_common.NftIntro()], 'nft列表'],
]
},
]