38 lines
1.2 KiB
Python
38 lines
1.2 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
import _common
|
|
|
|
class Fragment(object):
|
|
|
|
def __init__(self):
|
|
self.apis = [
|
|
{
|
|
'name': 'syntheticFragment',
|
|
'desc': '碎片合成',
|
|
'group': 'Fragment',
|
|
'url': 'webapp/index.php?c=Fragment&a=syntheticFragment',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
['item_id', 0, '碎片itemID'],
|
|
],
|
|
'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', [], '英雄或枪械的基本信息']
|
|
]
|
|
},
|
|
|
|
] |