21 lines
568 B
Go
21 lines
568 B
Go
package hero
|
|
|
|
import (
|
|
"go_dreamfactory/comm"
|
|
"go_dreamfactory/pb"
|
|
|
|
"google.golang.org/protobuf/proto"
|
|
)
|
|
|
|
//参数校验
|
|
func (this *apiComp) TalentListCheck(session comm.IUserSession, req *pb.HeroTalentListReq) (code pb.ErrorCode) {
|
|
return
|
|
}
|
|
|
|
func (this *apiComp) TalentList(session comm.IUserSession, req *pb.HeroTalentListReq) (code pb.ErrorCode, data proto.Message) {
|
|
rsp := &pb.HeroTalentListResp{}
|
|
rsp.Telnet, _ = this.module.modelTalent.GetHerotalent(session.GetUserId())
|
|
session.SendMsg(string(this.module.GetType()), HeroTalentListResp, rsp)
|
|
return
|
|
}
|