From 8c89d893820a2fc57ec755231210873529f7ec2e Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Wed, 3 Jul 2024 22:57:17 +0800 Subject: [PATCH] :zap: Optimized audit, event logging system :sparkles: Audit logs :sparkles: Admin edit user permissions --- .idea/workspace.xml | 14 +++--- pkg/internal/database/migrator.go | 1 + pkg/internal/models/audit.go | 13 ++++++ pkg/internal/server/admin/index.go | 2 + pkg/internal/server/admin/permissions_api.go | 46 ++++++++++++++++++++ pkg/internal/services/events.go | 42 +++++++++++++++--- pkg/main.go | 1 + 7 files changed, 107 insertions(+), 12 deletions(-) create mode 100644 pkg/internal/models/audit.go create mode 100644 pkg/internal/server/admin/permissions_api.go diff --git a/.idea/workspace.xml b/.idea/workspace.xml index b1dfad2..c393935 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,10 +4,14 @@