This commit is contained in:
2026-02-11 17:46:22 +03:00
commit eacfacb13b
266 changed files with 51337 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
package auditlog
import "time"
type ActivityLog struct {
// identity
UserID string // UUID (auth)
DfUsrID int64 // DF user id (mk_dfusr.id)
Username string
RoleCode string
// action
ActionType string
ActionCategory string
ActionTarget string
Description string
// tech
IpAddress string
UserAgent string
SessionID string
// timing
RequestStartedAt time.Time
RequestFinishedAt time.Time
DurationMs int
HttpStatus int
// result
IsSuccess bool
ErrorMessage string
TargetDfUsrID int64
TargetUsername string
ChangeBefore any // map[string]any
ChangeAfter any
}