更新接口

This commit is contained in:
wh_zcy 2022-12-12 11:29:48 +08:00
parent 7784cf176a
commit dac3b04107
2 changed files with 4 additions and 6 deletions

View File

@ -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
}

View File

@ -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
}