8treenet
8treenet
https://github.com/8treenet/freedom/blob/master/example/infra-example/adapter/controller/goods.go
unitTest := getUnitTest() unitTest.SetRequest(mock) unitTest.Run() https://github.com/8treenet/freedom/blob/master/example/fshop/domain/goods_test.go
控制器不需要单测吧,有 http 的路由属性了. 并且控制器也没业务逻辑
不存在这样的问题。因为事务不支持并发。 可以单测下 直接什么都不用 就官方db试下并发事务
互不影响。简单的来说 每个请求都是独立的controller,service,repo,factory。
还有infra 和work
资源库不是和领域服务一一对应的