Your final option sounds exactly right to me: when someone wants to close a ticket, they have to provide evidence in the form of a security token. (Having said that, it's hard enough to judge SRP violations when you have access to a class' source code that I can't say I'm totally confident.)
发布评论
评论(1)
您的最终选择对我来说听起来完全正确:当有人想要关闭票证时,他们必须以安全令牌的形式提供证据。 (话虽如此,当您可以访问类的源代码时,判断是否违反 SRP 已经很困难了,我不能说我完全有信心。)
Your final option sounds exactly right to me: when someone wants to close a ticket, they have to provide evidence in the form of a security token. (Having said that, it's hard enough to judge SRP violations when you have access to a class' source code that I can't say I'm totally confident.)