上传新作图代码

This commit is contained in:
liwei1dao 2022-10-31 17:50:06 +08:00
parent 9adc0e1140
commit c94df125a8
8 changed files with 41 additions and 9 deletions

View File

@ -1,4 +1,4 @@
package constellation
package horoscope
import (
"go_dreamfactory/modules"

View File

@ -1,4 +1,4 @@
package constellation
package horoscope
import (
"go_dreamfactory/comm"
@ -8,18 +8,18 @@ import (
)
//参数校验
func (this *apiComp) InfoCheck(session comm.IUserSession, req *pb.EquipmentWashConfirmReq) (code pb.ErrorCode) {
func (this *apiComp) InfoCheck(session comm.IUserSession, req *pb.HoroscopeInfoReq) (code pb.ErrorCode) {
return
}
///获取自己的排行榜信息
func (this *apiComp) Info(session comm.IUserSession, req *pb.EquipmentWashConfirmReq) (code pb.ErrorCode, data proto.Message) {
func (this *apiComp) Info(session comm.IUserSession, req *pb.HoroscopeInfoReq) (code pb.ErrorCode, data proto.Message) {
var ()
if code = this.InfoCheck(session, req); code != pb.ErrorCode_Success {
return
}
session.SendMsg(string(this.module.GetType()), "info", &pb.EquipmentWashConfirmResp{})
session.SendMsg(string(this.module.GetType()), "info", &pb.HoroscopeInfoResp{})
return
}

View File

@ -0,0 +1,25 @@
package horoscope
import (
"go_dreamfactory/comm"
"go_dreamfactory/pb"
"google.golang.org/protobuf/proto"
)
//参数校验
func (this *apiComp) UpgradeCheck(session comm.IUserSession, req *pb.HoroscopeUpgradeReq) (code pb.ErrorCode) {
return
}
///获取自己的排行榜信息
func (this *apiComp) Upgrade(session comm.IUserSession, req *pb.HoroscopeUpgradeReq) (code pb.ErrorCode, data proto.Message) {
var ()
if code = this.UpgradeCheck(session, req); code != pb.ErrorCode_Success {
return
}
session.SendMsg(string(this.module.GetType()), "upgrade", &pb.HoroscopeUpgradeResp{})
return
}

View File

@ -1,4 +1,4 @@
package constellation
package horoscope
import (
"go_dreamfactory/lego/core"

View File

@ -0,0 +1 @@
package horoscope

View File

@ -1,4 +1,4 @@
package constellation
package horoscope
import (
"go_dreamfactory/comm"

View File

@ -1,10 +1,11 @@
package constellation
package horoscope
import (
"go_dreamfactory/comm"
"go_dreamfactory/lego/base"
"go_dreamfactory/lego/core"
"go_dreamfactory/modules"
"go_dreamfactory/pb"
)
/*
@ -39,3 +40,8 @@ func (this *Horoscope) Start() (err error) {
err = this.ModuleBase.Start()
return
}
//计算英雄数值
func (this *Horoscope) ComputeHeroNumeric(hero *pb.DBHero) (code pb.ErrorCode) {
return
}

View File

@ -1,4 +1,4 @@
package constellation
package horoscope
import (
"errors"