41 lines
1.2 KiB
Python
41 lines
1.2 KiB
Python
import _common
|
|
|
|
class AAActivity(object):
|
|
|
|
def __init__(self):
|
|
self.apis = [
|
|
{
|
|
'method': 'POST',
|
|
'name': '/api/v1/user/login',
|
|
'desc': '登录',
|
|
'group': '!AAActivity',
|
|
'url': 'https://activity-test.kingsome.cn/api/v1/user/login',
|
|
'headers': _common.MaybeJwtHeader,
|
|
'is_json_params': True,
|
|
'request_params': [
|
|
],
|
|
'params': [
|
|
['token', '', 'token'],
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
['name', '', '用户名'],
|
|
['avatar', '', '头像'],
|
|
]
|
|
},
|
|
{
|
|
'method': 'POST',
|
|
'name': '/api/v1/roll_dice',
|
|
'desc': '掷骰子',
|
|
'group': '!AAActivity',
|
|
'url': 'https://activity-test.kingsome.cn/api/v1/roll_dice',
|
|
'headers': _common.JwtHeader,
|
|
'is_json_params': True,
|
|
'params': [
|
|
],
|
|
'response': [
|
|
_common.RspHead(),
|
|
]
|
|
},
|
|
]
|