用例制定

发布于 2024-09-15 10:56:11 字数 275 浏览 7 评论 0原文

我正在思考网络服务的规范,这个问题突然出现在我的脑海中。

是否应该有以下用例:

  • 用户可以对其他用户的帖子进行投票 从而改变后者的声誉

可以分为两个用例吗?

  • 用户可以对其他用户的帖子进行投票
  • 当用户获得投票时,她的声誉会相应改变

哪一种表述更好?

I was thinkering with the specs for a web service and this question popped into my head.

Should the following use case:

  • A user can vote on other users' posts
    so to modify the latters' reputation

be split into two use cases?

  • A user can vote other users' posts
  • When a user gets voted, her reputation changes accordingly

Wich one is better formulated?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

无悔心 2024-09-22 10:56:11

我会选择拆分选项,这样您可以更好地控制每个流程,并且也更容易维护。

I'd go for the split option, this way you have way more control over each process and it's also easier to maintain.

无畏 2024-09-22 10:56:11

除非有你希望它们独立发生的情况,否则我想不出分割它们的理由。

Unless there is a case where you want them to happen independently I can't think of a reason to split them.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文