77 lines
2.7 KiB
Python
77 lines
2.7 KiB
Python
# -*- 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(), '属性变更'],
|
||
]
|
||
},
|
||
]
|