Command 封装命令

Command 命令

封装命令
结合责任链实现undo
结合组合模式实现宏
结合Memento实现trasaction事务回滚