上传新作图代码
This commit is contained in:
parent
9adc0e1140
commit
c94df125a8
@ -1,4 +1,4 @@
|
||||
package constellation
|
||||
package horoscope
|
||||
|
||||
import (
|
||||
"go_dreamfactory/modules"
|
||||
|
@ -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
|
||||
}
|
||||
|
25
modules/horoscope/api_upgrade.go
Normal file
25
modules/horoscope/api_upgrade.go
Normal 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
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package constellation
|
||||
package horoscope
|
||||
|
||||
import (
|
||||
"go_dreamfactory/lego/core"
|
||||
|
1
modules/horoscope/core.go
Normal file
1
modules/horoscope/core.go
Normal file
@ -0,0 +1 @@
|
||||
package horoscope
|
@ -1,4 +1,4 @@
|
||||
package constellation
|
||||
package horoscope
|
||||
|
||||
import (
|
||||
"go_dreamfactory/comm"
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
package constellation
|
||||
package horoscope
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
Loading…
Reference in New Issue
Block a user