// 定义请求参数 export interface ReqHcInfo { } // 定义返回字段 export interface ResHcInfo { chapterId:number //章节ID tili:number //体力 lastTime:number //最后一次结算体力时间 list:HcInfoList //格子列表 } export interface HcInfoList { [gzid: string]: HcInfoGeziInfo; } export interface HcInfoGeziInfo { type:HcType //具体物品类型 unlock:HcUnlock //解锁状态 correlationId:number //物品ID } //具体物品类型 export enum HcType { wu = 0, //无物品 emitter = 1, //发射器 monster = 2, //怪物 equip = 3, //装备 } //解锁状态 export enum HcUnlock { off = 0, //关 on = 1, //开 } export const conf = { connet: "ws" }