Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
这样的场景也算是常见,比如选择日期的时候,UI上是选择一个范围,但是传值给后端的时候,是分开的,比如date: [start, end], 发送的时候是startDate和endDate。 增加这个接口的确可以达到这样的目的。但是处理搜索条件的最终目的是为了发送请求的时候用的。那为什么不在发送请求的时候处理呢? 秉承接口简洁化的考虑,多一个接口,多一份维护,也多一份学习的负担,这样有必要吗? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
新增search params扩展方法searchParamsCallBack,使得后续可以通过该方法处理search的入参。