tips

  • 尽量使用rest规范
  • 不满足curd基本操作的其他行为 可以跳出规范,如 post /users/1/approve (待迭代)
  • 不同角色的行为应该分不同的方法,不允许Service在同一个函数中出现角色的判断

https://juejin.im/post/5db9131df265da4d1e26cdff

https://juejin.im/post/5db919816fb9a020333c362f#heading-1

results matching ""

    No results matching ""