freedom icon indicating copy to clipboard operation
freedom copied to clipboard

Freedom是一个基于六边形架构的框架,可以支撑充血的领域模型范式。

Results 14 freedom issues
Sort by recently updated
recently updated
newest added

疑问: 1、示例中把多个领域的代码放到了一个domain下,为什么不拆分成多个domain呢? 例如 domain/user domain/order domain/goods,每个domain只暴露service给controller调用 2、放在一个domain下当拆分成微服务时候是不是很麻烦呢? 3、聚合服务该怎么分层呢?比如下单操作同时依赖用户服务、商品服务、库存服务和订单服务等,这个服务要单独拆出来吗?还是直接写在订单服务里面?这样是不是就依赖了其他服务了?还是说调用其他服务的api方式来解决呢? 望解惑,谢谢。

没有看到文档中提及是否有在生产中大量使用、谁在使用、性能怎么样

能否将cqrs部分单独抽出来独立于DDD、ES及任何框架,单独作为一个tool使用呢?

在根目录增加scripts目录,用于开发项目时验证修改是否无误,包括测试、覆盖率检查等脚本 | Add 'scripts' directory to validate project for developer, which include test, coverage, etc.

# Contributing conventions ## Code style ### Comment Limit all lines to around 80 characters. Example: 1. Good. Example: ```go // Hello, Li. I've released a new version of the...

个人疑问: 因为我个人没有这种六边形模式,比较经常用的是贫血模式。我们一般在po层不会有业务逻辑。 链接地址:https://github.com/8treenet/freedom/tree/master/example/fshop/domain/po

``` app := freedom.NewApplication() app.Iris().Use(func(ctx iris.Context) { ctx.Header("Access-Control-Allow-Origin", "*") ctx.Header("Access-Control-Allow-Credentials", "true") ctx.Header("Access-Control-Allow-Headers", "*") ctx.Header("Access-Control-Allow-Methods", "POST, OPTIONS, GET, PUT, DELETE") if ctx.Method() == "OPTIONS" { ctx.StatusCode(http.StatusOK) return } ctx.Next() }) app.Iris().AllowMethods(iris.MethodOptions)...

欢迎大家入群交流Golang领域驱动设计! 该群是freedom作者八叉树与各位golang DDD爱好者交流的基地!

这三个方法使用的话,要分别写在六边形里的哪一层,可以给个例子吗