feat: multiselect transaction query#173
Merged
chenyme merged 5 commits intolinux-do:masterfrom Feb 8, 2026
Merged
Conversation
yyg-max
reviewed
Jan 17, 2026
internal/apps/order/routers.go
Outdated
| } | ||
|
|
||
| // buildTypeQuery builds a subquery for multiple order types | ||
| func buildTypeQuery(baseQuery *gorm.DB, types []string, userID uint64, clientID string, clientIDHandled *bool, c *gin.Context) *gorm.DB { |
Contributor
Author
There was a problem hiding this comment.
(okok,周一猫猫改一下 www
Contributor
Author
There was a problem hiding this comment.
好的,记得按照之前的代码改保留注释 www
改好了,佬有空再看看 owo
yyg-max
approved these changes
Jan 19, 2026
|
此 PR 长期无活动,将在 14 天后自动关闭。如需继续讨论请回复 |
Contributor
Author
|
喵呜 w |
chenyme
approved these changes
Feb 8, 2026
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.
例行检查
变更内容
使
/trade界面中的类型,状态筛选器支持多选 owo前:
https://github.com/user-attachments/assets/23572ff1-124f-4e6a-bd63-e85929a99e3b
后:
https://github.com/user-attachments/assets/1daf5ad3-0d42-47fd-a097-72ad42e997e5
变更原因
原先的
/trade中,查询操作的类型和状态筛选器均支持多选,但是在点击了多个选项后,实际上只有第一个选项生效,这会给用户带来困扰。本PR补全了多选的操作,使其能够正常应对前端传递的array owo
注意
这个是 #170 的一个子分支,请先查看并合并那个PR喵 w