game2006api/doc/Mall.py
aozhiwei 4f1fe94cf4 1
2023-08-07 10:21:38 +08:00

69 lines
2.2 KiB
Python

# -*- coding: utf-8 -*-
import _common
class Mall(object):
def __init__(self):
self.apis = [
{
'name': 'productList',
'desc': '商品列表',
'group': 'Mall',
'url': 'webapp/index.php?c=Mall&a=productList',
'params': [
_common.ReqHead(),
['item_id', '', '道具id,'],
['amount', '', '出售数量'],
['currency', '', "选用币种 目前只支持CEG USDC USDT"],
['price', '', '出售价格'],
],
'response': [
_common.RspHead()
]
},
{
'name': 'sell',
'desc': '出售',
'group': 'Mall',
'url': 'webapp/index.php?c=Mall&a=sell',
'params': [
_common.ReqHead(),
['item_id', '', '道具id,'],
['amount', '', '出售数量'],
['currency', '', "选用币种 目前只支持CEG USDC USDT"],
['price', '', '出售价格'],
],
'response': [
_common.RspHead()
]
},
{
'name': 'cancel',
'desc': '下架物品',
'group': 'Mall',
'url': 'webapp/index.php?c=Mall&a=cancel',
'params': [
_common.ReqHead(),
['goods_uuid', '', '商品唯一id'],
],
'response': [
_common.RspHead()
]
},
{
'name': 'modifyPrice',
'desc': '修改价格',
'group': 'Mall',
'url': 'webapp/index.php?c=Mall&a=modifyPrice',
'params':[
_common.ReqHead(),
['goods_uuid', '', '商品唯一id'],
['price', '', '出售价格USDT'],
],
'response': [
_common.RspHead()
]
},
]