Add files via upload

This commit is contained in:
公明
2026-07-13 19:16:51 +08:00
committed by GitHub
parent e5a4703e91
commit a6b7c7e7be
4 changed files with 294 additions and 0 deletions
+1
View File
@@ -101,6 +101,7 @@ func (h *VulnerabilityHandler) CreateVulnerability(c *gin.Context) {
_ = h.db.SetResourceOwner("vulnerability", created.ID, session.UserID)
_ = h.db.AssignResourceToUser(session.UserID, "vulnerability", created.ID)
}
h.db.NotifyVulnerabilityCreated(created)
if h.audit != nil {
h.audit.RecordOK(c, "vulnerability", "create", "创建漏洞记录", "vulnerability", created.ID, map[string]interface{}{