game2006api/doc/Fragment.py
2023-03-30 15:40:39 +08:00

68 lines
2.5 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 Fragment(object):
def __init__(self):
self.apis = [
{
'name': 'fragmentList',
'desc': '获取碎片列表',
'group': 'Fragment',
'url': 'webapp/index.php?c=Fragment&a=fragmentList',
'params': [
_common.ReqHead(),
['type', '', '碎片类型1 英雄2 枪械'],
],
'response': [
_common.RspHead(),
['!data', [_common.Fragment()], '芯片列表']
]
},{
'name': 'syntheticFragmentPreview',
'desc': '碎片合成前',
'group': 'Fragment',
'url': 'webapp/index.php?c=Fragment&a=syntheticFragmentPreview',
'params': [
_common.ReqHead(),
['type', '', '类型1 英雄2 枪械'],
],
'response': [
_common.RspHead(),
['!list', [], '英雄或枪械id列表'],
['mint', 0, '费用']
]
},{
'name': 'syntheticFragment',
'desc': '碎片合成',
'group': 'Fragment',
'url': 'webapp/index.php?c=Fragment&a=syntheticFragment',
'params': [
_common.ReqHead(),
['type', '', '类型1 英雄2 枪械'],
['params', '', '普通碎片 item id,用“|”分开item id1|item id2|item id3...'],
['param', '', '特殊碎片 item id'],
['item_id', '', '英雄或枪械 item id'],
],
'response': [
_common.RspHead(),
['property_chg', _common.PropertyChg(), '属性变更'],
['item_id', 0, '道具id']
]
},{
'name': 'showBaseByItemId',
'desc': '查看item的基本信息',
'group': 'Fragment',
'url': 'webapp/index.php?c=Fragment&a=showBaseByItemId',
'params': [
_common.ReqHead(),
['item_id', '', '英雄或枪械的道具id'],
],
'response': [
_common.RspHead(),
['data', [], '英雄或枪械的基本信息']
]
},
]