diff --git a/modules/hero/api_heroStarUp.go b/modules/hero/api_heroStarUp.go new file mode 100644 index 000000000..d27c10a7f --- /dev/null +++ b/modules/hero/api_heroStarUp.go @@ -0,0 +1,28 @@ +package hero + +import ( + "go_dreamfactory/comm" + "go_dreamfactory/pb" +) + +//参数校验 +func (this *apiComp) StrengthenUpStar_Check(session comm.IUserSession, req *pb.Hero_StrengthenUpStar_Req) (result map[string]interface{}, code comm.ErrorCode) { + if req.HeroObjID == "" { + code.Code = pb.ErrorCode_ReqParameterError + return + } + + return +} + +/// 英雄升星 +func (this *apiComp) StrengthenUpStar(session comm.IUserSession, agrs map[string]interface{}, req *pb.Hero_StrengthenUpStar_Req) (code pb.ErrorCode) { + + defer func() { + if code == pb.ErrorCode_Success { + session.SendMsg(string(this.moduleHero.GetType()), StrengthenUplv, &pb.Hero_StrengthenUpStar_Resp{}) + } + }() + + return +}