更新接口
This commit is contained in:
parent
7784cf176a
commit
dac3b04107
@ -21,10 +21,8 @@ func (f *FriendScene) Info() lib.SceneInfo {
|
||||
}
|
||||
|
||||
func (f *FriendScene) Run(robot lib.IRobot) error {
|
||||
head := &pb.UserMessage{MainType: "", SubType: ""}
|
||||
|
||||
req := &pb.FriendRandlistReq{}
|
||||
rsp := &pb.FriendRandlistResp{}
|
||||
robot.SendMsg(head, req, rsp)
|
||||
robot.SendMsg("", "", req, rsp)
|
||||
return nil
|
||||
}
|
||||
|
@ -23,11 +23,11 @@ type IRobot interface {
|
||||
// GetCurrentScene() *scene
|
||||
|
||||
// 发送消息
|
||||
SendMsg(head *pb.UserMessage, req proto.Message, rsp proto.Message) error
|
||||
SendMsg(mainType, subType string, req proto.Message, rsp proto.Message) error
|
||||
// 存储数据
|
||||
Store(key string, data []byte)
|
||||
Store(key string, data interface{})
|
||||
// 获取数据
|
||||
Get(key string) []byte
|
||||
Get(key string) interface{}
|
||||
// 停止运行
|
||||
Stop() bool
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user