Repository navigation
feat(panel): 积分历史账号/时间筛选 + 请求记录账号下拉 - #1
Merged
Merged
Conversation
- 积分历史:新增账号下拉(uid 过滤)与时间范围(今天/近24h/3d/7d/30d/全部/自定义),默认全部历史 - 请求记录:新增账号下拉,走服务端 account 过滤;后端把 uid 翻译为归档里的昵称 - 前端在归档关闭时按昵称做客户端兜底过滤 - 测试:新增 11 个时间/账号组合用例 + uid 翻译用例;go test ./internal/panel 全绿
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.
改了什么
积分历史
trange组件请求记录
account=过滤(归档读取是"先逐行过滤再取最近 N 条",客户端过滤会让老账号查不到)request_logs的account参数支持 uid → 昵称自动翻译(下拉传 uid,归档存昵称)后端变化
credit_history新增from/to参数(秒/毫秒时间戳);有任一筛选时全量读账本再过滤request_logs的account参数兼容 uid 与昵称测试
TestCreditHistoryTimeAndAccountFilter(11 个时间/账号组合)TestRequestLogsAccountFilterByUID(uid/昵称/不存在账号)go build ./... && go test ./internal/panel全绿;node --check app.js通过已部署验证
request_logs?account=<uid>→ 8 条且全部属于该账号credit_history?from=<未来>→ 0 条;按 uid 过滤 → 全部命中