fix(api)!: rename subject tag total_cont to total_count#1130
Merged
trim21 merged 1 commit intoJul 23, 2026
Conversation
Replace the misspelled subject tag field across JSON responses and OpenAPI. BREAKING CHANGE: subject tag responses now expose total_count instead of total_cont.
Contributor
|
之前那个还没上线,你要改的话可以直接改( |
Contributor
Author
👌欧克,那麻烦你合一下 |
huoshen80
marked this pull request as ready for review
July 23, 2026 16:15
Contributor
|
Tick the box to add this pull request to the merge queue (same as
|
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.
背景
#1124 补全并记录了标签总使用次数字段,但
total_cont应为total_count:领域模型和数据库映射均使用TotalCount,只有 API 响应层存在该拼写错误。当前提交直接将
total_cont重命名为total_count,不保留旧字段,因此属于破坏性变更。由于 #1124 尚未部署,现在直接修正可以避免在更多接口中固化错误名称。想确认:
total_cont标记为 deprecated,后续再移除?修改内容
TotalCont/total_cont重命名为TotalCount/total_count测试
go test -tags test ./web/res/... ./internal/search/subject/...yarn run test