定义接口,外部的layer实现接口 内层与外层通过接口解耦 services(business logic)可以独立于infrastructure编译和运行 示例结构 github.com/splaw88/onion-architecture