https://www.cnblogs.com/mgbert/p/3937289.html http://www.techug.com/post/devise-model.html 1.單一職責(zé)原則 2.里氏替換原則 3.依賴側(cè)置原則 4.接口隔離原則 5.迪米特法則 6.開閉原則