game2005api/doc/_common.py
aozhiwei c14d089255 1
2021-11-26 16:06:26 +08:00

199 lines
6.8 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# -*- 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 GunInfo(object):
def __init__(self):
self.fields = [
['gun_type_id', 0, '枪支类型'],
['skill_id', 0, '技能id'],
['skill_lv', 0, '技能等级'],
]
class GunSkinInfo(object):
def __init__(self):
self.fields = [
['gun_id', 0, '枪支id'],
['skin_id', 0, '皮肤id'],
['try_expire_at', 0, '试用到期时间(utc时间)'],
]
class RoleInfo(object):
def __init__(self):
self.fields = [
['game_times', 0, '游戏场次'],
['win_times', 0, '胜场'],
['high_kill', 0, '最高击杀'],
['kills', 0, '所有击杀'],
['high_harm', 0, '最高伤害'],
['harm', 0, '所有伤害'],
['add_HP', 0, '所有治疗量'],
['alive_time', 0, '所有生存时间'],
['coin_num', 0, '角色金币'],
['first_fight', 0, '是否是第一次战斗'],
['collect_status', 0, '收藏状态'],
['keys_num', 0, '钥匙数量'],
['kefu_status', 0, '客服奖励状态(0:未领取,1:已领取)'],
['box_num', 0, '空投宝箱数量'],
['diamond_num', 0, '钻石数量'],
['pass_status', 0, '周奖励状态'],
['season_status', 0, '赛季奖励状态'],
['first_gift', 0, '首充礼包领取状态'],
['sum_coin', 0, '累计充值金额'],
['recharge_times_total', 0, '累计充值次数'],
['first_login', 0, '是否第一次登陆'],
['daily_first_login', 0, '每天是否第一次登陆'],
['vip_score', 0, 'vip积分'],
['coin_nums', 0, '角色金币'],
['diamond_nums', 0, '钻石数量'],
['free_box', 0, '每日免费宝箱'],
['season_games', 0, '赛季场次总数'],
['season_win', 0, '赛季胜利场次'],
['sea_max_kill', 0, '赛季最高击杀'],
['sea_max_hart', 0, '赛季最高伤害'],
['sea_avg_kill', 0, '赛季场均淘汰'],
['free_dou_lot_ticket', 0, '免费十倍抽奖券'],
['free_lot_ticket', 0, '免费抽奖券'],
['time', 0, '当前时间'],
['newhand', 0, '新手奖励状态'],
['coin_times', 0, '角色金币'],
['newInfo', 0, '新手引导信息'],
['first_day_ad', 0, '每日看广告次数'],
['integral', 0, '角色积分'],
['share_video_times', 0, '每日分享视频次数'],
['share_video_sums', 0, '分享录频次数'],
['act_video_status', 0, '分享录频奖励领取状态'],
['act_ad_status', 0, '观看广告奖励领取状态'],
['biogame_times', 0, '生化模式场次'],
['shop_view_times', 0, '商店看广告次数'],
['new_first_equip', 0, '新玩家结算武器'],
['newhand2', 0, '新手奖励状态'],
['game_times2', 0, '精英礼包战斗场次'],
['view_times2', 0, '精英礼包视频场次'],
['guildcoin_num', 0, '战队货币'],
['new_second_equip', 0, '新玩家隔天结算武器'],
['rmb_num', 0, '点券数量'],
['max_single_recharge', 0, '最大单次充值数量'],
['passcard', 0, '购买进阶手册状态'],
['rmb_lot_ticket', 0, '充值券数量'],
['daily_max_single', 0, '每日最大单次充值数量'],
['head_kuang_id', 0, '头像框id'],
['daily_score', 0, '每日经验'],
['score', 0, '通行证积分'],
['daily_offline', 0, '每日额外离线奖励次数'],
['user_name', '', '用户名字'],
['avatar_url', '', '头像'],
['create_user', 0, '是否创角'],
['sex', 0, '性别'],
['lv', 0, '等级'],
['lv_exp', 0, '经验'],
['hiid', 0, '头像ID'],
['hero_id', 0, '当前使用的英雄ID'],
['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'],
['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 RobotInfo(object):
def __init__(self):
self.fields = [
['account_id', '', '机器人account_id'],
['name', '', '机器人名字'],
['avatar_url', '', '机器人头像'],
]
class RobotMetaInfo(object):
def __init__(self):
self.fields = [
['name', 0, '机器人名字'],
['avatar_url', 0, '机器人头像'],
]
class DropItemInfo(object):
def __init__(self):
self.fields = [
['item_id', 0, '道具id'],
['item_num', 0, '道具数量'],
['time', 0, '时间'],
]
class RewardItemInfo(object):
def __init__(self):
self.fields = [
['item_id', 0, '道具id'],
['item_num', 0, '道具数量'],
['time', 0, '时间'],
]
class Award(object):
def __init__(self):
self.fields = [
]