game2005api/doc/Shop.py
aozhiwei d53e9c26ca 1
2021-11-26 19:09:06 +08:00

52 lines
1.6 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 Shop(object):
def __init__(self):
self.apis_ = [
{
'name': 'buyHero',
'desc': '购买英雄',
'group': 'Hero',
'url': 'webapp/index.php?c=Hero&a=buyHero',
'params': [
_common.ReqHead(),
['hero_id', '', '英雄id'],
['buy_type', '', '购买类型0指购买英雄 1购买英雄和皮肤'],
],
'response': [
_common.RspHead(),
['award', _common.Award, '奖励信息'],
]
},
{
'name': 'buySkin',
'desc': '购买皮肤',
'group': 'Hero',
'url': 'webapp/index.php?c=Hero&a=buySkin',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
{
'desc': '购买枪支皮肤buyGunSkin',
'group': 'Shop',
'url': 'webapp/index.php?c=Shop&a=buyGunSkin',
'params': [
_common.ReqHead(),
['gun_id', 0, '枪支id'],
['skin_id', 0, '皮肤id'],
['goodsID', 0, '商品id'],
],
'response': [
_common.RspHead(),
['data', _common.GunSkin(), '枪支皮肤信息']
]
},
]