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

[Feature] 对 PUT 默认支持条件,不传 @combine 也行 #277

Open
TommyLemon opened this issue Jul 30, 2021 · 1 comment
Open

[Feature] 对 PUT 默认支持条件,不传 @combine 也行 #277

TommyLemon opened this issue Jul 30, 2021 · 1 comment
Labels
Enhancement 增强 增强功能、提高性能等 help wanted 请求帮助

Comments

@TommyLemon
Copy link
Collaborator

TommyLemon commented Jul 30, 2021

具体说下
目前不支持直接作为条件,如果不传 @combine 就报错了。
image

可以把带功能符号的键值对默认作为条件,例如
"content~": "a"
"contactIdList<>": 82001
等。
判断方式为 StringUtil.isName(key) == false

为什么
方便使用,满足更多场景。

可能的问题:
前端过于灵活,后端可能不好保证安全?
目前强制传 id / id{} ,应该能保证。不让前端传带功能符的键值对,应该后端 Request 表配置。

@TommyLemon TommyLemon added Enhancement 增强 增强功能、提高性能等 help wanted 请求帮助 labels Jul 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement 增强 增强功能、提高性能等 help wanted 请求帮助
Projects
None yet
Development

No branches or pull requests

1 participant