package atlas import ( "go_dreamfactory/comm" "go_dreamfactory/pb" "google.golang.org/protobuf/proto" ) //参数校验 func (this *apiComp) AtlasListCheck(session comm.IUserSession, req *pb.AtlasGetListReq) (code pb.ErrorCode) { return } // 获取铁匠铺图鉴信息 func (this *apiComp) AtlasList(session comm.IUserSession, req *pb.AtlasGetListReq) (code pb.ErrorCode, data proto.Message) { code = this.AtlasListCheck(session, req) if code != pb.ErrorCode_Success { return // 参数校验失败直接返回 } list, err := this.module.modelPandaAtlas.getPandaAtlasList(session.GetUserId()) if err != nil { code = pb.ErrorCode_DBError return } session.SendMsg(string(this.module.GetType()), "getlist", &pb.AtlasGetListResp{ Data: list, }) return }