We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
你好,我想请教一下,用户的权限是应该放在application层还是domain层?比如普通用户只能修改自己的订单,管理员可以修改所有人的订单。这种规则,如果放在domain层,每个业务方法都需要传入一个当前用户,而且user属于另外一个聚合域。放在application层,又会使业务规则,散落到domain之外。还请不吝赐教。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
你好,我想请教一下,用户的权限是应该放在application层还是domain层?比如普通用户只能修改自己的订单,管理员可以修改所有人的订单。这种规则,如果放在domain层,每个业务方法都需要传入一个当前用户,而且user属于另外一个聚合域。放在application层,又会使业务规则,散落到domain之外。还请不吝赐教。
The text was updated successfully, but these errors were encountered: