game2006api/doc/ChipPage.py
hujiabin ddfc4280ee 1
2024-02-19 16:40:06 +08:00

66 lines
2.2 KiB
Python

# -*- coding: utf-8 -*-
import _common
class ChipPage(object):
def __init__(self):
self.apis = [
{
'name': 'showChipPage',
'desc': '铭文信息',
'group': 'ChipPage',
'url': 'webapp/index.php?c=ChipPage&a=showChipPage',
'params': [
_common.ReqHead(),
['hero_unnid', '', '英雄唯一id'],
],
'response': [
_common.RspHead(),
['!data', [_common.ChipPage()], '页信息']
]
},{
'name': 'useChip',
'desc': '使用芯片(镶嵌)',
'group': 'ChipPage',
'url': 'webapp/index.php?c=ChipPage&a=useChip',
'params': [
_common.ReqHead(),
['hero_unnid', '', '英雄唯一id'],
['slot_id', '', '卡槽id'],
['chip_unnid', '', '芯片唯一id'],
],
'response': [
_common.RspHead(),
['!data', [_common.ChipPage()], '页信息']
]
},{
'name': 'removeChipOne',
'desc': '芯片移除',
'group': 'ChipPage',
'url': 'webapp/index.php?c=ChipPage&a=removeChipOne',
'params': [
_common.ReqHead(),
['hero_unnid', '', '英雄唯一id'],
['slot_id', '', '卡槽id'],
],
'response': [
_common.RspHead(),
['!data', [_common.ChipPage()], '页信息']
]
},{
'name': 'removeChipAll',
'desc': '芯片移除(一键移除)',
'group': 'ChipPage',
'url': 'webapp/index.php?c=ChipPage&a=removeChipAll',
'params': [
_common.ReqHead(),
['hero_unnid', '', '英雄唯一id'],
],
'response': [
_common.RspHead(),
['!data', [_common.ChipPage()], '页信息']
]
},
]