23 lines
613 B
Python
23 lines
613 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
import _common
|
|
|
|
class ServerSwitch(object):
|
|
|
|
def __init__(self):
|
|
self.apis = [
|
|
{
|
|
'name': 'getSwitch',
|
|
'desc': '获取服务器功能开关',
|
|
'group': 'ServerSwitch',
|
|
'url': 'webapp/index.php?c=&a=ServerSwitch=getSwitch',
|
|
'params': [
|
|
_common.ReqHead(),
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
['!open_list', [0], '开放的功能列表 1:悬赏任务'],
|
|
]
|
|
},
|
|
]
|