This commit is contained in:
aozhiwei 2024-09-25 11:48:44 +08:00
commit b3e81eb8bf
2 changed files with 25 additions and 2 deletions

View File

@ -536,7 +536,7 @@ class AAMarket(object):
{
'method': 'POST',
'name': '/api/vip/bind',
'desc': '充值-历史',
'desc': '绑定vip',
'group': '!AAMarket',
'url': 'https://market-test.kingsome.cn/api/vip/bind',
'is_json_params': True,
@ -553,7 +553,7 @@ class AAMarket(object):
{
'method': 'GET',
'name': '/api/vip/info',
'desc': '充值-历史',
'desc': 'vip绑定信息',
'group': '!AAMarket',
'url': 'https://market-test.kingsome.cn/api/vip/info',
'headers': _common.JcJwtHeader,
@ -564,6 +564,20 @@ class AAMarket(object):
['info', _common.VipInfo(), 'vip信息'],
]
},
{
'method': 'GET',
'name': '/api/vip/details',
'desc': 'vip等级详情',
'group': '!AAMarket',
'url': 'https://market-test.kingsome.cn/api/vip/details',
'headers': _common.JcJwtHeader,
'params': [
],
'response': [
_common.RspHead(),
['info', _common.VipLevelInfo(), 'vip等级信息'],
]
},
{
'method': 'GET',
'name': '/api/server_switch',

View File

@ -1925,3 +1925,12 @@ class VipInfo(object):
['bind_passport_address', 0, '绑定的passport地址'],
['bind_email', 0, '绑定的email地址'],
]
class VipLevelInfo(object):
def __init__(self):
self.fields = [
['level', 0, '当前等级'],
['curpoint', 0, '当前点数'],
['target', 0, '升级所需点数,如为-1则已是最高等级'],
]