This commit is contained in:
aozhiwei 2024-07-31 17:07:10 +08:00
parent 57c7965468
commit cdcde709dc
2 changed files with 70 additions and 1 deletions

View File

@ -377,4 +377,59 @@ class AAMarket(object):
['!rows', [_common.ChainActivity()], '数据'],
]
},
{
'method': 'GET',
'name': '/api/recharge/goods',
'desc': '充值-商品列表',
'group': '!AAMarket',
'url': 'https://market-test.kingsome.cn/api/recharge/goods',
'is_json_params': False,
'request_params': [
],
'params': [
],
'response': [
_common.RspHead(),
['!rows', [_common.RechargeGoods()], '数据'],
]
},
{
'method': 'POST',
'name': '/api/recharge/buy',
'desc': '充值-购买',
'group': '!AAMarket',
'url': 'https://market-test.kingsome.cn/api/recharge/buy',
'headers': _common.JwtHeader,
'is_json_params': True,
'request_params': [
],
'params': [
['net_id', 0, '链id'],
['goods_id', '', '商品id'],
['account_address', '', '钱包地址(一般为小狐狸)'],
],
'response': [
_common.RspHead(),
['calls', _common.NftTransaction(), '合约调用']
]
},
{
'method': 'POST',
'name': '/api/recharge/history',
'desc': '充值-历史',
'group': '!AAMarket',
'url': 'https://market-test.kingsome.cn/api/recharge/history',
'headers': _common.JwtHeader,
'is_json_params': True,
'request_params': [
],
'params': [
['net_id', 0, '链id'],
],
'response': [
_common.RspHead(),
['page', _common.StreamPage(), '分页信息'],
['!rows', [_common.RechargeHistory()], '数据'],
]
},
]

View File

@ -1828,5 +1828,19 @@ class RechargeGoods(object):
def __init__(self):
self.fields = [
['goods_id', '', '商品id(购买时用)'],
['goods_meta', '', '配置表信息(和excel完全一样)'],
['diamond', 0, '充值所得钻石'],
['currency', '', '货币地址'],
['price', '', '价格'],
]
class RechargeHistory(object):
def __init__(self):
self.fields = [
['order_id', '', '订单id'],
['txhash', '', 'txhash'],
['net_id', 0, '链id'],
['currency', '', '货币地址'],
['amount', '', '货币数'],
['createtime', 0, '成交时间'],
]