game2005api/doc/Gun.py
aozhiwei c5bc98d7b1 1
2021-11-25 10:27:20 +08:00

77 lines
2.2 KiB
Python

# -*- coding: utf-8 -*-
import _common
class Gun(object):
def __init__(self):
self.apis_ = [
{
'desc': '获取枪支信息-getGunInfo',
'group': 'Gun',
'url': 'webapp/index.php?c=Gun&a=getGunInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
['!data', [_common.GunInfo()], '枪支信息列表']
]
},
{
'desc': '升级枪支技能等级skillLvUp',
'group': 'Gun',
'url': 'webapp/index.php?c=Gun&a=skillLvUp',
'params': [
_common.ReqHead(),
['skill_id', 0, '天赋id'],
['skill_type_id', 0, '枪支类型'],
],
'response': [
_common.RspHead(),
['data', _common.GunInfo(), '枪支信息']
]
},
{
'desc': '获取枪支和皮肤信息getGunAndSkinInfo',
'group': 'Gun',
'url': 'webapp/index.php?c=Gun&a=getGunAndSkinInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
['!data', _common.GunSkinInfo(), '枪支皮肤信息']
]
},
{
'desc': '装备枪支皮肤equipGunSkin',
'group': 'Gun',
'url': 'webapp/index.php?c=Gun&a=equipGunSkin',
'params': [
_common.ReqHead(),
['gun_id', 0, '枪支id'],
['skin_id', 0, '皮肤id'],
],
'response': [
_common.RspHead(),
['data', _common.GunSkinInfo(), '枪支皮肤信息']
]
},
{
'desc': '购买枪支皮肤buyGunSkin',
'group': 'Gun',
'url': 'webapp/index.php?c=Gun&a=buyGunSkin',
'params': [
_common.ReqHead(),
['gun_id', 0, '枪支id'],
['skin_id', 0, '皮肤id'],
['goodsID', 0, '商品id'],
],
'response': [
_common.RspHead(),
['data', _common.GunSkinInfo(), '枪支皮肤信息']
]
},
]