64 lines
1.9 KiB
Python
64 lines
1.9 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
import _common
|
|
|
|
class Mall(object):
|
|
|
|
def __init__(self):
|
|
self.apis = [
|
|
{
|
|
'name': 'productOnline',
|
|
'desc': '出售NFT',
|
|
'group': 'Mall',
|
|
'url': 'webapp/index.php?c=Mall&a=productOnline',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
['item_id', '', '道具id,'],
|
|
['amount', 0, '出售数量'],
|
|
],
|
|
'response': [
|
|
_common.RspHead()
|
|
]
|
|
},
|
|
{
|
|
'name': 'productOffline',
|
|
'desc': '下架物品',
|
|
'group': 'Mall',
|
|
'url': 'webapp/index.php?c=Mall&a=productOffline',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead()
|
|
]
|
|
},
|
|
{
|
|
'name': 'modifyPrice',
|
|
'desc': '修改价格',
|
|
'group': 'Mall',
|
|
'url': 'webapp/index.php?c=Mall&a=modifyPrice',
|
|
'params':[
|
|
_common.ReqHead(),
|
|
['goods_uuid', '', '出售的idx'],
|
|
['s_price', '', '出售价格USDT'],
|
|
],
|
|
'response': [
|
|
_common.RspHead()
|
|
]
|
|
},
|
|
{
|
|
'name': 'buy',
|
|
'desc': '购买商品 (金币购买)',
|
|
'group': 'Mall',
|
|
'url': 'webapp/index.php?c=Mall&a=buy',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
['goods_uuid', '', '出售的idx'],
|
|
['s_price', '', '出售价格USDT'],
|
|
],
|
|
'response': [
|
|
_common.RspHead()
|
|
]
|
|
},
|
|
]
|