21 lines
499 B
Go
21 lines
499 B
Go
package dragon
|
|
|
|
import (
|
|
"go_dreamfactory/comm"
|
|
"go_dreamfactory/pb"
|
|
)
|
|
|
|
//参数校验
|
|
func (this *apiComp) GetListCheck(session comm.IUserSession, req *pb.DragonGetListReq) (errdata *pb.ErrorData) {
|
|
return
|
|
}
|
|
|
|
func (this *apiComp) GetList(session comm.IUserSession, req *pb.DragonGetListReq) (errdata *pb.ErrorData) {
|
|
rsp := &pb.DragonGetListResp{}
|
|
|
|
rsp.Dragons, _ = this.module.modelDragon.GetDragonList(session.GetUserId())
|
|
|
|
session.SendMsg(string(this.module.GetType()), "", rsp)
|
|
return
|
|
}
|