game2005api/doc/Gun.py
2021-11-17 19:21:53 +08:00

67 lines
1.7 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(),
],
'response': [
_common.RspHead(),
['data', _common.GunInfo(), '枪支信息']
]
},
{
'desc': 'getGunAndSkinInfo',
'group': 'Gun',
'url': 'webapp/index.php?c=Gun&a=getGunAndSkinInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'equipGunSkin',
'group': 'Gun',
'url': 'webapp/index.php?c=Gun&a=equipGunSkin',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': 'buyGunSkin',
'group': 'Gun',
'url': 'webapp/index.php?c=Gun&a=buyGunSkin',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]