49 lines
1.6 KiB
Python
49 lines
1.6 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': '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(), '属性变更'],
|
|
]
|
|
},
|
|
]
|