添加redis方法

This commit is contained in:
lifeiyi
2020-04-21 18:09:42 +08:00
parent a189c2c80b
commit c06af0ab4f
3 changed files with 83 additions and 7 deletions

View File

@@ -4,13 +4,13 @@ import (
"fmt"
"github.com/duanhf2012/origin/event"
"github.com/duanhf2012/origin/example/GateService"
"github.com/duanhf2012/origin/example/msgpb"
//"github.com/duanhf2012/origin/example/msgpb"
"github.com/duanhf2012/origin/log"
"github.com/duanhf2012/origin/node"
"github.com/duanhf2012/origin/service"
"github.com/duanhf2012/origin/sysmodule"
"github.com/duanhf2012/origin/sysservice"
"github.com/golang/protobuf/proto"
//"github.com/golang/protobuf/proto"
"time"
)
@@ -249,12 +249,12 @@ func (slf *TestService1) RPC_Test(a *Param,b *Param) error {
return nil
}
func (slf *TestService1) RPC_TestPB(a *msgpb.InputRpc,b *msgpb.OutputRpc) error {
/*func (slf *TestService1) RPC_TestPB(a *msgpb.InputRpc,b *msgpb.OutputRpc) error {
b.Msg = proto.String(a.GetMsg())
b.Tag = proto.Int32(a.GetTag())
return nil
}
}*/
func (slf *TestService1) OnInit() error {