game2006api/doc/Chip.py
2022-08-24 16:20:11 +08:00

218 lines
8.3 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 Chip(object):
def __init__(self):
self.apis = [
{
'name': 'chipList',
'desc': '获取芯片列表',
'group': 'Chip',
'url': 'webapp/index.php?c=Chip&a=chipList',
'params': [
_common.ReqHead(),
['type', '', '芯片类型1 英雄2 枪械'],
],
'response': [
_common.RspHead(),
['!data', [_common.Chip()], '芯片列表']
]
},{
'name': 'chipOrder',
'desc': '芯片列表排序',
'group': 'Chip',
'url': 'webapp/index.php?c=Chip&a=chipOrder',
'params': [
_common.ReqHead(),
['type', '', '芯片类型1 英雄2 枪械'],
['order', '', 'asc 升序desc 降序'],
],
'response': [
_common.RspHead(),
['!data', [_common.Chip()], '芯片列表']
]
},{
'name': 'beforeInlay',
'desc': '芯片镶嵌前置,获取可镶嵌的芯片',
'group': 'Chip',
'url': 'webapp/index.php?c=Chip&a=beforeInlay',
'params': [
_common.ReqHead(),
['type', '', '芯片类型1 英雄2 枪械'],
],
'response': [
_common.RspHead(),
['!data', [_common.Chip()], '芯片列表']
]
},{
'name': 'inlayChip',
'desc': '芯片镶嵌',
'group': 'Chip',
'url': 'webapp/index.php?c=Chip&a=inlayChip',
'params': [
_common.ReqHead(),
['type', '', '1 英雄2 枪械'],
['unique_id', '', '英雄或枪械的唯一id'],
['token_id', '', '芯片token id'],
],
'response': [
_common.RspHead(),
['!data', [_common.Hero()], '英雄或枪械加成信息,用英雄举例']
]
},{
'name': 'demountChip',
'desc': '芯片卸下',
'group': 'Chip',
'url': 'webapp/index.php?c=Chip&a=demountChip',
'params': [
_common.ReqHead(),
['type', '', '1 英雄2 枪械'],
['unique_id', '', '英雄或枪械的唯一id'],
['token_id', '', '芯片token id'],
],
'response': [
_common.RspHead(),
['!data', [_common.Hero()], '英雄或枪械加成信息,用英雄举例']
]
},{
'name': 'replaceChip',
'desc': '芯片替换',
'group': 'Chip',
'url': 'webapp/index.php?c=Chip&a=replaceChip',
'params': [
_common.ReqHead(),
['type', '', '1 英雄2 枪械'],
['unique_id', '', '英雄或枪械的唯一id'],
['token_id_new', '', '新芯片token id'],
['token_id_old', '', '被替换的芯片token id'],
],
'response': [
_common.RspHead(),
['!data', [_common.Hero()], '英雄或枪械加成信息,用英雄举例']
]
},{
'name': 'aKeyInlayChip',
'desc': '芯片一键镶嵌',
'group': 'Chip',
'url': 'webapp/index.php?c=Chip&a=aKeyInlayChip',
'params': [
_common.ReqHead(),
['type', '', '1 英雄2 枪械'],
['unique_id', '', '英雄或枪械的唯一id'],
],
'response': [
_common.RspHead(),
['!data', [_common.Hero()], '英雄或枪械加成信息,用英雄举例']
]
},{
'name': 'beforeSynthetic',
'desc': '芯片合成前置操作',
'group': 'Chip',
'url': 'webapp/index.php?c=Chip&a=beforeSynthetic',
'params': [
_common.ReqHead(),
['token_id', '', '新芯片token id'],
],
'response': [
_common.RspHead(),
['!data', [_common.ChipPro()], '芯片信息']
]
},{
'name': 'selectChip',
'desc': '选择合成材料',
'group': 'Chip',
'url': 'webapp/index.php?c=Chip&a=selectChip',
'params': [
_common.ReqHead(),
['token_id', '', '芯片token id参数 例参数1源芯片 参数2材料芯片'],
],
'response': [
_common.RspHead(),
['data', '', '材料芯片的累计价值']
]
},{
'name': 'syntheticChip',
'desc': '芯片合成',
'group': 'Chip',
'url': 'webapp/index.php?c=Chip&a=syntheticChip',
'params': [
_common.ReqHead(),
['token_id_main', '', '源芯片token id'],
['token_id_param', '', '材料芯片token id 例参数1 参数2 参数3'],
],
'response': [
_common.RspHead(),
['!data', [_common.Chip()], '芯片信息']
]
},{
'name': 'isNeedLucky',
'desc': '选择需要幸运值',
'group': 'Chip',
'url': 'webapp/index.php?c=Chip&a=isNeedLucky',
'params': [
_common.ReqHead(),
['token_id', '', '源芯片token id'],
],
'response': [
_common.RspHead(),
]
},{
'name': 'isNotNeedLucky',
'desc': '放弃幸运值',
'group': 'Chip',
'url': 'webapp/index.php?c=Chip&a=isNotNeedLucky',
'params': [
_common.ReqHead(),
['token_id', '', '源芯片token id'],
],
'response': [
_common.RspHead(),
]
},{
'name': 'waitingLucky',
'desc': '幸运值未做选择-待定阶段',
'group': 'Chip',
'url': 'webapp/index.php?c=Chip&a=waitingLucky',
'params': [
_common.ReqHead(),
['token_id', '', '源芯片token id'],
],
'response': [
_common.RspHead(),
]
},{
'name': 'aKeySynthetic',
'desc': '芯片合成一键添加',
'group': 'Chip',
'url': 'webapp/index.php?c=Chip&a=aKeySynthetic',
'params': [
_common.ReqHead(),
['token_id', '', '源芯片token id'],
],
'response': [
_common.RspHead(),
['data', [
['cost', '', '所添加芯片的总累计价值'],
['token_ids', '', '芯片token id 例如token_id1 token_id2 token_id3'],
], '芯片信息']
]
},{
'name': 'lockChip',
'desc': '芯片加锁',
'group': 'Chip',
'url': 'webapp/index.php?c=Chip&a=lockChip',
'params': [
_common.ReqHead(),
['token_id', '', '芯片token id'],
['state', '', '1 加锁 0 释放锁'],
],
'response': [
_common.RspHead()
]
},
]