module giant.chuanqi { /*-*begin $area1*-*/ //这里填写类上方的手写内容 /*-*end $area1*-*/ /** * 数据由工具自动生成,源文件地址:D:\workspace\bitbucket\coderesource\tools\code\DataTools\testsample\0.测试数据\CeShiBiao.xlsx * 创建时间:2018-04-27 18:44:24 **/ export class CeShiBiaoCfg { public constructor() { } /** * 测试数据标识 */ public id: number; /** * 需求等级 */ public level: number; /** * 展示道具 */ public showitems: any[]; /** * 是否可pk */ public pk: boolean; /** * vip特殊奖励 */ public vipitem: string; /** * 测试日期 */ public date: Date; /** * 测试时间 */ public datetime: Date; /** * 测试时间 */ public time: TimeVO; ///////////////////// /*-*begin $area2*-*/ //这里填写类里面的手写内容 /*-*end $area2*-*/ public decode(data:any[]){ let i = 0; this.id = data[i++]; this.level = data[i++]; this.showitems = data[i++]; this.pk = !!data[i++]; this.vipitem = data[i++]; this.date = new Date(data[i++]*1000); this.datetime = new Date(data[i++]*1000); this.time = new TimeVO(data[i++]); /*-*begin $decode*-*/ //这里填写方法中的手写内容 /*-*end $decode*-*/ } } /*-*begin $area3*-*/ //这里填写类下发的手写内容 /*-*end $area3*-*/ } module giant { export interface CfgName { CeShiBiao: { [index: number]: chuanqi.CeShiBiaoCfg }; } }