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

修改所有findAll方法的行为 #3

Closed
origin-coding opened this issue Feb 13, 2023 · 1 comment
Closed

修改所有findAll方法的行为 #3

origin-coding opened this issue Feb 13, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@origin-coding
Copy link
Owner

现在的findAll方法需要进行参数校验:(page > 1) & (size > 0)。
但是在Vuetify中的VDataTable组件支持返回所有结果的分页选项,因此可以考虑,如果size == -1,那么返回所有的结果,不进行分页查询。
所以需要我们修改findAll方法的返回结果,并修改在Controller中的校验规则。

@origin-coding origin-coding added the enhancement New feature or request label Feb 13, 2023
@origin-coding origin-coding self-assigned this Feb 13, 2023
@origin-coding
Copy link
Owner Author

  • 修改findAll方法的行为
  • 在Service层添加不带分页参数的findAll方法
  • 修改Controller的校验逻辑
  • 重写测试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

1 participant