syntax = "proto3";
option go_package = ".;pb";
import "academy_db.proto";
import "battle_msg.proto";
import "errorcode.proto";

///基础信息获取
message AcademyInfoReq {}
message AcademyInfoResp { DBAcademy info = 1; }

//挑战
message AcademyChallengeReq { int32 level = 1; }
message AcademyChallengeResp {
  ErrorCode code = 1; //是否成功
  int32 level = 2;
  BattleInfo info = 3;
}

//领取
message AcademyReceiveReq {
  int32 level = 1;
  int32 group = 2;
  BattleReport report = 3; //战报
}
message AcademyReceiveResp { bool issucc = 1; }


//教学请求
message AcademyTeachingReq {
  string heroId = 1;
}
message AcademyTeachingResp {
  ErrorCode code = 1; //是否成功
  string heroId = 2;
  BattleInfo info = 3;
}


//领取教学奖励
message AcademyTeachingReceiveReq {
  string heroId = 1;
  BattleReport report = 2; //战报
}
message AcademyTeachingReceiveResp { bool issucc = 1; }