diff options
author | GrailFinder <wohilas@gmail.com> | 2024-03-17 15:26:16 +0300 |
---|---|---|
committer | GrailFinder <wohilas@gmail.com> | 2024-03-17 15:26:16 +0300 |
commit | bfb7942343bc08a7424f144f9799a9b547d6f607 (patch) | |
tree | 5da04e34de3c714463058324af5dfa7f2f6ed418 /internal/models/models.go | |
parent | 33db3abdadd6687eb16305014c70654e03168fe5 (diff) |
Chore: define models for future
Diffstat (limited to 'internal/models/models.go')
-rw-r--r-- | internal/models/models.go | 29 |
1 files changed, 29 insertions, 0 deletions
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 + } +) |