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
*.db
assets/*
build/*

View File

@ -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{}

View File

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