feat: 审计日志增加scen,scen_code,scen_desc字段,支撑上层应用使用 --story=129221126#8595
Open
yuyudeqiu wants to merge 2 commits intoTencentBlueKing:v3.14.xfrom
Open
feat: 审计日志增加scen,scen_code,scen_desc字段,支撑上层应用使用 --story=129221126#8595yuyudeqiu wants to merge 2 commits intoTencentBlueKing:v3.14.xfrom
yuyudeqiu wants to merge 2 commits intoTencentBlueKing:v3.14.xfrom
Conversation
a01258b to
f96d96f
Compare
Collaborator
|
commit补充一下tapd单据信息 |
…为][v3]审计日志添加动作场景描述
…26 [嘉为][v3]审计日志添加动作场景描述
Contributor
Author
已补充重新提交 |
Anna-shine
reviewed
Mar 9, 2026
Comment on lines
+44
to
+46
| httpheader.SetScene(newHeader, httpheader.GetScene(header)) | ||
| httpheader.SetSceneDesc(newHeader, httpheader.GetSceneDesc(header)) | ||
| httpheader.SetSceneCode(newHeader, httpheader.GetSceneCode(header)) |
Contributor
Author
There was a problem hiding this comment.
原本定的方案是放到header里面,是否放到body中更合适?
Collaborator
There was a problem hiding this comment.
之前的技术实现方案没有对过,这个场景不适合放在header里
可以修改一下技术方案,评审通过后再编码提交~
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.
审计日志场景字段功能实现
需求
为审计日志增加
scene(场景)、scene_desc(场景描述)、scene_code(场景代码)三个字段,用于标识操作来源场景。修改文件清单
definitions.gometadata/audit.goheader/header.goheader/accessor.goheader/util/util.gocoreservice/audit.gotopo_server/auditlog.goupgrader/.../add_audit_scene_index.goupgrader/.../pkg.goadmin_server/imports.go