airobot/busi/friend.go
2022-12-12 11:20:37 +08:00

31 lines
490 B
Go

package busi
import (
"legu.airobot/lib"
"legu.airobot/pb"
)
//好友场景
var _ lib.IScene = (*FriendScene)(nil)
type FriendScene struct {
lib.Action
}
func (f *FriendScene) Info() lib.SceneInfo {
return lib.SceneInfo{
Name: "好友申请",
Desc: "aaa",
}
}
func (f *FriendScene) Run(robot lib.IRobot) error {
head := &pb.UserMessage{MainType: "", SubType: ""}
req := &pb.FriendRandlistReq{}
rsp := &pb.FriendRandlistResp{}
robot.SendMsg(head, req, rsp)
return nil
}