https://www.cnblogs.com/mgbert/p/3937289.html http://www.techug.com/post/devise-model.html 1.单一职责原则 2.里氏替换原则 3.依赖侧置原则 4.接口隔离原则 5.迪米特法则 6.开闭原则