1
This commit is contained in:
parent
c5bc98d7b1
commit
3fe90b503f
14
doc/Role.py
14
doc/Role.py
@ -5,20 +5,6 @@ import _common
|
||||
class Role(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'desc': '获取角色信息roleInfo',
|
||||
'group': 'Role',
|
||||
'url': 'webapp/index.php?c=Role&a=roleInfo',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
_common.RoleInfo(),
|
||||
]
|
||||
},
|
||||
]
|
||||
self.apis_ = [
|
||||
{
|
||||
'desc': '获取角色信息roleInfo',
|
||||
|
21
doc/User.py
Normal file
21
doc/User.py
Normal file
@ -0,0 +1,21 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class User(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'desc': '获取用户信息信息info',
|
||||
'group': 'User',
|
||||
'url': 'webapp/index.php?c=User&a=info',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['info',_common.UserInfo(), '用户信息']
|
||||
]
|
||||
},
|
||||
]
|
@ -108,13 +108,27 @@ class RoleInfo(object):
|
||||
['max_seasonScore', 0, '最高积分'],
|
||||
]
|
||||
|
||||
class UserInfo(object):
|
||||
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['name', '', '用户名字'],
|
||||
['head_id', 0, '头像id'],
|
||||
['head_frame', 0, '头像框id'],
|
||||
['level', 0, '等级'],
|
||||
['exp', 0, '经验'],
|
||||
['gold', 0, '金币'],
|
||||
['diamond', 0, '钻石'],
|
||||
['hero_id', 0, '当前使用的英雄ID'],
|
||||
]
|
||||
|
||||
class RobotInfo(object):
|
||||
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['account_id', 0, '机器人account_id'],
|
||||
['name', 0, '机器人名字'],
|
||||
['avatar_url', 0, '机器人头像'],
|
||||
['account_id', '', '机器人account_id'],
|
||||
['name', '', '机器人名字'],
|
||||
['avatar_url', '', '机器人头像'],
|
||||
]
|
||||
|
||||
class RobotMetaInfo(object):
|
||||
|
Loading…
x
Reference in New Issue
Block a user