package reddot import ( "go_dreamfactory/comm" "go_dreamfactory/pb" "google.golang.org/protobuf/proto" ) //参数校验 func (this *apiComp) GetCheck(session comm.IUserSession, req *pb.ReddotGetReq) (code pb.ErrorCode) { return } ///获取系统公告 func (this *apiComp) Get(session comm.IUserSession, req *pb.ReddotGetReq) (code pb.ErrorCode, data proto.Message) { var ( reddot map[int32]bool = make(map[int32]bool) ) if code = this.GetCheck(session, req); code != pb.ErrorCode_Success { return } for k, v := range this.module.martialhall.Reddot(session.GetUserId(), comm.Reddot1) { reddot[int32(k)] = v } session.SendMsg(string(this.module.GetType()), "get", &pb.ReddotGetAllResp{Reddot: reddot}) return }