game2005api/doc/SeasonCard.py
aozhiwei efe1187307 1
2021-12-03 13:42:37 +08:00

68 lines
2.4 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# -*- coding: utf-8 -*-
import _common
class SeasonCard(object):
def __init__(self):
self.apis = [
{
'name': 'info',
'desc': '获取赛季手册信息',
'group': 'SeasonCard',
'url': 'webapp/index.php?c=SeasonCard&a=info',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
['info', _common.SeasonCard(), '赛季手册信息'],
]
},
{
'name': 'getReward',
'desc': '领取等级奖品',
'group': 'SeasonCard',
'url': 'webapp/index.php?c=SeasonCard&a=getReward',
'params': [
_common.ReqHead(),
['level', 0, '手册等级'],
],
'response': [
_common.RspHead(),
['award', _common.Award(), '奖励信息'],
['property_chg', _common.PropertyChg(), '属性变更'],
]
},
{
'name': 'buyLevel',
'desc': '购买赛季手册等级',
'group': 'SeasonCard',
'url': 'webapp/index.php?c=SeasonCard&a=buyLevel',
'params': [
_common.ReqHead(),
['add_level', 0, '购买的等级数(是新增值)'],
],
'response': [
_common.RspHead(),
['award', _common.Award(), '奖励信息'],
['property_chg', _common.PropertyChg(), '属性变更'],
]
},
{
'name': 'buyGiftPackage',
'desc': '购买赛季手册(礼包)',
'group': 'SeasonCard',
'url': 'webapp/index.php?c=SeasonCard&a=buyGiftPackage',
'params': [
_common.ReqHead(),
['pacakge_id', 0, '礼包id(1普通礼包 2豪华礼包)'],
],
'response': [
_common.RspHead(),
['award', _common.Award(), '奖励信息'],
['property_chg', _common.PropertyChg(), '属性变更'],
]
},
]