From 266698e46744063752f7cc893c539f132e3cdc37 Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Sat, 2 Sep 2023 22:02:11 +0300 Subject: feat: detailed logs for records (#55) Former-commit-id: af37633ce05f08fc517cb3e8fec3e84a0bd5ba49 --- backend/handlers/logs.go | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'backend/handlers/logs.go') diff --git a/backend/handlers/logs.go b/backend/handlers/logs.go index 0fef6a1..c971f79 100644 --- a/backend/handlers/logs.go +++ b/backend/handlers/logs.go @@ -11,8 +11,9 @@ import ( ) const ( - LogTypeMod string = "Mod" - LogTypeLogin string = "Login" + LogTypeMod string = "Mod" + LogTypeLogin string = "Login" + LogTypeRecord string = "Record" LogDescriptionLoginSuccess string = "Success" LogDescriptionLoginFailToken string = "TokenFail" @@ -23,6 +24,15 @@ const ( LogDescriptionMapSummaryEdit string = "MapSummaryEdit" LogDescriptionMapSummaryEditImage string = "MapSummaryEditImage" LogDescriptionMapSummaryDelete string = "MapSummaryDelete" + + LogDescriptionRecordSuccess string = "Success" + LogDescriptionRecordFailInsertRecord string = "InsertRecordFail" + LogDescriptionRecordFailInsertDemo string = "InsertDemoFail" + LogDescriptionRecordFailProcessDemo string = "ProcessDemoFail" + LogDescriptionRecordFailCreateDemo string = "CreateDemoFail" + LogDescriptionRecordFailOpenDemo string = "OpenDemoFail" + LogDescriptionRecordFailSaveDemo string = "SaveDemoFail" + LogDescriptionRecordFailInvalidRequest string = "InvalidRequestFail" ) type Log struct { -- cgit v1.2.3