golang领域模型-六边形架构

adapter – 端口适配器controller – 输入适配器repository – 输出适配器dto – 传输对象po – 持久化对象。CartRepo repository.CartRepo //购物车仓库,这里是依赖注入的。