game2006api/doc/Market.py
aozhiwei 4bc36b3ba0 1
2023-08-07 17:35:41 +08:00

35 lines
1.5 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', '', '数量过滤(低|高)'],
['seller', '', '出售方钱包地址'],
],
'response': [
_common.RspHead(),
['pagination', _common.Pagination(), '分页信息'],
['!rows', [_common.MarketGoods()], '商品列表'],
]
}
]