30 lines
676 B
Go
30 lines
676 B
Go
package atlas
|
|
|
|
import (
|
|
"go_dreamfactory/comm"
|
|
"go_dreamfactory/pb"
|
|
)
|
|
|
|
//参数校验
|
|
func (this *apiComp) GetListCheck(session comm.IUserSession, req *pb.AtlasGetListReq) (errdata *pb.ErrorData) {
|
|
|
|
return
|
|
}
|
|
|
|
// 获取铁匠铺图鉴信息
|
|
func (this *apiComp) GetList(session comm.IUserSession, req *pb.AtlasGetListReq) (errdata *pb.ErrorData) {
|
|
|
|
list, err := this.module.modelPandaAtlas.getPandaAtlasList(session.GetUserId())
|
|
if err != nil {
|
|
errdata = &pb.ErrorData{
|
|
Code: pb.ErrorCode_DBError,
|
|
Title: pb.ErrorCode_DBError.ToString(),
|
|
}
|
|
return
|
|
}
|
|
session.SendMsg(string(this.module.GetType()), "getlist", &pb.AtlasGetListResp{
|
|
Data: list,
|
|
})
|
|
return
|
|
}
|