From bfb7942343bc08a7424f144f9799a9b547d6f607 Mon Sep 17 00:00:00 2001 From: GrailFinder Date: Sun, 17 Mar 2024 15:26:16 +0300 Subject: Chore: define models for future --- internal/models/models.go | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 internal/models/models.go (limited to 'internal/models/models.go') diff --git a/internal/models/models.go b/internal/models/models.go new file mode 100644 index 0000000..eb90a0d --- /dev/null +++ b/internal/models/models.go @@ -0,0 +1,29 @@ +package models + +import "time" + +type ( + ScoreChanger interface { + ChangeScore() error + } + + UserScore struct { + ID string + Acts []ScoreChanger + BurnTime time.Time + Score int8 + } + + // plus 1 + PlusAction struct { + Name string + Repeatable bool + } + + // minus x + // always repeatable + MinusAction struct { + Name string + Magnitude uint8 + } +) -- cgit v1.2.3