game2006api/doc/InGameMall.py
hujiabin 230be5d2ad 1
2024-04-09 13:37:54 +08:00

87 lines
3.0 KiB
Python

# -*- coding: utf-8 -*-
import _common
class InGameMall(object):
def __init__(self):
self.apis = [
{
'name': 'productList',
'desc': '商品列表',
'group': 'InGameMall',
'url': 'webapp/index.php?c=InGameMall&a=productList',
'params': [
_common.ReqHead(),
['page', 0, '第几页数据'],
['seller', '', '查询指定账号'],
['order_method', 0, '排序方式 0:默认排序(当前指向1) 1:上架时间 2:价格'],
['order_asc', 0, '排序方向, 0:从小到大 1:从大到小'],
['price_filter', '', '价格过滤(用|分割)'],
['type_filter', '', '类型过滤 1:英雄 2:芯片 3:碎片 4:宝箱'],
['item_filter', '', 'itemId过滤'],
],
'response': [
_common.RspHead(),
['pagination', _common.Pagination(), '分页信息'],
['!rows', [_common.InGameMallGoods()], '商品列表']
]
},
{
'name': 'sell',
'desc': '出售',
'group': 'InGameMall',
'url': 'webapp/index.php?c=InGameMall&a=sell',
'params': [
_common.ReqHead(),
['goods_uniid', '', '道具id'],
['item_id', '', '道具itemId'],
['amount', '', '出售数量'],
['price', '', '出售价格'],
],
'response': [
_common.RspHead()
]
},
{
'name': 'buy',
'desc': '购买',
'group': 'InGameMall',
'url': 'webapp/index.php?c=InGameMall&a=buy',
'params': [
_common.ReqHead(),
['order_id', '', '订单id'],
],
'response': [
_common.RspHead()
]
},
{
'name': 'cancel',
'desc': '下架物品',
'group': 'InGameMall',
'url': 'webapp/index.php?c=InGameMall&a=cancel',
'params': [
_common.ReqHead(),
['order_id', '', '订单id'],
],
'response': [
_common.RspHead()
]
},
{
'name': 'modifyPrice',
'desc': '修改价格',
'group': 'InGameMall',
'url': 'webapp/index.php?c=InGameMall&a=modifyPrice',
'params':[
_common.ReqHead(),
['order_id', '', '订单id'],
['price', '', '价格'],
],
'response': [
_common.RspHead()
]
},
]