game2006api/doc/Chip.py
hujiabin 1f7311fefb 1
2024-01-11 15:42:45 +08:00

77 lines
2.7 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(),
],
'response': [
_common.RspHead(),
['!data', [_common.Chip()], '芯片列表']
]
},{
'name': 'chipDetails',
'desc': '芯片详情',
'group': 'Chip',
'url': 'webapp/index.php?c=Chip&a=chipDetails',
'params': [
_common.ReqHead(),
['unique_id', '', 'unique_id'],
],
'response': [
_common.RspHead(),
['!data', [_common.Chip()], '芯片信息']
]
},{
'name': 'upgradeLevelPreview',
'desc': '芯片升级前置操作',
'group': 'Chip',
'url': 'webapp/index.php?c=Chip&a=upgradeLevelPreview',
'params': [
_common.ReqHead(),
['unique_id', '', 'unique_id'],
],
'response': [
_common.RspHead(),
['!data', [_common.ChipPro()], '芯片信息']
]
},{
'name': 'upgradeLevel',
'desc': '芯片升级',
'group': 'Chip',
'url': 'webapp/index.php?c=Chip&a=upgradeLevel',
'params': [
_common.ReqHead(),
['unique_id_main', '', '源芯片token id'],
['unique_id_param', '', '材料芯片token id 例参数1 参数2 参数3'],
],
'response': [
_common.RspHead(),
['!data', [_common.Chip()], '芯片信息'],
['property_chg', _common.PropertyChg(), '属性变更'],
]
},{
'name': 'upgradeQuality',
'desc': '芯片升阶',
'group': 'Chip',
'url': 'webapp/index.php?c=Chip&a=upgradeQuality',
'params': [
_common.ReqHead(),
['chip_uniid', '', '芯片唯一id'],
],
'response': [
_common.RspHead(),
['property_chg', _common.PropertyChg(), '属性变更'],
]
},
]