package reddot // import ( // "go_dreamfactory/comm" // "go_dreamfactory/pb" // ) // // 参数校验 // func (this *apiComp) GetAllCheck(session comm.IUserSession, req *pb.ReddotGetAllReq) (errdata *pb.ErrorData) { // return // } // // /获取系统公告 // func (this *apiComp) GetAll(session comm.IUserSession, req *pb.ReddotGetAllReq) (errdata *pb.ErrorData) { // var ( // reddot map[int32]*pb.ReddotItem = make(map[int32]*pb.ReddotItem) // ) // if errdata = this.GetAllCheck(session, req); errdata != nil { // return // } // //任务系统 // // for k, v := range this.module.ModuleTask.Reddot(session, // // comm.Reddot10101, // // comm.Reddot10102, // // comm.Reddot10103, // // comm.Reddot10201, // // comm.Reddot10301) { // // reddot[int32(k)] = v // // } // //每日任务 // for k, v := range this.module.dailytask.Reddot(session, // comm.Reddot25101) { // reddot[int32(k)] = v // } // //主线 // for k, v := range this.module.mainline.Reddot(session, comm.Reddot24101) { // reddot[int32(k)] = v // } // //铁匠铺 // for k, v := range this.module.smithy.Reddot(session, // comm.Reddot17102, // comm.Reddot17106, // comm.Reddot17107, // ) { // reddot[int32(k)] = v // } // //武馆 // for k, v := range this.module.practice.Reddot(session, // comm.Reddot18106, // comm.Reddot18111, // ) { // reddot[int32(k)] = v // } // //竞技场 // for k, v := range this.module.arena.Reddot(session, comm.Reddot22100, comm.Reddot22102, comm.Reddot22202) { // reddot[int32(k)] = v // } // //用户 // for k, v := range this.module.ModuleUser.Reddot(session, comm.Reddot27101, comm.Reddot30100) { // reddot[int32(k)] = v // } // for k, v := range this.module.friend.Reddot(session, comm.Reddot21101) { // reddot[int32(k)] = v // } // for k, v := range this.module.gourmet.Reddot(session, comm.Reddot23101) { // reddot[int32(k)] = v // } // for k, v := range this.module.pagoda.Reddot(session, // comm.Reddot6, // comm.Reddot29101, // ) { // reddot[int32(k)] = v // } // for k, v := range this.module.horoscope.Reddot(session, comm.Reddot17) { // reddot[int32(k)] = v // } // for k, v := range this.module.gourmet.Reddot(session, comm.Reddot20, comm.Reddot21, comm.Reddot22) { // reddot[int32(k)] = v // } // for k, v := range this.module.sociaty.Reddot(session, comm.Reddot15102, comm.Reddot15201) { // reddot[int32(k)] = v // } // for k, v := range this.module.mail.Reddot(session, comm.Reddot12101, comm.Reddot12102) { // reddot[int32(k)] = v // } // for k, v := range this.module.viking.Reddot(session, comm.Reddot13102) { // reddot[int32(k)] = v // } // for k, v := range this.module.hunting.Reddot(session, comm.Reddot14102) { // reddot[int32(k)] = v // } // for k, v := range this.module.library.Reddot(session, // comm.Reddot19103, // comm.Reddot19105, // comm.Reddot19109, // comm.Reddot19110) { // reddot[int32(k)] = v // } // session.SendMsg(string(this.module.GetType()), "getall", &pb.ReddotGetAllResp{Reddot: reddot}) // return // }