Skip to content

feat:🚀 新增search params扩展的方法 #352

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yeyu98
Copy link

@yeyu98 yeyu98 commented Nov 16, 2023

新增search params扩展方法searchParamsCallBack,使得后续可以通过该方法处理search的入参。

Copy link

vercel bot commented Nov 16, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
geeker-admin ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 22, 2023 3:24pm

@maicss
Copy link

maicss commented Jun 22, 2025

这样的场景也算是常见,比如选择日期的时候,UI上是选择一个范围,但是传值给后端的时候,是分开的,比如date: [start, end], 发送的时候是startDate和endDate。

增加这个接口的确可以达到这样的目的。但是处理搜索条件的最终目的是为了发送请求的时候用的。那为什么不在发送请求的时候处理呢?

秉承接口简洁化的考虑,多一个接口,多一份维护,也多一份学习的负担,这样有必要吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants