45 lines
1.6 KiB
Python
45 lines
1.6 KiB
Python
import _common
|
|
|
|
class AAActivity(object):
|
|
|
|
def __init__(self):
|
|
self.apis = [
|
|
{
|
|
'method': 'POST',
|
|
'name': '/api/v1/user/login',
|
|
'desc': '登录',
|
|
'group': '!AAActivity',
|
|
'url': 'https://activity-test.kingsome.cn/api/v1/user/login',
|
|
'headers': _common.MaybeJwtHeader,
|
|
'is_json_params': True,
|
|
'request_params': [
|
|
],
|
|
'params': [
|
|
['token', '', 'token'],
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
['name', '', '用户名'],
|
|
['avatar', '', '头像'],
|
|
]
|
|
},
|
|
{
|
|
'method': 'GET',
|
|
'name': '/api/market/product/query_price',
|
|
'desc': '查询在售卖商品价格',
|
|
'group': '!AAActivity',
|
|
'url': 'https://activity-test.kingsome.cn/api/market/product/query_price',
|
|
'params': [
|
|
['net_id', 0, '链id'],
|
|
['contract_address', '', '合约地址'],
|
|
['item_id', '', '道具id'],
|
|
['quality', '', '道具品质(目前只有Hero生效)'],
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
['lowest_price_goods', _common.MarketGoods(), '最低价格商品(如果没则为null)'],
|
|
['highest_price_goods', _common.MarketGoods(), '最高价格商品(如果没则为null)'],
|
|
]
|
|
},
|
|
]
|