game2005api/doc/Hero.py
aozhiwei 3908a36e53 1
2021-11-26 19:33:14 +08:00

76 lines
2.3 KiB
Python

# -*- coding: utf-8 -*-
import _common
class Hero(object):
def __init__(self):
self.apis = [
{
'name': 'heroList',
'desc': '获取英雄列表',
'group': 'Hero',
'url': 'webapp/index.php?c=Hero&a=heroList',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
['!hero_list', [_common.Hero()], '英雄列表']
]
},
{
'name': 'skinList',
'desc': '获取英雄皮肤列表',
'group': 'Hero',
'url': 'webapp/index.php?c=Hero&a=skinList',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
['!skin_list', [_common.HeroSkin()], '英雄皮肤列表']
]
},
{
'name': 'takeonSkin',
'desc': '穿戴皮肤',
'group': 'Hero',
'url': 'webapp/index.php?c=Hero&a=takonSkin',
'params': [
_common.ReqHead(),
['hero_id', 0, '英雄id'],
['skin_id', 0, '皮肤id'],
],
'response': [
_common.RspHead(),
]
},
{
'name': 'upgradeSkill',
'desc': '升级技能',
'group': 'Hero',
'url': 'webapp/index.php?c=Hero&a=upgradeSkill',
'params': [
_common.ReqHead(),
['hero_id', 0, '英雄id'],
],
'response': [
_common.RspHead(),
]
},
{
'name': 'useYokeItem',
'desc': '使用羁绊道具',
'group': 'Hero',
'url': 'webapp/index.php?c=Hero&a=useYokeItem',
'params': [
_common.ReqHead(),
['hero_id', 0, '英雄id'],
],
'response': [
_common.RspHead(),
]
},
]