62 lines
1.8 KiB
Go
62 lines
1.8 KiB
Go
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]bool = make(map[int32]bool)
|
|
)
|
|
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.mline.Reddot(session, comm.Reddot11100) {
|
|
reddot[int32(k)] = v
|
|
}
|
|
for k, v := range this.module.pagoda.Reddot(session, comm.Reddot6) {
|
|
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.martialhall.Reddot(session, comm.Reddot23, comm.Reddot24, comm.Reddot25) {
|
|
// reddot[int32(k)] = v
|
|
// }
|
|
for k, v := range this.module.arena.Reddot(session, comm.Reddot19) {
|
|
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
|
|
}
|
|
|
|
session.SendMsg(string(this.module.GetType()), "getall", &pb.ReddotGetAllResp{Reddot: reddot})
|
|
return
|
|
}
|