From 0cef1773a7deb99de1376a164d959fbc48640ac7 Mon Sep 17 00:00:00 2001 From: drainpilled Date: Sat, 19 Oct 2024 19:17:27 -0400 Subject: [PATCH] biold error fix --- .gitignore | 1 + internal/config/config.go | 14 +++++++------- internal/storage/models/auth.go | 5 +++++ 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index c114aab..b5944c7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.sqlite *.db assets/* +build/* \ No newline at end of file diff --git a/internal/config/config.go b/internal/config/config.go index 295be6f..6f28a07 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -22,33 +22,33 @@ type DurationValue time.Duration type FloatValue struct { EmptyValue - val float32 + Val float32 } func (v FloatValue) Float() float32 { - return v.val + return v.Val } type StringValue struct { EmptyValue - val string + Val string } func (v StringValue) String() string { - return v.val + return v.Val } type IntValue struct { EmptyValue - val int + Val int } func (v IntValue) Int() int { - return v.val + return v.Val } func (v IntValue) Float() float32 { - return float32(v.val) + return float32(v.Val) } type EmptyValue struct{} diff --git a/internal/storage/models/auth.go b/internal/storage/models/auth.go index ae5b230..ae0c0d1 100644 --- a/internal/storage/models/auth.go +++ b/internal/storage/models/auth.go @@ -2,6 +2,11 @@ package models import "time" +type Session struct { + ID string + User *User +} + type User struct { ID uint64 Username string