38 lines
857 B
Go
38 lines
857 B
Go
package venture
|
|
|
|
import (
|
|
"go_dreamfactory/comm"
|
|
"go_dreamfactory/pb"
|
|
)
|
|
|
|
// 参数校验
|
|
func (this *apiComp) LvGetListCheck(session comm.IUserSession, req *pb.VentureLvGetListReq) (errdata *pb.ErrorData) {
|
|
|
|
return
|
|
}
|
|
|
|
// /获取自己的排行榜信息
|
|
func (this *apiComp) LvGetList(session comm.IUserSession, req *pb.VentureLvGetListReq) (errdata *pb.ErrorData) {
|
|
var (
|
|
lvdata *pb.DBVentureLv
|
|
err error
|
|
)
|
|
if errdata = this.LvGetListCheck(session, req); errdata != nil {
|
|
return
|
|
}
|
|
|
|
if lvdata, err = this.module.ModelLv.getUserVentureLvData(session.GetUserId()); err != nil {
|
|
errdata = &pb.ErrorData{
|
|
Code: pb.ErrorCode_DBError,
|
|
Title: pb.ErrorCode_DBError.ToString(),
|
|
Message: err.Error(),
|
|
}
|
|
return
|
|
}
|
|
|
|
session.SendMsg(string(this.module.GetType()), "lvgetlist", &pb.VentureLvGetListResp{
|
|
Data: lvdata,
|
|
})
|
|
return
|
|
}
|