50 lines
1.5 KiB
Python
50 lines
1.5 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
import _common
|
|
|
|
class Gun(object):
|
|
|
|
def __init__(self):
|
|
self.apis = [
|
|
{
|
|
'name': 'skinList',
|
|
'desc': '获取枪械皮肤列表',
|
|
'group': 'Gun',
|
|
'url': 'webapp/index.php?c=Gun&a=skinList',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
['!skin_list', [_common.GunSkin()], '枪械皮肤列表']
|
|
]
|
|
},
|
|
{
|
|
'name': 'talentList',
|
|
'desc': '获取枪械天赋列表',
|
|
'group': 'Gun',
|
|
'url': 'webapp/index.php?c=Gun&a=talentList',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
['!talent_list', [_common.GunTalent()], '枪械天赋列表']
|
|
]
|
|
},
|
|
{
|
|
'name': 'upgradeTalentLv',
|
|
'desc': '升级枪械天赋等级',
|
|
'group': 'Gun',
|
|
'url': 'webapp/index.php?c=Gun&a=upgradeTalentLv',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
['talent_id', 0, '天赋id'],
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
['property_chg', _common.PropertyChg(), '属性变更'],
|
|
]
|
|
},
|
|
]
|