完善日志和审计链路

This commit is contained in:
yml
2026-06-02 21:40:23 +08:00
parent 1325c8fb89
commit 6dcea2d56c
20 changed files with 243 additions and 90 deletions
+3 -4
View File
@@ -3,6 +3,8 @@ package order
import (
"time"
"hfb_sys/backend/internal/auditlog"
"gorm.io/datatypes"
)
@@ -68,10 +70,7 @@ type AdminActionRequest struct {
Reason string `json:"reason" binding:"required"`
}
type AuditMeta struct {
IP string
UserAgent string
}
type AuditMeta = auditlog.Meta
type HandoffRecordDTO struct {
ID uint64 `json:"id"`