Skip to content
New issue

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

用户权限应该在哪一层进行判断 #6

Open
liangWenPeng opened this issue Mar 28, 2020 · 0 comments
Open

用户权限应该在哪一层进行判断 #6

liangWenPeng opened this issue Mar 28, 2020 · 0 comments

Comments

@liangWenPeng
Copy link

你好,我想请教一下,用户的权限是应该放在application层还是domain层?比如普通用户只能修改自己的订单,管理员可以修改所有人的订单。这种规则,如果放在domain层,每个业务方法都需要传入一个当前用户,而且user属于另外一个聚合域。放在application层,又会使业务规则,散落到domain之外。还请不吝赐教。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant