21 lines
493 B
Go
21 lines
493 B
Go
package dragon
|
|
|
|
import (
|
|
"go_dreamfactory/comm"
|
|
"go_dreamfactory/pb"
|
|
)
|
|
|
|
//参数校验
|
|
func (this *apiComp) ListCheck(session comm.IUserSession, req *pb.DragonGetListReq) (errdata *pb.ErrorData) {
|
|
return
|
|
}
|
|
|
|
func (this *apiComp) List(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
|
|
}
|