biold error fix

This commit is contained in:
drainpilled 2024-10-19 19:17:27 -04:00
parent aeaddbaedf
commit 0cef1773a7
3 changed files with 13 additions and 7 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
*.sqlite *.sqlite
*.db *.db
assets/* assets/*
build/*

View File

@ -22,33 +22,33 @@ type DurationValue time.Duration
type FloatValue struct { type FloatValue struct {
EmptyValue EmptyValue
val float32 Val float32
} }
func (v FloatValue) Float() float32 { func (v FloatValue) Float() float32 {
return v.val return v.Val
} }
type StringValue struct { type StringValue struct {
EmptyValue EmptyValue
val string Val string
} }
func (v StringValue) String() string { func (v StringValue) String() string {
return v.val return v.Val
} }
type IntValue struct { type IntValue struct {
EmptyValue EmptyValue
val int Val int
} }
func (v IntValue) Int() int { func (v IntValue) Int() int {
return v.val return v.Val
} }
func (v IntValue) Float() float32 { func (v IntValue) Float() float32 {
return float32(v.val) return float32(v.Val)
} }
type EmptyValue struct{} type EmptyValue struct{}

View File

@ -2,6 +2,11 @@ package models
import "time" import "time"
type Session struct {
ID string
User *User
}
type User struct { type User struct {
ID uint64 ID uint64
Username string Username string