This commit is contained in:
aozhiwei 2024-03-13 10:42:43 +08:00
parent 1b38768d80
commit 3b6d00e639
2 changed files with 21 additions and 0 deletions

View File

@ -69,6 +69,19 @@ class User(object):
['info',_common.UserInfo(), '用户信息'],
]
},
{
'name': 'getBattleInfo',
'desc': '获取用户战斗信息',
'group': 'User',
'url': 'webapp/index.php?c=User&a=getBattleInfo',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
['info',_common.UserBattleInfo(), '用户战斗信息'],
]
},
{
'name': 'query',
'desc': '通过名字查询用户信息(精准查询)',

View File

@ -162,6 +162,14 @@ class UserInfo(object):
['!honor_info', [HonorInfo()], '荣誉信息'],
]
class UserBattleInfo(object):
def __init__(self):
self.fields = [
['user_info', [UserInfo()], '用户信息'],
['hero_info', [HeroInfo()], '上阵英雄信息'],
]
class HonorInfo(object):
def __init__(self):