# -*- coding: utf-8 -*- class ReqHead(object): def __init__(self): self.params = [ ['account_id', '', '账号id'], ['session_id', '', '会话id'], ] class RspHead(object): def __init__(self): self.fields = [ ['errcode', 0, '错误码'], ['errmsg', '', '错误描述'], ] class GunSkin(object): def __init__(self): self.fields = [ ['gun_id', 0, '枪支id'], ['skin_id', 0, '皮肤id'], ['try_expire_at', 0, '试用到期时间(utc时间)'], ] class GunTalent(object): def __init__(self): self.fields = [ ['type_id', 0, '枪支类型'], ['talent_id', 0, '天赋'], ['talent_lv', 0, '天赋等级'], ] class UserInfo(object): def __init__(self): self.fields = [ ['account_id', '', '账号id'], ['name', '', '用户名字'], ['head_id', 0, '头像id'], ['head_frame', 0, '头像框id'], ['level', 0, '等级'], ['exp', 0, '经验'], ['gold', 0, '金币'], ['diamond', 0, '钻石'], ['hero_id', 0, '当前使用的英雄ID'], ['first_fight', 0, '是否是第一次战斗'], ] class Hero(object): def __init__(self): self.fields = [ ['hero_id', 0, '英雄id'], ['hero_lv', 0, '英雄等级'], ['skin_id', 0, '英雄皮肤id'], ['skill1_lv1', 0, '必杀技等级'], ['skill1_lv2', 0, '躲避技能等级'], ['yoke_lv', 0, '羁绊等级'], ['yoke_exp', 0, '羁绊经验'], ] class HeroSkin(object): def __init__(self): self.fields = [ ['skin_id', 0, '英雄皮肤id'], ['skin_state', 0, '英雄皮肤状态 0=已经购,1 = 试用状态'], ['try_expire_at', 0, '试用到期时间(utc时间)'], ] class Item(object): def __init__(self): self.fields = [ ['item_id', 0, '道具id'], ['item_num', 0, '道具数量'], ['item_state', 0, '英雄皮肤状态 0=已经购,1 = 试用状态'], ['try_expire_at', 0, '试用到期时间(utc时间)'], ] class AwardItem(object): def __init__(self): self.fields = [ ['type', 0, '奖励类型 1:道具 2:英雄 3:英雄皮肤 4:枪械皮肤'], ['union_1', Item(), '道具'], ['union_2', Hero(), '英雄'], ['union_3', HeroSkin(), '英雄皮肤'], ['union_4', GunSkin(), '枪械皮肤'], ] class Award(object): def __init__(self): self.fields = [ ['!items', [AwardItem()], '奖励物品列表'] ]